Automate restaurant customer service with WhatsApp and Llama AI chatbot
Needs changesWhat this workflow does
This AI workflow has 8 nodes and runs on WhatsApp events (messages). Along the way it connects WhatsApp Business Cloud, Ollama Chat Model and Postgres.
How it runs
Trigger: On WhatsApp events (messages).
- Extract Customer Query (AI Agent): runs an AI agent, with model: Generate Reply with AI
- Wait: pauses before continuing
- Check If Table Booking Required (If): checks a condition and branches into true / false
- Create New Table Booking (Postgres): uses Postgres
- Send Reply to Customer (WhatsApp Business Cloud): send
- Send Booking Confirmation to Customer (WhatsApp Business Cloud): send
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in Extract Customer Query (v1.9): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Extract Customer Query (v1.9) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (7)
- WhatsApp Business Cloud
n8n-nodes-base.whatsApp - Wait
n8n-nodes-base.wait - WhatsApp Trigger
n8n-nodes-base.whatsAppTrigger - AI Agent
@n8n/n8n-nodes-langchain.agent - Ollama Chat Model
@n8n/n8n-nodes-langchain.lmChatOllama - If
n8n-nodes-base.if - Postgres
n8n-nodes-base.postgres
From the author
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…