Chatbot
Use this component to integrate an AI-powered chatbot into your scene using the OpenAI Chat Completion API.
Last updated
Use this component to integrate an AI-powered chatbot into your scene using the OpenAI Chat Completion API.
Last updated
This component enables:
Text input & response using LLM
Voice input using Speech-to-Text
Voice output using Text-to-Speech
Image generation if the user requests it
Tool/function calling if AI requests an action
Step 1: Add the Chatbot
component to any GameObject.
Step 2: Choose or create a Chat Session:
Stores the message history and config
Set it using Selected Session
Step 3: Select a model:
OpenAI GPT-4o is default
Optional: choose a separate model for summarization
You can plug in optional features to extend the chatbot:
Voice input
SpeechToText
User can speak instead of typing
Voice output
TextToSpeech
AI responses are played as audio
Image responses
ImageGenerator
User prompts like “draw a cat” return images
Tool execution
FunctionManager
AI can trigger Unity methods
If you leave these blank, the chatbot still works with text input/output only.
Stream
Show streamed tokens while AI responds
Auto Save
Automatically updates chat session after each message
You can connect UnityEvents
to respond when:
A message is sent or received
AI requests a function call
A streamed token arrives
An error occurs
You can manually override things like temperature, max tokens, top-p, etc. These are useful if you want finer control over the LLM behavior.