Nicolas
05/19/2026, 10:28 PMAI Evy
05/19/2026, 10:28 PMAI Evy
05/19/2026, 10:28 PMPATCH /update-conversation-flow/{conversation_flow_id}
**Basic workflow**:
1. Retrieve the existing flow (optional but recommended) using GET /get-conversation-flow/{conversation_flow_id} to see current configuration [(2) ]()
2. Update the flow using PATCH /update-conversation-flow/{conversation_flow_id} with your modifications [(1) ]()
**Example code**:
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: process.env['RETELL_API_KEY'], // This is the default and can be omitted
}) ;
const conversationFlowResponse = await client.conversationFlow.update('conversation_flow_id') ;
console.log(conversationFlowResponse.conversation_flow_id) ;
The update endpoint allows you to modify properties like model_choice, model_temperature, tool_call_strict_mode, knowledge_base_ids, global_prompt, tools, components, nodes, and other configuration options.
If you need to work with shared components separately, you can use the component-specific endpoints (/create-conversation-flow-component, /delete-conversation-flow-component) before or after updating the main flow. [(3) ]() [(4) ]()AI Evy
05/19/2026, 10:28 PMAI Evy
05/19/2026, 10:28 PMNicolas
05/19/2026, 10:30 PMAI Evy
05/19/2026, 10:30 PMAI Evy
05/19/2026, 10:30 PMPATCH /update-conversation-flow/{conversation_flow_id} [(1) ]()
2. Update the agent second to attach or reference the updated conversation flow as the response engine
**Why this order matters**: The conversation flow needs to exist and be properly configured before you can attach it to an agent [(2) ]() . According to a Discord discussion, you need to create the conversation flow first, then attach it to the agent as the response engine .
**Example workflow**:
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: process.env['RETELL_API_KEY'],
}) ;
// Step 1: Update conversation flow
const conversationFlowResponse = await client.conversationFlow.update('conversation_flow_id') ;
console.log(conversationFlowResponse.conversation_flow_id) ;
[(1) ]()
After updating the conversation flow, you would then update your agent configuration to reference the updated conversation_flow_id as its response engine.
The conversation flow serves as the response engine that can be attached to an agent [(3) ]() , so updating it first ensures the agent references the latest configuration.AI Evy
05/19/2026, 10:30 PMAI Evy
05/19/2026, 10:30 PM