Bobster2002
03/07/2026, 4:28 AMAI Evy
03/07/2026, 4:29 AMAI Evy
03/07/2026, 4:29 AMjavascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_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',
}) ;
[(1) ]()AI Evy
03/07/2026, 4:29 AMAI Evy
03/07/2026, 4:29 AM