Skip to main content

AI-Powered WhatsApp Chatbot πŸ€–πŸ“…: Complete Booking Assistant with Gemini & Google

Workflow preview

Workflow preview
100%
AI-Powered WhatsApp Chatbot πŸ€–πŸ“…: Complete Booking Assistant with Gemini & Google preview
Open on n8n.io

1. Workflow Overview

This workflow implements an AI powered WhatsApp booking assistant for a hair salon. The system allows customers to book, reschedule, or cancel appointments automatically via text or voice messages ...

Best for

  • Support Chatbot automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.googlecalendartool, n8n-nodes-base.googlesheetstool, n8n-nodes-base.errortrigger, n8n-nodes-base.gmail, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.whatsapptrigger, n8n-nodes-base.httprequest, @n8n/n8n-nodes-langchain.openai

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Davide Boizza.

Original n8n.io source

1.1 Workflow description

Title
AI-Powered WhatsApp Chatbot πŸ€–πŸ“…: Complete Booking Assistant with Gemini & Google
Workflow name
AI-Powered WhatsApp Chatbot πŸ€–πŸ“…: Complete Booking Assistant with Gemini & Google

This workflow implements an AI-powered WhatsApp booking assistant for a hair salon. The system allows customers to book, reschedule, or cancel appointments automatically via text or voice messages on WhatsApp.

The workflow supports both text and voice messages.

An AI agent manages the conversation logic, determines the user's intent, and calls the appropriate tools to perform actions such as checking availability, creating appointments, rescheduling bookings, or canceling events.

The system also includes guardrails to filter unsafe or irrelevant inputs and escalation mechanisms to notify the team when a request falls outside supported tasks.


Key Advantages

1. βœ… 24/7 Automated Appointment Booking

Customers can book, reschedule, or cancel appointments at any time through WhatsApp without requiring manual staff intervention.

2. βœ… Multi-Modal Communication (Text + Voice)

The workflow supports both text messages and voice messages. Audio messages are automatically transcribed and processed by the AI assistant.

3. βœ… Intelligent AI Assistant

An AI agent manages the conversation, understands user intent, and automatically performs actions such as checking calendar availability or creating appointments.

4. βœ… Real-Time Calendar Integration

The assistant connects directly to Google Calendar to:

  • check available time slots
  • create new bookings
  • update existing appointments
  • cancel reservations

This ensures real-time accuracy.

5. βœ… Automatic Client Management

Customer information such as phone number, name, and service type is stored and updated in Google Sheets, creating a lightweight CRM database.

6. βœ… Conversation Memory

The system stores chat history in PostgreSQL, allowing the AI assistant to maintain context during conversations and deliver a more natural experience.

7. βœ… Smart Error Handling and Escalation

If the AI cannot handle a request (for example, a question unrelated to appointments), the workflow automatically:

  • notifies the team via email
  • escalates the conversation for human assistance.
8. βœ… Secure and Controlled AI Responses

Guardrails are implemented to prevent irrelevant or unsafe responses, ensuring that the assistant follows defined policies and tasks.

9. βœ… Omnichannel Architecture

The workflow is designed to work with:

  • WhatsApp messages
  • chatbot interface (chat trigger)

This allows the same logic to power multiple communication channels.

10. βœ… Scalable Automation

The system is fully automated and can handle multiple simultaneous conversations, reducing operational workload and improving customer service efficiency.


How it works

  1. Input Handling (WhatsApp & Chat):
  • It listens for incoming messages from either a WhatsApp Trigger or a Chat Trigger.
  • WhatsApp: It processes both text messages and voice notes. If a voice note is received, it automatically downloads the audio, transcribes it using OpenAI (Whisper), and converts it into text for the AI to process.
  • The user's phone number (for WhatsApp) or session ID (for Chat) is stored as a sessionId to maintain conversation context.
  1. Guardrails (Security & Policy):
  • Before the message reaches the main AI agent, it passes through a Guardrails node (using Google Gemini). This acts as a safety filter to check for jailbreak attempts or inappropriate content, ensuring the conversation stays within company policies.
  1. AI Agent (The Virtual Assistant):
  • The cleaned-up message is sent to the AI Agent ("Virtual Assistant").
  • The agent is prompted to act as "Emma" and follows strict instructions:
  1. Identify User: It first uses the New client tool to check a Google Sheet to see if the user is already registered.

  2. Manage Appointments: Based on the user's request (book, reschedule, cancel), it intelligently calls specific tools in the correct order.

  3. Date Logic: It is aware of the current date and time to calculate correct future dates (e.g., interpreting "this Thursday").

  4. Tool Execution (Actions):

  • The agent has access to several tools to perform actions:
  • Google Sheets (New client, Add client): To check if a client exists and add new clients to a spreadsheet.
  • Google Calendar (Get events, Create event, Update event, Delete event): To check availability and manage appointments. The Get events tool is configured to look for slots in the next 30 days.
  • Gmail (Send Email): To notify the team if a user asks for something outside the scope (e.g., pricing, product questions).
  • WhatsApp HITL / Chat HITL (Escalation): To hand over the conversation to a human agent for complex requests.
  1. Response Delivery:
  • The AI agent's text response is routed back to the user.
  • On WhatsApp: It intelligently handles the response format. If the original message was text, it sends a text reply. If the original message was a voice note, it uses OpenAI's TTS to convert the text reply into an audio message and sends that back.

