https://retellai.com/?utm_source=discord&utm_medium=seo logo
Is there an option to create chat agent in retell ...
# ❓・ai-evy-support
a
@AI Evy Is there an option to create chat agent in retell using api?
a
Thanks for tagging me @aparna_10250. I'll look through relevant sources and get back to you shortly.
​ To learn more, see the sources I considered: [[1] Create Agent](https://docs.retellai.com/api-references/create-agent) [[2] Create chat agent](https://docs.retellai.com/build/create-chat-agent) [[3] Create Chat](https://docs.retellai.com/api-references/create-chat) [[4] Create Chat Completion](https://docs.retellai.com/api-references/create-chat-completion) ​
### Answer Yes, you can create chat agents using Retell's API [(1) ]() . You can create a new agent through the
create-agent
API endpoint . Here's the code example:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const agentResponse = await client.agent.create({
 response_engine: { llm_id: 'llm_234sdertfsdsfsdf', type: 'retell-llm' },
 voice_id: '11labs-Adrian',
}) ;
console.log(agentResponse.agent_id) ;
You have two options for creating chat agents [(2) ]() : 1. Create a new chat agent directly 2. Convert an existing voice agent to a chat agent Note that chat agents do not support certain voice-specific functions like call transfers, DTMF (press digits) , or telephony features . During conversion from voice to chat, such nodes or functions will be automatically removed . Once you have a chat agent created, you can then use the chat APIs to create chat sessions [(3) ]() and generate responses [(4) ]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
but create agent creates voice agent
@AI Evy
a
Thanks for the follow-up, @aparna_10250. I'll get back to you soon.
### Answer You're correct that the
create-agent
API endpoint creates agents that are primarily voice agents by default [(1) ]() . However, you can create a chat agent through the Retell dashboard and then use it with the chat APIs [(2) ]() . The process involves two steps: 1. Create the chat agent - This needs to be done through the Retell dashboard by either creating a new chat agent or converting an existing voice agent 2. Use the chat APIs - Once you have a chat agent created, you can interact with it programmatically using the chat API endpoints [(3) ]() [(4) ]() For example, after creating a chat agent in the dashboard, you can create a chat session using:
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) ;
[(3) ]() The chat agent creation itself currently requires using the dashboard interface, but all subsequent interactions can be done programmatically through the API [(2) ]() [(3) ]() [(4) ]() .
​ To learn more, see the sources I considered: [[1] Create Agent](https://docs.retellai.com/api-references/create-agent) [[2] Create chat agent](https://docs.retellai.com/build/create-chat-agent) [[3] Create Chat](https://docs.retellai.com/api-references/create-chat) [[4] Create Chat Completion](https://docs.retellai.com/deploy/create-chat-completion) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
i cannot create it from retell dashboard. I want it from api
@AI Evy
a
Thanks for the follow-up, @aparna_10250. I'll get back to you soon.
​ To learn more, see the sources I considered: [[1] Create Agent](https://docs.retellai.com/api-references/create-agent) [[2] Create Agent](https://docs.retellai.com/api-references/create-agent) [[3] Create Chat](https://docs.retellai.com/api-references/create-chat) ​
### Answer Based on the available documentation, there isn't a direct API endpoint specifically for creating chat agents [(1) ]() [(2) ]() . The Create Agent API creates agents that can be used for voice interactions . However, you can create a chat session using an existing agent through the Create Chat API [(3) ]() . Here's the code example:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const agentResponse = await client.agent.create({
 response_engine: { llm_id: 'llm_234sdertfsdsfsdf', type: 'retell-llm' },
 voice_id: '11labs-Adrian',
}) ;
console.log(agentResponse.agent_id) ;
[(2) ]() The Create Chat API allows you to create chat sessions with agents, but the agent itself needs to be created first using the Create Agent endpoint [(1) ]() [(3) ]() . I don't have information in the available sources about a dedicated API endpoint for creating chat-specific agents. The documentation shows that agents are created through the Create Agent API and then can be used for both voice and chat interactions [(1) ]() [(3) ]() [(2) ]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
@AI Evy how do i create a chat agent?
a
Thanks for the follow-up, @aparna_10250. I'll get back to you soon.
### Answer You can create a chat agent in Retell through two methods [(1) ]() : 1. Create a New Chat Agent : - Navigate to the Agents section in your Retell dashboard - Click "Create New Agent" - Select "Chat Agent" as the agent type - Configure your agent settings and prompts 2. Convert an Existing Voice Agent : - Open an existing voice agent - Click "Convert to Chat Agent" - Review the conversion warnings Note that chat agents do not support certain voice-specific functions like call transfers, DTMF (press digits) , or telephony features . During conversion, such nodes or functions will be automatically removed . After creating your chat agent, you can interact with it programmatically using the chat APIs : - Create a chat session using the create-chat API [(2) ]() - Generate responses with chat completion [(3) ]() The chat agent creation itself currently requires using the Retell dashboard interface [(1) ]() , but all subsequent interactions can be done programmatically through the API [(3) ]() [(2) ]() .
​ To learn more, see the sources I considered: [[1] Create chat agent](https://docs.retellai.com/build/create-chat-agent) [[2] Create Chat](https://docs.retellai.com/api-references/create-chat) [[3] Create Chat Completion](https://docs.retellai.com/deploy/create-chat-completion) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
through api @AI Evy
a
Thanks for the follow-up, @aparna_10250. I'll get back to you soon.
### Answer Based on the available documentation, there isn't a direct API endpoint specifically for creating chat agents through the API [(1) ]() . The documentation shows that chat agents need to be created through the Retell dashboard . The process for creating chat agents is: 1. Create a New Chat Agent : - Navigate to the Agents section in your Retell dashboard - Click "Create New Agent" - Select "Chat Agent" as the agent type - Configure your agent settings and prompts 2. Convert an Existing Voice Agent : - Open an existing voice agent - Click "Convert to Chat Agent" - Review the conversion warnings Once you have a chat agent created through the dashboard, you can then interact with it programmatically using the chat APIs [(2) ]() . For example:
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 chat agent creation itself currently requires using the dashboard interface [(1) ]() , but all subsequent interactions can be done programmatically through the API [(3) ]() [(2) ]() . Note: Retell does not provide native integration with SMS or chat applications at this moment [(1) ]() [(3) ]() . You can only interact with the chat agent via API .
​ To learn more, see the sources I considered: [[1] Create chat agent](https://docs.retellai.com/build/create-chat-agent) [[2] Create Chat](https://docs.retellai.com/api-references/create-chat) [[3] Create Chat Completion](https://docs.retellai.com/deploy/create-chat-completion) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.