jrok1308
11/06/2025, 6:11 AMAI Evy
11/06/2025, 6:11 AMAI Evy
11/06/2025, 6:12 AMstart_speaker - Who starts the conversation (user or agent)
- model_choice - The model configuration including type, model, and high_priority settings
- nodes - Array of nodes in the conversation flow
## Supported Optional Fields
Additional supported fields include :
- global_prompt - Global prompt used in every node
- tools - Tools available in the conversation flow
- components - Local components embedded within the flow
- start_node_id - ID of the start node
- model_temperature - Controls response randomness (0-1 range)
- tool_call_strict_mode - Whether to use strict mode for tool calls
- default_dynamic_variables - Default dynamic variables for the flow
- knowledge_base_ids - Knowledge base IDs for RAG
- kb_config - Knowledge base configuration
- begin_tag_display_position - Display position for the begin tag
- mcps - MCP server configurations
- begin_after_user_silence_ms - Duration before AI begins after user silence
## Example Structure
Here's the documented structure :AI Evy
11/06/2025, 6:12 AMjson
{
"start_speaker": "agent",
"model_choice": {
"type": "cascading",
"model": "gpt-5",
"high_priority": true
},
"nodes": [
{
"id": "start",
"type": "conversation",
"instruction": {
"type": "prompt",
"text": "Greet the customer and ask how you can help them."
},
"edges": [
{
"id": "edge_1",
"transition_condition": {
"type": "prompt",
"prompt": "Customer wants to book appointment"
},
"destination_node_id": "book_appointment"
}
]
}
]
}
The documentation shows that nodes can have various types including conversation nodes with instruction properties . Branch nodes would follow similar patterns with edges defining transition conditions .
If you're still experiencing import errors, please verify that your start_speaker and model_choice fields are properly formatted, as these are required fields .AI Evy
11/06/2025, 6:12 AMAI Evy
11/06/2025, 6:12 AMjrok1308
11/06/2025, 6:36 AMAI Evy
11/06/2025, 6:36 AMAI Evy
11/06/2025, 6:37 AM/update-conversation-flow/{conversation_flow_id} [(1) ]() .
## Endpoint Details
For your specific flow ID, the endpoint would be :
PATCH /update-conversation-flow/conversation_flow_b356dff195fd
## Request Body Structure
You can update the nodes, global_prompt, and tools fields . Here's the structure:
json
{
"global_prompt": "You are a helpful customer service agent.",
"tools": [
{
"type": "custom",
"name": "get_customer_info",
"description": "Get customer information from database",
"tool_id": "tool_001",
"url": "<https://api.example.com/customer%22,>
"method": "GET"
}
],
"nodes": [
{
"id": "start",
"type": "conversation",
"instruction": {
"type": "prompt",
"text": "Greet the customer and ask how you can help them."
},
"edges": [
{
"id": "edge_1",
"transition_condition": {
"type": "prompt",
"prompt": "Customer wants to book appointment"
},
"destination_node_id": "book_appointment"
}
]
}
]
}
## SDK Example
Using the Retell SDK :
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const conversationFlowResponse = await client.conversationFlow.update('conversation_flow_id') ;
console.log(conversationFlowResponse.conversation_flow_id) ;
The agent ID you mentioned is separate from the conversation flow ID - you don't need to include it in the update request .AI Evy
11/06/2025, 6:37 AMAI Evy
11/06/2025, 6:37 AM