| name | retellai-core-workflow-a |
| description | Retell AI core workflow a — AI voice agent and phone call automation.
Use when working with Retell AI for voice agents, phone calls, or telephony.
Trigger with phrases like "retell core workflow a", "retellai-core-workflow-a", "voice agent".
|
| allowed-tools | Read, Write, Edit, Bash(npm:*), Bash(curl:*), Grep |
| version | 1.9.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","retellai","voice","telephony","ai-agents"] |
| compatibility | Designed for Claude Code, also compatible with Codex and OpenClaw |
Retell AI Core Workflow A
Overview
Build and configure voice agents with custom prompts, function calling, and call flow logic.
Prerequisites
- Completed
retellai-hello-world
Instructions
Step 1: Agent with Function Calling
const llm = await retell.llm.create({
model: 'gpt-4o',
general_prompt: `You are a booking assistant for Dr. Smith's office.
- Help callers book, reschedule, or cancel appointments
- Collect: name, phone, preferred date/time
- Confirm all details before booking`,
functions: [
{
name: 'book_appointment',
description: 'Book a new appointment',
parameters: {
type: 'object',
properties: {
patient_name: { type: 'string' },
phone: { type: 'string' },
date: { type: 'string', description: 'YYYY-MM-DD format' },
time: { type: 'string', description: 'HH:MM format' },
},
required: ['patient_name', 'phone', 'date', 'time'],
},
url: 'https://your-api.com/appointments',
speak_during_execution: true,
: ,
},
],
});