Build a voice AI system that recovers missed appointments by automating the response chain when a no-show is detected. First, your CRM flags the unscheduled slot. Next, a trigger sends a missed-call text-back asking if they missed the call. If the text bounces or goes unanswered, the system initiates an outbound voice agent via Vapi. This agent uses ElevenLabs for natural speech-to-text and text-to-speech handling on Twilio lines. The conversation focuses solely on confirming a new time. Upon success, the agent calls your calendar API to reschedule. The economics are simple: if recovering one appointment costs less than its service margin, the system pays for itself. This workflow turns dead leads into confirmed revenue without manual follow-up.
How it works
- Missed-lead detection - Your CRM (or a simple webhook listener) emits a
lead_missedevent whenever a scheduled call is marked as "no-answer" or "busy". The webhook payload contains the prospect's phone number, original appointment ID, and a timestamp.
- Outbound voice call - The webhook forwards the payload to Vapi (via the Vapi API reference). Vapi creates a voice-agent flow that dials the prospect using Twilio's Programmable Voice (Twilio charges from $0.013/min for outbound calls in the US). The flow begins with a text-to-speech prompt generated by ElevenLabs (prices start at $0.005 per 1 k characters) that says, "We noticed we missed you earlier; can we reschedule?"
- Speech-to-text handling - While the prospect speaks, Vapi streams the audio to a speech-to-text service such as Deepgram or Whisper. The transcription is returned in near-real time and passed back to Vapi, which uses simple intent matching ("yes", "next week", "cancel") to decide the next step.
- Calendar rescheduling - If the intent is to reschedule, Vapi calls the calendar API of the provider you use (Google Calendar, Outlook, etc.) with the desired date and time extracted from the transcription. The API creates a new event, updates the original appointment record in the CRM, and returns a confirmation ID.
- Confirmation and fallback - Vapi uses ElevenLabs again to read back the new appointment details. If the speech-to-text step fails, Vapi sends a missed-call text-back (SMS via Twilio) containing a short link to a web form where the lead can manually pick a slot.
- Economic decision test - Each recovered appointment is measured against the cost of the call (voice minutes + TTS + STT). With Twilio at $0.013/min, ElevenLabs at $0.005 per 1 k chars, and a typical 30-second interaction, the total cost is under $0.20. Compare that to the average revenue per appointment (e.g., $150) to decide whether to enable the flow.
[More examples of similar automations] (https://getaab.com/blog/)
How to build it
- Define the trigger source. Identify where missed appointments are logged. For most SMBs, this is a Zapier webhook or a direct API poll from your CRM (e.g., HubSpot, Salesforce). Set up a scheduled trigger in n8n every 15 minutes to query the CRM for appointments with status
no_showorcancelledwhere the current time is within 2 hours of the original start time.
- Assemble the recovery package. In a Function Node, aggregate the customer data required for the conversation. You need:
firstName,lastPhone,originalDate,serviceType, andpricePoint. If your CRM lacks real-time availability, connect to your calendar api (like the Google Calendar or Calendly API) to fetch three open slots within the next 48 hours. Store these slots in the JSON payload.
- Initialize the Vapi agent session. Create an HTTP Request node that POSTs to
https://api.vapi.ai/v1/assistant. In the payload, specify yourassistantId. Pass the dynamic data from Step 2 into theoverridesobject so the agent knows exactly who it is calling and what slots are available. Do not hardcode names in the system prompt; inject them via variables.
- Configure speech engines. In the Vapi dashboard (not the workflow), select ElevenLabs (from $0.05/1K chars) as the Text-to-Speech provider for natural, low-latency voice output. For Speech-to-Text, select Deepgram or Whisper (via Vapi's built-in STT) to ensure high accuracy in noisy environments. Vapi orchestrates the turn-taking logic; it handles the interruption detection and decides when to pass context to your workflow.
- Wire the outcome webhook. When the voice agent concludes the call (whether the user reschedules, declines, or hangs up), Vapi sends a completion event. Configure your webhook URL in the Vapi assistant settings to point back to a dedicated n8n path. This endpoint receives a JSON payload containing a
endReasonand avariablesobject that includes theselected_slotif the user agreed to a new time.
- Parse and validate the response. Use a Code Node to inspect the incoming webhook data. Check if
variables.selected_slotis not null. If it exists, verify the slot is still available by making a quick GET request to the calendar api. If the slot is taken, return astatus: 409to the Vapi agent (if using real-time updates) or flag it for manual review. If the user declined, log the reason from thetranscriptfield for future segmentation.
- Execute the reschedule. If the slot is valid, trigger an HTTP Request node to your CRM or scheduling tool to update the appointment record. Change the status from
no_showtoconfirmedand update thestart_timefield. Simultaneously, send a confirmation SMS via Twilio (from $0.0079/SMS) to double-confirm the new time. This dual-channel confirmation reduces secondary no-shows by approximately 15%.
- Handle the fallback. If the voice call fails (network error, user doesn't answer), route the workflow to a missed-call text-back sequence. Use Twilio to send an automated SMS: "Hi [Name], sorry we missed you. Here are 3 links to reschedule: [Link1], [Link2], [Link3]." This ensures no lead is lost even if the voice AI cannot connect.
- Monitor economics. Add a Spreadsheet or Database node to log the cost of each call (Vapi minutes + Twilio SMS) against the value of the recovered appointment. If the average cost to recover one appointment is $1.50 and the average service value is $150, the ROI is positive. If the cost exceeds 5% of the service value, optimize by restricting calls to high-value services only.
```json { "nodes": [ { "name": "Trigger Missed Appts", "type": "n8n-nodes-base.cron", "parameters": { "ruleInterval": { "fieldInterval": [ { "triggerAtMinute": 0 } ] } }, "position": [260, 300] }, { "name": "Fetch Open Slots", "type": "n8n-nodes-base.httpRequest", "parameters": { "method": "GET", "url": "https://api.calendly.com/availability", "authentication": "predefinedCredentialType", "sendQuery": true, "queryParameters": { "parameters": [ { "name": "start_time", "value": "={{ $now.format('yyyy-MM-dd') }}" } ] } }, "position": [480, 300] }, { "name": "Start Vapi Call", "type": "n8n-nodes-base.httpRequest", "parameters": { "method": "POST", "url": "https://api.vapi.ai/v1/call", "authentication": "generic", "genericAuthType": "headerAuth", "sendBody": true, "specifyBody": "json", "jsonBody": "={{ JSON.stringify({\n assistant_id: 'asst_12345',\n phone_number: '={{ $json.customer_phone }}',\n messaging_features: {\n text_to_speech: {\n provider: \"elevenlabs\",\n voice_id: \"21m00Tcm4TlvDq8ikWAM\"\n }\n },\n variables: {\n first_name: \"={{ $json.first_name }}\",\n open_slots: \"={{ $json.fetched_slots.map(s => s.start_time).join(', ') }}\"\n }\n}) }}" }, "position": [700, 300] } ], "connections": { "Trigger Missed Appts": { "main": [ [ { "node": "Fetch Open Slots", "type": "main", "index": 0 } ] ] }, "Fetch Open Slots": { "main": [ [ { "node": "Start Vapi Call", "type
Where this breaks
1. Missed-Lead Detection Fails If the webhook that feeds the missed-lead database never receives the event, the system thinks every lead is still "on-schedule" and never initiates a voice call. Fix: Verify that the CRM's outbound webhook is enabled and that its payload matches the schema expected by your logic; add a retry loop or an error-queue (e.g., SQS) to capture and alert on failed pushes.
2. Speech-to-Text Mis-Transcription When the deep-learning STT engine (Deepgram or Whisper) incorrectly transcribes the patient's response, the bot may mis-route to the wrong follow-up action, such as skipping the reschedule prompt or offering the wrong time slot. Fix: Configure a confidence threshold (e.g., 0.85) and route low-confidence transcripts to a human review step; also train a custom language model with domain-specific vocabularies to improve accuracy.
3. Twilio Call Failures
A Twilio outbound call may fail due to an invalid phone number, carrier restrictions, or a short-lived session, causing the appointment recovery loop to stall.
Fix: Clean and validate phone numbers with libphonenumber before placing the call, and implement Twilio's callStatus webhook to retry failed calls up to three times with exponential back-off.
4. Calendar API Rate Limits or Conflicts When the calendar integration (Google Calendar, Outlook, or a custom API) hits a rate limit or the requested slot is already booked by a different event, the rescheduling step fails and the user sees a "time slot unavailable" message. Fix: Cache available slots for a short window, respect the provider's rate-limit headers, and add a conflict-resolution routine that suggests alternate slots or queues the user for a human-handled override if no free slot is found.
How do I calculate if voice AI appointment recovery is cost-effective? Compare the total variable cost of a recovered appointment, such as $0.15 for telephony and LLM inference, against the average revenue per visit. If a single recovered client value is $100, the positive margin makes the automation viable regardless of the initial missed call volume.
Can I use Twilio to initiate the outbound calls? Yes, Twilio handles the telephony layer by providing the phone numbers and media streams for the call. You would trigger a webhook to provision the call resource, while a platform like Vapi orchestrates the conversation logic on top of that connection.
How accurate is the speech-to-text for rescheduling? Modern speech-to-text engines like Deepgram or Whisper operate with high accuracy in calm environments, typically above 95% word accuracy. You should still include a confirmation step in the voice agent prompt where the AI reads back the proposed time to verify understanding before committing to the calendar API.
Do I need a CRM integration for this workflow? A CRM connection is essential to mark the recovered lead as active and log the interaction details. While you can run a basic flow without it, linking the Twilio call recording and final appointment timestamp to the customer record ensures accurate long-term revenue tracking for the voice ai appointment recovery system.
For a deeper technical reference, see n8n's documentation.