The "Enable an AI Avatar to Speak and Explain on Tap" snippet in Fectar Studio allows you to create an interactive experience where users can tap on a specific spot to trigger your AI avatar to speak and explain a topic. This feature is perfect for educational environments, virtual tours, product demonstrations, and more, where providing detailed explanations in response to user interactions can enhance the overall experience.
Purpose of the Snippet
This snippet is designed to make your AI avatar more interactive by allowing it to deliver a preset message and then provide a detailed explanation of a specified topic when a user taps on a designated spot. The AI avatar not only speaks the provided text but also explains a more complex topic in detail, making the interaction informative and engaging.
Setting Up the Snippet
This is the Snippet Window with the various fields. We will go through these step by step.
Step-by-Step Guide
-
Select the AI Avatar
The first step is to select the AI avatar that will respond to user interactions. Choose the specific 3D model in your scene that will serve as the AI avatar. This avatar will deliver the spoken content and explanations when activated by the user.
-
Select the Activation Spot(s)
Next, specify the spots that users can tap to activate the AI avatar’s speech and explanation features. Select one or more spots in your scene that users can click on to trigger the AI avatar. These could include the avatar itself, an image, or any other interactive element in your VR space.
-
Specify the Text for the AI to Say
Define the initial message that the AI avatar will say when activated. Enter the text that you want the AI avatar to say first. This could be a greeting, introduction, or any other short message to initiate the interaction. Sometimes, due to internet connections, it can take a few seconds for an AI to start talking. This intro text assures an immediate response when you click on the Activation Spot.
-
Compose a Detailed Question for the AI to Explain
Provide a more complex question or topic that the AI avatar will explain after delivering the initial message. Write a question or topic that the AI avatar will explain in detail. Tailor this prompt to suit the needs of your audience, taking into account their background, age, and level of understanding. You can find more information about writing prompts here.
-
Specify the Desired Answer Length
Choose the length of the explanation the AI avatar will give in response to the detailed question. Select how detailed you want the AI avatar’s explanation to be. Options range from a brief response (~10 words) to an extra detailed explanation (~100 words).
How It Works, Behind the Scenes
Once you've configured these settings, the interaction will work as follows:
-
User Interaction: When a user taps on the designated activation spot, the AI avatar will first say the text specified in the
sayText
field. -
AI Response: After the initial speech, the AI avatar will then proceed to explain the topic specified in the
askText
field, using the number of words determined by theanswerlength
setting. -
Speech Flow: The AI avatar will seamlessly transition from the initial greeting or message to a more detailed explanation, making the interaction smooth and informative.
Conclusion
The "Enable an AI Avatar to Speak and Explain on Tap" snippet is a powerful tool for creating interactive and educational experiences in Fectar Studio. By carefully setting up your AI avatar and crafting detailed prompts, you can provide users with informative and engaging interactions that enhance their experience in your VR space. Whether for virtual tours, educational content, or customer interaction scenarios, this snippet allows you to create a dynamic and responsive virtual assistant.