Skip to main content
Skip table of contents

AI chatbot component

OKO Web Client 4.7.1 - CSP 6.36.0


The AI chatbot component allows you to add conversational AI to your spaces that users interact with via voice. You can customize its behavior to follow your instructions, adding a new layer of interactivity.

The AI chatbot component is only available in spaces owned by pro-tier users.

The AI chatbot is powered by AI; it may make factual mistakes.

Instructions 

Setting the API Key

The AI chatbot component uses the Google Gemini API. To use AI chatbots, you must first set a Gemini API key in the OKO integrations settings.

This is done via the in-space settings panel. First, click the Settings icon in the left-hand toolbar and then select the Integrations section. Paste your API key in the Gemini API Key text box. You're now ready to start using the AI chatbot component!

You only need to set the API key once per browser.

image (6).webp

Creating and configuring an AI chatbot component

AI chatbot components can be added to the space in the same way you would add any other component in Creator mode. The simplest method is to right-click somewhere in the space and select the chatbot component in the menu. The AI chatbot component is listed in the Interactive section.

If you don’t see the AI chatbot component in the list of available components, this means the space owner is not on the Pro tier.

22cda268-6602-4c4a-836b-93ec38d5105d.png

When the chatbot component is added to the space, you will see a white orb at the component’s location.

image (7).webp

If you select the chatbot component, you will see the configuration options in the Properties panel on the right-hand side.

ac1ad918-dc5b-4482-94d2-b473e1eab643.png

The Voice drop-down allows you to choose from the built-in voice options. Select an option and interact with the chatbot to try it out.

image (8).webp

The Guardrail Prompt text box allows you to enter a prompt that the AI chatbot will follow. You can give specific instructions to customize the behaviour of the chatbot when users interact with it. Every subsequent interaction will be governed by the instructions in the prompt.

Providing a strong guardrail prompt is essential for the chatbot to perform its role in your space and to give it personality.

Once you have entered or updated your guardrail prompt, be sure to press the Save button. The prompt will take effect on the next interaction with the chatbot.

image (9).webp

Finally, when you select a chatbot component, you will see a sphere visualization showing its activation radius. This radius is 5M (16ft) in all directions around the component. When users enter the radius, they’ll be able to interact with the chatbot.

image (10).webp

Interacting with an AI chatbot component

When users in the space (either viewers or creators) get close enough and enter the component’s activation radius, they’ll be able to converse with the chatbot.

Make sure you’ve enabled your microphone via the in-space controls before trying to interact with the AI chatbot. If it's not enabled, a notification will be displayed when you enter the component’s activation radius.

image (11).webp

As you enter the activation radius, you will see the chatbot representation move up to indicate it's listening and ready for you to speak.

image (12).webp

When you have spoken to the chatbot, its animation will change to indicate it's processing your input.

image (13).webp

Once the chatbot has a response, it will speak back to you. The animation will change again to indicate it’s talking.

image (14).webp

All users within the chatbot’s radius will be able to hear your conversation with it.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.