Setup steps

To get this workflow running, you need to configure the following credentials and nodes:

  1. Configure Credentials:
  • Google Calendar OAuth2: Connect your Google account (used in Calendar nodes).
  • Google Sheets OAuth2: Connect your Google account to access the spreadsheet.
  • Gmail OAuth2: Connect your Google account to send notification emails from [email protected].
  • WhatsApp API: Connect your WhatsApp Business API credentials (Phone Number ID).
  • OpenAI API (OpenRouter): Provide your API key for audio transcription and text-to-speech.
  • Google Gemini API: Provide your API keys for the main AI model (Google Gemini Chat Model) and the Guardrails model (Google Gemini Chat Model1).
  • Postgres: Configure the connection to your Postgres database for chat memory.
  1. Configure Google Sheets:
  • Create a Google Sheet.
  • Update the Document ID in the New client and Add client nodes with your sheet's ID.
  • Ensure the sheet has columns for Phone Number, Client, and Service.
  1. Configure Google Calendar:
  • Verify that the calendar ID in the Calendar nodes is correct and accessible.
  1. Configure WhatsApp Triggers & Actions:
  • The WhatsApp Trigger node needs to be connected to your WhatsApp Business App.
  • The Send message and Send audio nodes must have the correct Phone Number ID for your WhatsApp Business number.
  1. Update Email Recipient:
  • In the Send Email tool (for escalations), change the sendTo email address from [email protected] to the actual email of the team that should receive these notifications.
  1. Review AI Prompts:
  • Open the "Virtual Assistant" (AI Agent) node and review the system message. Update the salon name ("Cuts & Styles"), stylist name ("Alex Carter"), and address to match your business.
  • Check the "Guardrails" node to adjust the safety threshold if necessary.

πŸ‘‰ Subscribe to my new YouTube channel. Here I’ll share videos and Shorts with practical tutorials and FREE templates for n8n.


Need help customizing?

Contact me for consulting and support or add me on Linkedin.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Update event

Type / Role
n8n-nodes-base.googleCalendarTool - googleCalendarTool
Config choices
Version 1.3

Block 2 - Delete event

Type / Role
n8n-nodes-base.googleCalendarTool - googleCalendarTool
Config choices
Version 1.3

Block 3 - Create event

Type / Role
n8n-nodes-base.googleCalendarTool - googleCalendarTool
Config choices
Version 1.3

Block 4 - Get events

Type / Role
n8n-nodes-base.googleCalendarTool - googleCalendarTool
Config choices
Version 1.3

Block 5 - Add client

Type / Role
n8n-nodes-base.googleSheetsTool - googleSheetsTool
Config choices
Version 4.7

Block 6 - Workflow Error Handler

Type / Role
n8n-nodes-base.errorTrigger - errorTrigger
Config choices
Version 1

Block 7 - Notify: Workflow Error

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 8 - Virtual Assistant

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3.1

Block 9 - WhatsApp Trigger

Type / Role
n8n-nodes-base.whatsAppTrigger - whatsAppTrigger
Config choices
Version 1

Block 10 - Download Audio

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 11 - Transcribe Audio

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 12 - Fix mimeType for Audio

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 13 - Send message

Type / Role
n8n-nodes-base.whatsApp - whatsApp
Config choices
Version 1

Block 14 - Send audio

Type / Role
n8n-nodes-base.whatsApp - whatsApp
Config choices
Version 1

Block 15 - Audio

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 16 - Not supported

Type / Role
n8n-nodes-base.whatsApp - whatsApp
Config choices
Version 1

Block 17 - Get Audio Url

Type / Role
n8n-nodes-base.whatsApp - whatsApp
Config choices
Version 1

Block 18 - Generate Audio Response

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 19 - From audio to audio?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 20 - Input type

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 21 - Calculator

Type / Role
@n8n/n8n-nodes-langchain.toolCalculator - toolCalculator
Config choices
Version 1

Block 22 - Send Email

Type / Role
n8n-nodes-base.gmailTool - gmailTool
Config choices
Version 2.2

Block 23 - Escalation

Type / Role
n8n-nodes-base.whatsAppHitlTool - whatsAppHitlTool
Config choices
Version 1.1

Block 24 - New client

Type / Role
n8n-nodes-base.googleSheetsTool - googleSheetsTool
Config choices
Version 4.7

Showing the first 24 of 47 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow AI-Powered WhatsApp Chatbot πŸ€–πŸ“…: Complete Booking Assistant with Gemini & Google
Complexity advanced
Nodes 47
Categories Support Chatbot, AI Chatbot
Author Davide Boizza
Published 10 Mar 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/13984/13984.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does AI-Powered WhatsApp Chatbot πŸ€–πŸ“…: Complete Booking Assistant with Gemini & Google do?

This workflow implements an AI powered WhatsApp booking assistant for a hair salon. The system allows customers to book, reschedule, or cancel appointments automatically via text or voice messages ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Support Chatbot, AI Chatbot use case.