n8nflow.net logo

Create a WhatsApp Voice Assistant with Twilio, VAPI, Google Calendar & OpenAI

by Nabin Bhandariβ€’Updated: Last update 23 days agoβ€’Source: n8n.io
Loading workflow viewer...

Getting Started

WhatsApp Voice Agent with Twilio, VAPI, Google Calendar, Gmail & Supabase

This workflow turns WhatsApp voice messages into an AI assistant using Twilio, VAPI, and modular MCP servers. It handles scheduling, email, and knowledge queries all by voice.


πŸ”Ž How it works

  1. WhatsApp β†’ Twilio β†’ VAPI
    • A WhatsApp Business number (via TwiML app) receives a voice message.
    • Twilio streams the audio into VAPI for processing.
  2. VAPI β†’ n8n Webhook
    • VAPI interprets the intent and routes the request to the correct MCP server.
  3. MCP Servers in n8n
    • πŸ“… Calendar MCP β†’ create, fetch, update, delete Google Calendar events
    • πŸ“§ Gmail MCP β†’ send confirmation or reminder emails
    • πŸ“š Knowledge Base MCP β†’ query Supabase Vector Store with OpenAI embeddings
  4. n8n β†’ VAPI β†’ WhatsApp
    • n8n executes the task and returns the result via VAPI back to the user.

πŸ› οΈ How to use

  • Import this workflow into your n8n instance.
  • Configure a Twilio WhatsApp-enabled number and connect it to a TwiML app.
  • Point the TwiML app to your VAPI project.
  • Add credentials for Google Calendar, Gmail, Supabase, and OpenAI in n8n.
  • Test by sending a WhatsApp voice command like:
    • β€œBook a meeting tomorrow at 3pm”
    • β€œSend a confirmation email to the client”
    • β€œWhat’s included in the AI receptionist package?”

🎨 Customisation ideas

  • Add more MCP servers (e.g. CRM, Notion, Slack).
  • Swap Supabase for another vector database.
  • Extend Gmail flows with templates or multiple senders.
  • Adjust the VAPI assistant’s tone and role to fit your brand.

πŸ“Œ Requirements

  • Twilio WhatsApp-enabled number + TwiML app (verified in WhatsApp Manager)
  • VAPI project (assistant configured)
  • n8n instance (Cloud or self-hosted)
  • Google Calendar & Gmail credentials
  • Supabase project
  • OpenAI API key

πŸ’‘ Good to know

  • Twilio must have a verified WhatsApp Business number.
  • VAPI handles voice infra + intent routing ; n8n only executes actions.
  • The design is modular β€”easy to expand with new MCP servers.
  • Works best when tested with short, clear commands.

πŸš€ Use cases

  • Hands-free scheduling with Google Calendar.
  • Voice-triggered email confirmations & reminders.
  • Conversational knowledge base access.
  • Extendable to CRMs, team chat, or business workflows.

πŸ‘‰ With this setup, you get a scalable voice-first AI agent on WhatsApp that connects seamlessly to your business systems.