Check and book Google Calendar appointments with Vapi voice agents
Ready for 3.0What this workflow does
This workflow has 15 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). Along the way it connects Google Calendar.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).
- Set tool: check_availability (Edit Fields (Set)): sets 1 field: endpointTool
- Set tool: book_appointment (Edit Fields (Set)): sets 1 field: endpointTool
- Configure me (Edit Fields (Set)): sets 14 fields: settings.webhookSecret, settings.secretHeader, settings.calendarId…
- Parse and validate tool call (Code): runs custom JavaScript code
- Route by tool (Switch): routes items into 3 branches
- Respond to Vapi (Respond to Webhook): sends the response back to the webhook caller
- Get busy times (Google Calendar): work with calendar
- Re-check the slot (Google Calendar): work with calendar
- Build availability result (Code): runs custom JavaScript code
- Confirm slot is still free (Code): runs custom JavaScript code
…plus 3 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (7)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Switch
n8n-nodes-base.switch - Google Calendar
n8n-nodes-base.googleCalendar - If
n8n-nodes-base.if - Respond to Webhook
n8n-nodes-base.respondToWebhook
From the author
Quick overview This workflow exposes two webhook endpoints for Vapi voice agent tools to check availability and book appointments in Google Calendar, enforcing a shared secret, validating requested times against opening hours and notice period, and returning…