# Automate restaurant customer service with WhatsApp and Llama: n8n workflow

> Started by an incoming WhatsApp message, and works across Postgres and WhatsApp. It hands the judgement calls to a local model.

Source: https://millionrounds.com/workflow/automate-restaurant-customer-service-with-whatsapp-and-llama (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Customer support](https://millionrounds.com/workflows?category=Customer+support#library)

# Automate restaurant customer service with WhatsApp and Llama

Started by an incoming WhatsApp message, and works across Postgres and WhatsApp. It hands the judgement calls to a local model. 8 steps, 1 branch, 1 loop or waits: small enough to read in one sitting and change without fear.

Small Calls a model: a local model

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fautomate-restaurant-customer-service-with-whatsapp-and-llama)

**8 steps** Small: readable in one sitting

**1** Branch: places the flow splits

**1** Loop or waits

**2** Services it connects to

## The flow

Starts it 1 Model 2 Logic 2 Service 3

The steps in the order they run, from what starts it.

- 1 **Receive WhatsApp Message** Whats App trigger *Starts it*
- 2 **Generate Reply with AI** Lm Chat Ollama *Model*
- 3 **Extract Customer Query** Agent *Model*
- 4 **Wait For Response** Wait *Logic*
- 5 **Check If Table Booking Required** If *Logic*
- 6 **Create New Table Booking** Postgres *Service*
- 7 **Send Reply to Customer** Whats App *Service*
- 8 **Send Booking Confirmation to Customer** Whats App *Service*

## How it's built

- **Starts on:** An incoming WhatsApp message
- **Steps:** 8, with 1 branch, 1 loop or waits
- **Size:** Small: readable in one sitting
- **Connects to:** Postgres, WhatsApp
- **Model:** a local model

## Questions

What does it need to run?

An n8n account, plus your own Postgres and WhatsApp accounts, and a key for a local model. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an incoming WhatsApp message.

Does it use AI?

Yes. It calls a local model. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Not long. At 8 steps it can be read in one sitting and changed without fear.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 8 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fautomate-restaurant-customer-service-with-whatsapp-and-llama)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Postgres](https://millionrounds.com/workflows?service=Postgres#library)[WhatsApp](https://millionrounds.com/workflows?service=WhatsApp#library)

## Workflows like it

Also customer support, with the same services where possible, closest in size first.

- [**Route FAQ and catalog replies in WhatsApp Business** 7 steps · WhatsApp](https://millionrounds.com/workflow/route-faq-and-catalog-replies-in-whatsapp-business)
- [**Answer WhatsApp support chats with OpenRouter and Pinecone** 10 steps · calls a model · Gmail, Pinecone](https://millionrounds.com/workflow/answer-whatsapp-support-chats-with-openrouter-and-pinecone)
- [**WhatsApp support bot with OpenAI** 10 steps · calls a model · WhatsApp](https://millionrounds.com/workflow/whatsapp-support-bot-with-openai)
- [**AI chatbot call center: Taxi booking support with Grok** 11 steps · calls a model · Google Calendar, Postgres](https://millionrounds.com/workflow/ai-chatbot-call-center-taxi-booking-support-with-grok)
- [**AI customer support assistant with WhatsApp** 11 steps · calls a model · WhatsApp](https://millionrounds.com/workflow/ai-customer-support-assistant-with-whatsapp)
- [**WhatsApp AI customer service bot with Gmail** 11 steps · calls a model · Gmail, WhatsApp](https://millionrounds.com/workflow/whatsapp-ai-customer-service-bot-with-gmail)
