Coze chatbot
This guide shows you how to connect a Coze chatbot to TEN Agent, enabling voice conversations with your bot. By integrating speech recognition and synthesis, you can transform a text-based Coze bot into a fully voice-enabled assistant.
Prerequisites
Before starting, ensure you have:
- TEN Agent playground running. See the Agent quickstart
- API keys for your voice services:
- STT service like Deepgram
- TTS service like Fish.Audio
- Agora RTC credentials from Agora Console
- Coze credentials:
- Coze Bot ID
- Coze Token
- Coze Base URL (only for non-global environments)
Set up your Coze bot with voice
Set up your voice-enabled Coze bot with these steps:
-
Open the playground at
http://localhost:3000
-
Select the
voice_assistant
graph type -
Configure modules:
- Click Module Picker
- Select your preferred STT and TTS modules
- For the LLM module, select Coze Chat Bot
- Click Save Changes
-
Configure Coze properties:
- Click the settings button next to the graph selector
- Enter your Coze Bot ID and token
- Add Base URL if using a non-global environment
- Click Save Changes
-
Start your bot:
- Click Connect to initialize the agent
- Wait a few seconds for startup
- Begin speaking to your Coze bot
Azure STT integration
For Azure speech recognition:
- Select the
voice_assistant_integrated_stt
graph type - Configure Azure credentials in the RTC module
- Follow the remaining configuration steps above
Troubleshooting
Common issues and solutions:
Issue | Solution |
---|---|
Bot not responding |
|
Missing bot capabilities |
|
Base URL issues |
|