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.
Customers can book, reschedule, or cancel appointments at any time through WhatsApp without requiring manual staff intervention.
The workflow supports both text messages and voice messages. Audio messages are automatically transcribed and processed by the AI assistant.
An AI agent manages the conversation, understands user intent, and automatically performs actions such as checking calendar availability or creating appointments.
The assistant connects directly to Google Calendar to:
This ensures real-time accuracy.
Customer information such as phone number, name, and service type is stored and updated in Google Sheets, creating a lightweight CRM database.
The system stores chat history in PostgreSQL, allowing the AI assistant to maintain context during conversations and deliver a more natural experience.
If the AI cannot handle a request (for example, a question unrelated to appointments), the workflow automatically:
Guardrails are implemented to prevent irrelevant or unsafe responses, ensuring that the assistant follows defined policies and tasks.
The workflow is designed to work with:
This allows the same logic to power multiple communication channels.
The system is fully automated and can handle multiple simultaneous conversations, reducing operational workload and improving customer service efficiency.
Input Handling (WhatsApp & Chat):
sessionId to maintain conversation context.Guardrails (Security & Policy):
AI Agent (The Virtual Assistant):
New client tool to check a Google Sheet to see if the user is already registered.Tool Execution (Actions):
New client, Add client): To check if a client exists and add new clients to a spreadsheet.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.Send Email): To notify the team if a user asks for something outside the scope (e.g., pricing, product questions).Escalation): To hand over the conversation to a human agent for complex requests.Response Delivery:
To get this workflow running, you need to configure the following credentials and nodes:
Configure Credentials:
[email protected].Google Gemini Chat Model) and the Guardrails model (Google Gemini Chat Model1).Configure Google Sheets:
New client and Add client nodes with your sheet's ID.Phone Number, Client, and Service.Configure Google Calendar:
Configure WhatsApp Triggers & Actions:
WhatsApp Trigger node needs to be connected to your WhatsApp Business App.Send message and Send audio nodes must have the correct Phone Number ID for your WhatsApp Business number.Update Email Recipient:
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.Review AI Prompts:
👉 Subscribe to my new YouTube channel. Here I’ll share videos and Shorts with practical tutorials and FREE templates for n8n.
Contact me for consulting and support or add me on Linkedin.