ChatGPT AI Avatars Integration
ChatGPT features are available in the Hyperspace Metaverse Platform version 3.0+
ChatGPT AI avatars work on AR, VR and desktop, laptop, tablet and mobile devices.
ChatGPT AI avatars support speech recognition and text to speech for natural language conversations in immersive environments providing a powerful spatial computing experience.
- Click the Pencil+ toolbar icon
- Choose Add bot
Choose a bot from your bot library
Click the settings (cog) icon on the bot
Under Advanced > Chat AI Integration click the Edit details button
In the editor popup check the box This bot is driven by AI
For the Engine choose ChatGPT
For User input type choose Speech Recognition
Under API key enter your ChatGPT API key
For the AI Model
- Click the Pick ChatGPT Model button
- Click the Select drop down list
- Choose gpt-3.5-turbo (or other model if you wish)
- Click the Select button
In the Context text field type or paste the prompt that will provide context for the conversation
Optionally add a Hyperspace action to execute whenever a bot is “thinking”, that is while waiting for a response from the AI API. Actions could include showing a progress bar or triggering a thinking getsure for the bot.
Check the box Continue conversation after response. Unless you want to have the user click the bot each time they want to continue the conversation, in that case leave it unchecked.
Click Save on the popup
IMPORTANT: Also click Save item on the bot properties popup
Click Stop editing in the top left corner to go back to interaction mode
Now when you click the bot to start an AI conversation.
An orange microphone icon will appear in the middle of the screen and beep to let you know its ready to accept speech input
Once the speech is recognized the microphone icon will turn green and the bot will respond shortly after
The bot will speak using text to speech and subtitles will appear at the bottom of the screen
ChatGPT prompt suggestions
Allowing ChatGPT to finish conversations
ChatGPT can finish the conversation by instructing it to attach the special command “#finish” to its response. When the dialog engine receives the command embedded in the bot’s response, it will finish the conversation after that response. An example on how to make ChatGPT include the command when it wants to finish the conversation is following (you can add this to the end of your prompt):
When the conversation is over, you say goodbye politely and attach the expression #finish to your sentence.
We are sorry that this article was not useful for you!
Let us improve this article!
Tell us how we can improve this article?