WhatsApp AI agents for restaurants and food ordering
How restaurants can use WhatsApp AI agents for reservations, takeaway orders, allergy questions, and delivery updates — with a full example system prompt.
Restaurants live on communication. Menu questions, table reservations, takeaway orders, allergy checks, delivery updates, loyalty offers — the messaging volume is relentless, and for most restaurants it's handled entirely by a member of staff who'd rather be doing something else.
WhatsApp AI agents for restaurants change that. The right setup handles routine enquiries automatically, takes orders in natural language, logs them to a system your kitchen can act on, and sends confirmation and updates without any human involvement.
TL;DR
- WhatsApp is already how customers communicate with restaurants — orders, reservations, and questions all arrive there.
- The ordering flow goes: customer messages → bot takes order in natural language → confirms total → logs to Google Sheets → sends ETA.
- CodeWords lets you build this without code — describe the agent to Cody and it handles the setup, integrations, and deployment.
Why WhatsApp for restaurants
Most restaurants already communicate with customers on WhatsApp. They just do it manually. Staff spend time copy-pasting orders, answering the same menu questions, and chasing reservation confirmations.
The volume compounds at the worst times. Friday evening — when the kitchen is at capacity — is exactly when the WhatsApp messages peak. Customers enquire about availability. Delivery customers want to know where their order is. Someone has an allergy question that needs an answer before they can place the order.
A WhatsApp AI agent handles all of this without requiring a dedicated person to sit on their phone. Staff can focus on food and service. Customers get instant, accurate responses at any hour.
Core use cases
Menu questions: a customer asks "do you do gluten-free pasta?" or "what's in the tagine?" The bot knows your full menu and can answer accurately. No waiting, no "let me check with the kitchen."
Reservations: the bot guides the customer through a booking — date, time, number of covers, any dietary requirements or special occasions. It checks availability against your calendar and confirms the booking. A reminder goes out the day before.
Takeaway ordering: customers place orders in natural conversation — "I'd like a large pepperoni pizza, a Caesar salad, and a Diet Coke." The bot understands the order, confirms it back ("That's one large pepperoni pizza, one Caesar salad, and one Diet Coke — total £24.50. Is that right?"), asks for the delivery address, and logs the order.
Allergy information: with your full allergen matrix loaded into the agent's knowledge base, it can answer any allergen question accurately. "Does the mushroom risotto contain gluten?" — "The mushroom risotto is gluten-free, but it's prepared in a kitchen where gluten is present. If you have a severe allergy, please let us know when ordering and our kitchen will take extra precautions."
Delivery updates: once an order is placed, the bot can send proactive updates — "Your order is being prepared" and "Your driver is on the way" — reducing the inbound "where's my order?" messages significantly.
Loyalty offers: the bot can send personalised WhatsApp messages to returning customers — a discount on their birthday, a special offer after their fifth visit, a preview of a new menu item for regular diners.
The ordering flow in detail
Here's how a takeaway ordering conversation looks in practice:
Customer: "Hi, I'd like to order a takeaway"
Bot: "Great — what can I get you? You can order anything from our menu. Just tell me what you'd like and I'll put it together for you."
Customer: "I'll have two chicken burgers, one plain, one with extra cheese, and large chips, and two Cokes"
Bot: "Got it — let me just confirm your order:
- 2x Chicken burger (one plain, one extra cheese) — £9.50 each
- 1x Large chips — £3.50
- 2x Coca-Cola — £2.50 each
Total: £27.50
Is that everything, or would you like to add anything?"
Customer: "That's everything"
Bot: "What's the delivery address?"
Customer: "14 Maple Street, SW4 7PQ"
Bot: "Perfect. Your order is confirmed and will be with you in approximately 35 minutes. You'll get an update when it's on its way."
At this point, the order is logged to a Google Sheet (or your POS system if integrated) and a notification goes to the kitchen. When the driver picks up, the bot sends the customer an update automatically.
The reservation flow
Reservation handling follows a similar multi-step pattern:
Customer: "Can I book a table for Saturday?"
Bot: "Of course. How many people will be dining?"
Customer: "Four"
Bot: "And do you have a preferred time? We have availability at 7pm and 8:30pm this Saturday."
Customer: "7pm works"
Bot: "Last thing — any dietary requirements or special occasions I should note?"
Customer: "One of us is vegan and it's my wife's birthday"
Bot: "Lovely — we'll make sure to note that. So that's a table for four at 7pm this Saturday, one vegan guest, celebrating a birthday. Shall I confirm that?"
Customer: "Yes please"
Bot: "Booked. We'll send you a reminder on Friday. Looking forward to seeing you."
The booking creates a record in your calendar (Calendly, Cal.com, or Google Calendar) and logs the dietary and occasion notes so the front-of-house team can prepare.
Handling allergy questions
Allergy questions are one of the most important things to get right. An inaccurate answer is a serious safety issue.
The right approach is to load your complete allergen matrix into the agent's knowledge base. This is typically a table showing which allergens (gluten, dairy, nuts, eggs, soya, celery, etc.) are present in each dish.
When a customer asks an allergen question, the bot refers to this information and gives an accurate answer. It should also always include a caveat about cross-contamination risk in shared kitchens — this is factually important and protects the business.
If a customer has a severe allergy, the bot should offer to flag this for the kitchen and suggest the customer calls to speak with a chef directly for complex dietary needs.
Example system prompt for a restaurant bot
Here's a system prompt you could describe to Cody when building your restaurant WhatsApp agent:
"You are a friendly ordering and reservations assistant for Bella Cucina, an Italian restaurant in London. Your name is Marco. You help customers with menu questions, place takeaway orders, and book tables. For takeaway orders: take the full order in natural conversation, confirm it back with prices, ask for the delivery address, log the order to our Google Sheet (columns: timestamp, customer name, phone, order items, total, address), and send a confirmation with a 35-minute estimated delivery time. For reservations: collect date, time, number of covers, and dietary requirements, check our Calendly for availability, and confirm the booking. For allergy questions: use the allergen information in the knowledge base and always mention that our kitchen handles common allergens. If a customer has a severe allergy, ask them to call us on [number] to speak with the kitchen directly."
This is exactly the kind of description you'd give to Cody (the AI automation assistant) in CodeWords. It's plain English — no code required.
How to build with CodeWords
CodeWords connects to Google Sheets, Calendly, Cal.com, and other restaurant-relevant tools via Composio's 3,000+ integration library. You tell Cody what you want, authenticate the integrations via one-click OAuth, and your agent goes live.
For bakers and food producers, see our dedicated guide for bakeries. For the full range of industry setups, visit the WhatsApp agents hub.
And if you're new to building WhatsApp agents, how to build WhatsApp AI agents with CodeWords walks through the complete process from account setup to going live.
Build your restaurant WhatsApp agent on CodeWords — describe it to Cody and it'll be taking orders today.