Handle Vapi voice agent tool calls and call logging with Google Sheets and Gmail
Ready for 3.0What this workflow does
This workflow has 18 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Google Calendar, Google Sheets and Gmail.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Agent Config (Edit Fields (Set)): sets 5 fields: CalendarId, AlertEmail, SlotLengthMinutes…
- Normalize Request (Code): runs custom JavaScript code
- Route By Event (Switch): routes items into 2 branches
- Route By Function (Switch): routes items into 3 branches
- Extract Call Record (Code): runs custom JavaScript code
- Unknown Function (Code): runs custom JavaScript code
- Check Calendar Availability (Google Calendar): get many
- Look Up Customer (Google Sheets): uses Google Sheets
- Log Request (Google Sheets): append
- Save Call Record (Google Sheets): append
…plus 7 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Calendar + Gmail templates (239) · Other Google Calendar + Google Sheets templates (193)
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 (9)
- 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 - Google Sheets
n8n-nodes-base.googleSheets - Respond to Webhook
n8n-nodes-base.respondToWebhook - If
n8n-nodes-base.if - Gmail
n8n-nodes-base.gmail
From the author
Quick overview This workflow provides a backend webhook for Vapi voice agents, handling mid-call tool calls via Google Calendar and Google Sheets, then logging end-of-call details to Google Sheets and sending follow-up alerts through Gmail when keywords are…