joelwang_44675
08/12/2025, 9:59 PMAI Evy
08/12/2025, 9:59 PMAI Evy
08/12/2025, 9:59 PMjavascript
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 agent creation supports pre-defined tool calling abilities such as call transfer, ending calls, and appointment booking [(2) ]() . You can also integrate custom functions by configuring them through the dashboard and then attaching them to agents [(3) ]() .
For custom functions, you would first create the custom function through the dashboard (as described in the custom function documentation ) , and then the agent can utilize these functions during conversations [(2) ]() .AI Evy
08/12/2025, 9:59 PMAI Evy
08/12/2025, 9:59 PMAI Evy
08/12/2025, 10:02 PMjoelwang_44675
08/12/2025, 10:03 PM