All projects · AI Agents & RAG
Voice Booking — CANCEL (Vapi + Google Calendar)
An n8n webhook backend for a Vapi voice agent that cancels an existing appointment over the phone.
An n8n webhook backend for a Vapi voice agent that cancels an existing appointment over the phone. It looks up the caller's next upcoming event by email, deletes it, and speaks back a cancellation confirmation.
- Find-then-delete pattern: Google Calendar getAll queries by caller email with timeMin=now, orderBy startTime, limit 1 to grab the next upcoming appointment
- Success is inferred from 'event was found AND delete did not error' before composing the spoken reply
- Graceful not-found path ('couldn't find an appointment under that email') keeps the voice call conversational
- onError: continueRegularOutput on both calendar nodes so lookup/delete failures don't crash the call
Built with: n8n, Vapi (voice AI tool-calling webhook), Google Calendar OAuth2 (getAll + delete), n8n Code node (JavaScript), Respond to Webhook