Skip to main content

Automate restaurant customer service with WhatsApp and Llama AI chatbot

Workflow preview

Workflow preview
100%
Automate restaurant customer service with WhatsApp and Llama AI chatbot preview
Open on n8n.io

Important notice

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

1. Workflow Overview

An intelligent WhatsApp based chatbot designed for restaurants to automate customer interactions related to table bookings, menu inquiries, opening hours, services, and offers. Built using the n8n ...

Best for

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

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.whatsapp, n8n-nodes-base.wait, n8n-nodes-base.whatsapptrigger, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatollama, n8n-nodes-base.if, n8n-nodes-base.postgres

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Automate restaurant customer service with WhatsApp and Llama AI chatbot
Workflow name
Automate restaurant customer service with WhatsApp and Llama AI chatbot

An intelligent WhatsApp-based chatbot designed for restaurants to automate customer interactions related to table bookings, menu inquiries, opening hours, services, and offers. Built using the n8n automation platform and powered by an AI language model, this solution streamlines communication, boosts efficiency, and improves customer satisfaction.

Objectives

  • Automate replies to common customer queries on WhatsApp
  • Handle table booking requests with confirmation
  • Provide menu item details, pricing, and dietary information
  • Share restaurant timing, location, and service availability
  • Promote offers and handle promotional queries
  • Operate 24/7 without manual intervention
  • Store bookings and conversations for reporting and analytics

Workflow Summary

Step 1: Message Reception

Node: WhatsApp Trigger (Webhook or API-based) Function: Listens for incoming customer messages.

Step 2: Intent Recognition

Node: AI Query Processor (e.g., OpenAI API) Function: Detects customer intent (e.g., booking, menu, timing).

Step 3: Conditional Routing

Node: Switch or IF Node Function: Routes flow based on detected intent:

  • General information (menu, timing, services)
  • Table booking

Step 4A: Respond to General Info Queries

Node: AI Response or Static Reply Node Function: Returns relevant information (menu, timing, address, etc.).

Step 4B: Process Booking Requests

Nodes:

  • Collect Booking Details (via chatbot interactions)
  • Store Booking Info (to DB or Google Sheets)
  • Send Booking Confirmation (to customer)

Step 5: Context Management

Node: Set/Update Customer Data Function: Maintains conversation state and tracks follow-up messages.

Database or Google Sheet Columns for Table Booking

Column Name Description
reservation_id Unique reservation identifier
guest_name Full name of the guest
contact_number Customer’s WhatsApp or mobile number
email (Optional) Email address
booking_date Reservation date (YYYY-MM-DD format)
booking_time Reservation time (HH:MM format)
party_size Number of guests
table_id (Optional) Table number or identifier
special_requests Allergies, seating preferences, etc.
status Booking status: Confirmed / Cancelled / Pending
created_at Timestamp when booking was made
updated_at Timestamp when booking was last modified

Prerequisites

  • Verified WhatsApp Business Account with API access
  • n8n instance (Cloud or self-hosted)
  • Access to an AI service (e.g., OpenAI, Claude)
  • Google Sheets, Airtable, MySQL, or other DB integration

Setup Instructions

  1. Connect WhatsApp API using webhook or third-party WhatsApp provider (e.g., 360Dialog, Twilio).
  2. Integrate AI using HTTP Request or OpenAI node for response generation.
  3. Create Data Store (Google Sheet, Airtable, or MySQL) with defined booking columns.
  4. Design Workflow in n8n with intent detection, conditional logic, and response nodes.
  5. Test End-to-End by sending different WhatsApp queries and checking logs and stored data.

Example Conversation

Customer: “Can I book a table for 2 people tomorrow at 8 PM?” Bot: “Sure. Please provide your name and contact number to confirm the reservation for 2 people at 8:00 PM tomorrow.” [Booking details are saved, and a confirmation is sent.]

Benefits

  • Fully automated customer interaction
  • Supports real-time table reservations
  • Accurate and quick responses
  • Scales without increasing staff effort
  • Operates 24/7
  • Centralized booking data for analytics

Analytics and Reporting

Track key performance metrics such as:

  • Number of bookings per day/week
  • Average response time
  • Customer satisfaction scores (via feedback node)
  • Popular menu items or query types
  • Booking conversion rates

Security and Compliance

  • End-to-end encrypted WhatsApp messages
  • Role-based access to sensitive data
  • Compliance with data protection regulations (e.g., GDPR)
  • Secure API integrations and storage solutions

Conclusion

This WhatsApp chatbot serves as a reliable, AI-powered digital front desk for restaurants. Built using n8n and scalable components, it automates customer support, manages bookings, and enhances operational efficiency while offering a seamless customer experience.

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 - Send Reply to Customer

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

Block 3 - Wait For Response

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

Block 4 - Receive WhatsApp Message

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

Block 5 - Extract Customer Query

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

Block 6 - Generate Reply with AI

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

Block 7 - Check If Table Booking Required

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

Block 8 - Create New Table Booking

Type / Role
n8n-nodes-base.postgres - postgres
Config choices
Version 2.6

Block 9 - Send Booking Confirmation to Customer

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

3. Summary Table

Workflow Automate restaurant customer service with WhatsApp and Llama AI chatbot
Complexity intermediate
Nodes 9
Categories Support Chatbot, AI Chatbot
Author Oneclick AI Squad
Published 11 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/5881/5881.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 Automate restaurant customer service with WhatsApp and Llama AI chatbot do?

An intelligent WhatsApp based chatbot designed for restaurants to automate customer interactions related to table bookings, menu inquiries, opening hours, services, and offers. Built using the n8n ...

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.