https://retellai.com/?utm_source=discord&utm_medium=seo logo
I'ts possible to create a voice agent since api
# ❓・ai-evy-support
e
@AI Evy I'ts possible to create a voice agent since api?
a
Thanks for tagging me @elisra27. I'll look through relevant sources and get back to you shortly.
### Answer Yes, you can create a voice agent using the Retell AI API. [(1) ]() Use the Create Agent endpoint to create a new agent programmatically. Here's an 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) ;
The required parameters are
response_engine
(which includes the LLM ID and type) and
voice_id
. You can also configure additional settings like
agent_name
,
voice_speed
,
language
, and many other options.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Create Agent](https://docs.retellai.com/api-references/create-agent) ​