faizaz_50459
11/12/2025, 4:45 PMAI Evy
11/12/2025, 4:45 PMAI Evy
11/12/2025, 4:45 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) ;
[(1) ]()
Replace 'llm_234sdertfsdsfsdf' with your specific GPT-4o llm_id. You can find or configure the correct llm_id in your Retell dashboard.AI Evy
11/12/2025, 4:46 PMAI Evy
11/12/2025, 4:46 PMfaizaz_50459
11/12/2025, 4:47 PMAI Evy
11/12/2025, 4:47 PMAI Evy
11/12/2025, 4:47 PMjavascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const conversationFlowResponse = await client.conversationFlow.update('conversation_flow_id', {
// ...other config fields...
model_choice: {
type: 'cascading',
model: 'gpt-4o',
high_priority: false
}
}) ;
console.log(conversationFlowResponse.conversation_flow_id) ;
[(2) ]()
3. Replace 'conversation_flow_id' with your actual flow’s ID and ensure other required fields are present.
4. After updating, the agent will use the specified model (e.g., GPT-4o) for future conversations.
Refer to the [Update Conversation Flow documentation]() for all configurable fields and more details .AI Evy
11/12/2025, 4:47 PMAI Evy
11/12/2025, 4:47 PMfaizaz_50459
11/12/2025, 4:49 PMAI Evy
11/12/2025, 4:49 PMAI Evy
11/12/2025, 4:50 PMAI Evy
11/12/2025, 4:50 PMAI Evy
11/12/2025, 4:50 PMfaizaz_50459
11/12/2025, 4:52 PMAI Evy
11/12/2025, 4:52 PMAI Evy
11/12/2025, 4:52 PMjavascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const conversationFlowResponse = await client.conversationFlow.update('conversation_flow_id', {
// ...other config fields...
model_choice: {
type: 'cascading',
model: 'gpt-4o',
high_priority: false
}
}) ;
console.log(conversationFlowResponse.conversation_flow_id) ;
[(1) ]()
Replace 'conversation_flow_id' with your actual flow’s ID and include any other required fields from your current configuration. This will set the model for your conversation flow agent via the API/SDK.faizaz_50459
11/12/2025, 4:53 PMAI Evy
11/12/2025, 4:53 PMAI Evy
11/12/2025, 4:53 PMjavascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const conversationFlowResponse = await client.conversationFlow.update('conversation_flow_id', {
// ...other config fields...
model_choice: {
type: 'cascading',
model: 'gpt-4o',
high_priority: false
}
}) ;
console.log(conversationFlowResponse.conversation_flow_id) ;
[(1) ]()
You replace 'conversation_flow_id' with your actual conversation flow's ID and fill in other required config fields. This update is made via your development environment or wherever you run your API calls—not in the drag-and-drop dashboard UI.AI Evy
11/12/2025, 4:53 PMAI Evy
11/12/2025, 4:53 PMAI Evy
11/12/2025, 4:57 PMAI Evy
11/12/2025, 4:57 PM