Vako-SV
05/07/2026, 7:07 AMAI Evy
05/07/2026, 7:07 AMAI Evy
05/07/2026, 7:07 AMAI Evy
05/07/2026, 7:07 AMAI Evy
05/07/2026, 7:07 AMVako-SV
05/07/2026, 7:20 AMAI Evy
05/07/2026, 7:20 AMAI Evy
05/07/2026, 7:21 AMjavascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: process.env['RETELL_API_KEY'],
}) ;
const conversationFlowResponse = await client.conversationFlow.create({
model_choice: { model: 'gpt-4.1', type: 'cascading' },
nodes: [
{
id: 'start',
instruction: { text: 'Greet the customer and ask how you can help them.', type: 'prompt' },
type: 'conversation',
},
],
start_speaker: 'agent',
}) ;
The Agent Transfer functionality is configured as a node within the conversation flow structure, where you can specify the transfer agent's ID and version [(3) ]() [(4) ]() . The Conversation Flow API is available in the SDK and supports programmatic creation and management of these flows [(1) ]() .AI Evy
05/07/2026, 7:21 AMAI Evy
05/07/2026, 7:21 AM