https://retellai.com/?utm_source=discord&utm_medium=seo logo
Why voice agent and chat agent is different things
# ❓・ai-evy-support
k
Why voice agent and chat agent is different things ? It just uses llm to generate chat messages just make it one node its so hard to control a lot of them @AI Evy
a
Thanks for tagging me @kker4m. I'll look through relevant sources and get back to you shortly.
### Answer Voice agents and chat agents serve different communication channels and have distinct technical requirements, even though they both use LLMs [(1) ]() [(2) ]() . Key Differences: Communication Channel: Voice agents handle spoken conversations over the phone, while chat agents communicate via text-based interfaces . Voice agents must process real-time speech recognition, handle accents, background noise, and live interruptions - challenges that text-based chat agents don't face [(2) ]() . Technical Stack: Voice agents require additional components like Automatic Speech Recognition (ASR) to convert speech to text, Text-to-Speech (TTS) to speak responses, and sophisticated turn-taking models to manage natural conversation flow [(1) ]() . Chat agents only need text processing capabilities [(2) ]() . Feature Limitations: Chat agents don't support certain voice-specific functions like call transfers, DTMF (press digits) , or telephony features [(3) ]() . During conversion from voice to chat agents, such nodes or functions are automatically removed . Use Cases: Voice agents excel at phone-based customer service, appointment scheduling, and call center automation [(1) ]() . Chat agents are better suited for website widgets, messaging apps, and self-service scenarios [(2) ]() . While both use LLMs for response generation, the underlying infrastructure and capabilities are fundamentally different due to their communication mediums. This is why Retell maintains them as separate agent types
rather than combining them into a single node.
​ To learn more, see the sources I considered: [[1] AI Voice Agent](https://www.retellai.com/glossary/ai-voice-agent) [[2] Chatbot](https://www.retellai.com/glossary/chatbot) [[3] Create chat agent](https://docs.retellai.com/build/create-chat-agent) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
k
does voice agent have an api to generate and test chat messages ? Because there is one in UI @AI Evy
a
Thanks for the follow-up, @kker4m. I'll get back to you soon.
### Answer Based on the available documentation, yes, voice agents do have an API to generate and test chat messages. The Create Chat API allows you to create chat sessions using your voice agent configuration [(1) ]() . Here's how to use it:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const chatResponse = await client.chat.create({ agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD' }) ;
console.log(chatResponse.agent_id) ;
The API creates a chat session using your existing voice agent's configuration, including its response engine, prompts, and tools . This allows you to test the conversational logic of your voice agent through text-based chat messages before deploying it for voice calls . The response includes details like chat_id, agent_id, chat_status, transcript, and message history with tool calls . This gives you the same testing capabilities you see in the UI, but programmatically accessible through the API .
​ To learn more, see the sources I considered: [[1] Create Chat](https://docs.retellai.com/api-references/create-chat) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Appreciate the feedback! Feel free to ask me again with additional guidance or context.
k
Create chat api does not work with voice agents ! @AI Evy
a
Thanks for the follow-up, @kker4m. I'll get back to you soon.
### Answer You're correct. Based on the documentation, the Create Chat API is specifically designed for chat agents, not voice agents [(1) ]() . To use the chat functionality, you need to either: 1. Create a new chat agent by navigating to the Agents section, clicking "Create New Agent," and selecting "Chat Agent" as the agent type [(2) ]() 2. Convert an existing voice agent to a chat agent by opening the voice agent and clicking "Convert to Chat Agent" . However, this conversion removes voice-specific functions like call transfers, DTMF, and telephony features The Create Chat API requires a chat agent specifically:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const chatResponse = await client.chat.create({ agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD' }) ;
console.log(chatResponse.agent_id) ;
[(1) ]() If you want to test your voice agent's conversational logic through text, you'll need to convert it to a chat agent first, which will create a separate agent optimized for text-based interactions [(2) ]() .
​ To learn more, see the sources I considered: [[1] Create Chat](https://docs.retellai.com/api-references/create-chat) [[2] Create chat agent](https://docs.retellai.com/build/create-chat-agent) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.