Skip to main content

Hotel receptionist with WhatsApp, Gemini model-switching, Redis & Google Sheets

Workflow preview

Workflow preview
100%
Hotel receptionist with WhatsApp, Gemini model-switching, Redis & Google Sheets preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This project is an AI powered hotel receptionist built using n8n , designed to handle guest queries automatically through WhatsApp . It integrates Google Gemini , Redis , MySQL , and Google Sheets ...

Best for

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

Tools used

n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.memorybufferwindow, @n8n/n8n-nodes-langchain.lmchatgooglegemini, n8n-nodes-base.googlesheetstool, n8n-nodes-base.whatsapptrigger, n8n-nodes-base.code, n8n-nodes-base.whatsapp

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Hotel receptionist with WhatsApp, Gemini model-switching, Redis & Google Sheets
Workflow name
Hotel receptionist with WhatsApp, Gemini model-switching, Redis & Google Sheets

Overview

This project is an AI-powered hotel receptionist built using n8n, designed to handle guest queries automatically through WhatsApp.
It integrates Google Gemini, Redis, MySQL, and Google Sheets via LangChain to create an intelligent conversational system that understands and answers booking-related questions in real time.

A standout feature of this workflow is its AI model-switching system — it dynamically assigns users to different Gemini models, balancing traffic, improving performance, and reducing API costs.


How It Works

WhatsApp Trigger

The workflow starts when a hotel guest sends a message through WhatsApp.
The system captures the message text, contact details, and session information for further processing.

Redis-Based Model Management

  • The workflow checks Redis for a saved record of the user’s previously assigned AI model.
  • If no record exists, a Model Decider node assigns a new model (e.g., Gemini 1 or Gemini 2).
  • Redis then stores this model assignment for an hour, ensuring consistent routing and controlled traffic distribution.

Model Selector

The Model Selector routes each user’s request to the correct Gemini instance, enabling parallel execution across multiple AI models for faster response times and cost optimization.

AI Agent Logic

The LangChain AI Agent serves as the system’s reasoning core. It:

  • Interprets guest questions such as:
    • “Who checked in today?”
    • “Show me tomorrow’s bookings.”
    • “What’s the price for a deluxe suite for two nights?”
  • Generates safe, read-only SQL SELECT queries.
  • Fetches the requested data from the MySQL database.
  • Combines this with dynamic pricing or promotions from Google Sheets, if available.

Response Delivery

Once the AI Agent formulates an answer, it sends a natural-sounding message back to the guest via WhatsApp, completing the interaction loop.


Setup & Requirements

Prerequisites

Before deploying this workflow, ensure the following:

  • n8n Instance (local or hosted)
  • WhatsApp Cloud API with messaging permissions
  • Google Gemini API Key (for both models)
  • Redis Database for user session and model routing
  • MySQL Database for hotel booking and guest data
  • Google Sheets Account (optional, for pricing or offer data)

Step-by-Step Setup

  1. Configure Credentials

    • Add all API credentials in n8n → Settings → Credentials (WhatsApp, Redis, MySQL, Google).
  2. Prepare Databases

    • MySQL Tables Example:
      • bookings(id, guest_name, room_type, check_in, check_out)
      • rooms(id, type, rate, status)
    • Ensure the MySQL user has read-only permissions.
  3. Set Up Redis

    • Create Redis keys for each user:
      llm-user:<whatsapp_id> = { "modelIndex": 0 }
      
    • TTL: 3600 seconds (1 hour).
  4. Connect Google Sheets (Optional)

    • Add your sheet under Google Sheets OAuth2.
    • Use it to manage room rates, discounts, or seasonal offers dynamically.
  5. WhatsApp Webhook Configuration

    • In Meta’s Developer Console, set the webhook URL to your n8n instance.
    • Select message updates to trigger the workflow.
  6. Testing the Workflow

    • Send messages like “Who booked today?” or a voice message.
    • Confirm responses include real data from MySQL and contextual replies.

Key Features

  • Text & voice support for guest interactions
  • Automatic AI model-switching using Redis
  • Session memory for context-aware conversations
  • Read-only SQL query generation for database safety
  • Google Sheets integration for live pricing and availability
  • Scalable design supporting multiple LLM instances

Example Guest Queries

Guest Query AI Response Example
“Who checked in today?” “Two guests have checked in today: Mr. Ahmed (Room 203) and Ms. Priya (Room 410).”
“How much is a deluxe room for two nights?” “A deluxe room costs $120 per night. The total for two nights is $240.”
“Do you have any discounts this week?” “Yes! We’re offering a 10% weekend discount on all deluxe and suite rooms.”
“Show me tomorrow’s check-outs.” “Three check-outs are scheduled tomorrow: Mr. Khan (101), Ms. Lee (207), and Mr. Singh (309).”

Customization Options

🧩 Model Assignment Logic

You can modify the Model Decider node to:

  • Assign models based on user load, region, or priority level.
  • Increase or decrease TTL in Redis for longer model persistence.

🧠 AI Agent Prompt

Adjust the system prompt to control tone and response behavior — for example:

  • Add multilingual support.
  • Include upselling or booking confirmation messages.

🗂️ Database Expansion

Extend MySQL to include:

  • Staff schedules
  • Maintenance records
  • Restaurant reservations
    Then link new queries in the AI Agent node for richer responses.

Tech Stack

  • n8n – Workflow automation & orchestration
  • Google Gemini (PaLM) – LLM for reasoning & generation
  • Redis – Model assignment & session management
  • MySQL – Booking & guest data storage
  • Google Sheets – Dynamic pricing reference
  • WhatsApp Cloud API – Messaging interface

Outcome

This workflow demonstrates how AI automation can transform hotel operations by combining WhatsApp communication, database intelligence, and multi-model AI reasoning.
It’s a production-ready foundation for scalable, cost-optimized, AI-driven hospitality solutions that deliver fast, accurate, and personalized guest interactions.


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 - Sticky Note

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

Block 2 - AI Agent

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

Block 3 - Simple Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 4 - Google Gemini Chat Model

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

Block 5 - Pricing

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

Block 6 - Google Gemini Chat Model1

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

Block 7 - WhatsApp Trigger

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

Block 8 - Model Decider

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

Block 9 - Send message

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

Block 10 - Execute a SQL query in MySQL

Type / Role
n8n-nodes-base.mySqlTool - mySqlTool
Config choices
Version 2.4

Block 11 - Sticky Note1

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

Block 12 - Sticky Note2

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

Block 13 - Check Message

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

Block 14 - Store User Number

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

Block 15 - Check User Number

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

Block 16 - Choose Model

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

Block 17 - Sticky Note3

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

Block 18 - Sticky Note4

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

3. Summary Table

Workflow Hotel receptionist with WhatsApp, Gemini model-switching, Redis & Google Sheets
Complexity advanced
Nodes 18
Categories Support Chatbot, AI Chatbot
Author Akshay
Published 27 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10214/10214.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 Hotel receptionist with WhatsApp, Gemini model-switching, Redis & Google Sheets do?

This project is an AI powered hotel receptionist built using n8n , designed to handle guest queries automatically through WhatsApp . It integrates Google Gemini , Redis , MySQL , and Google Sheets ...

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.