retell_create_conversation_flow
Create a structured conversation flow to control AI agent dialogue, using nodes for conversation, function calls, branching, and end conditions.
Instructions
Create a new Conversation Flow. A Conversation Flow is a node-graph that controls agent dialogue with conversation nodes, function nodes, branch nodes, and end nodes connected by edges.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodes | Yes | Array of nodes in the flow. Each node must have an 'id', a 'type' (e.g. 'conversation', 'end', 'function', 'transfer_call', 'branch'), and relevant fields. Conversation nodes also need an 'instruction' object with 'type' ('prompt' or 'static_text') and 'text'. | |
| tools | No | Reusable tool/function definitions available in this flow. | |
| model_choice | Yes | The LLM model choice. Example: { "type": "cascading", "model": "gpt-4.1" }. Supported models: gpt-4.1, gpt-4.1-mini, gpt-4.1-nano, claude-4.5-sonnet, claude-4.5-haiku, gemini-2.5-flash. | |
| global_prompt | No | A global prompt applied to every node in the conversation flow. | |
| start_node_id | No | ID of the node where the conversation begins. | |
| start_speaker | Yes | Who speaks first — 'agent' or 'user'. | |
| knowledge_base_ids | No | Knowledge base IDs for RAG retrieval. | |
| default_dynamic_variables | No | Default values for dynamic variables used in the flow. |