lisathecatalyst
10/18/2025, 5:39 PMAI Evy
10/18/2025, 5:39 PMAI Evy
10/18/2025, 5:39 PMAI Evy
10/18/2025, 5:39 PMAI Evy
10/18/2025, 5:39 PMlisathecatalyst
10/18/2025, 5:46 PMAI Evy
10/18/2025, 5:46 PMAI Evy
10/18/2025, 5:47 PMjavascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const conversationFlowResponse = await client.conversationFlow.retrieve('conversation_flow_id') ;
console.log(conversationFlowResponse.conversation_flow_id) ;
To list all conversation flows programmatically [(3) ]() :
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const conversationFlowResponses = await client.conversationFlow.list() ;
console.log(conversationFlowResponses) ;
Conversation Flow agents allow you to create multiple nodes to handle different scenarios in conversations, providing more fine-grained control over the conversation flow compared to Single/Multi Prompt agents [(1) ]() .AI Evy
10/18/2025, 5:47 PMAI Evy
10/18/2025, 5:47 PMlisathecatalyst
10/18/2025, 5:51 PMAI Evy
10/18/2025, 5:51 PMAI Evy
10/18/2025, 5:52 PMjavascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const conversationFlowResponse = await client.conversationFlow.create({
model_choice: { model: 'gpt-5', type: 'cascading' },
nodes: [
{
id: 'start',
instruction: { text: 'Greet the customer and ask how you can help them.', type: 'prompt' },
type: 'conversation',
},
],
start_speaker: 'agent',
}) ;
console.log(conversationFlowResponse.conversation_flow_id) ;
[(2) ]()
Once you access your existing agent, all changes are auto-saved [(1) ]() . You can also view the estimated latency and cost of the agent through the Dashboard interface .AI Evy
10/18/2025, 5:52 PMAI Evy
10/18/2025, 5:52 PM