n8n Tutorials

How to Build a WhatsApp Order Bot Without Coding

RAMRAS Team February 7, 2026 11 min read
n8n Tutorials
11 min read

If you run a restaurant, grocery store, or any retail business, you're probably still taking orders over the phone or through informal WhatsApp chats. This means missed orders, manual effort, and no order tracking. Let's fix that.

What We'll Build

A WhatsApp bot that: greets new customers, shows the menu, lets them add items to a cart by replying with numbers, confirms the order, notifies the kitchen or owner, and logs everything to Google Sheets.

Prerequisites

  • n8n instance (self-hosted or cloud)
  • Meta Cloud API account (WhatsApp Business)
  • Google Sheets account
  • Your menu in a spreadsheet

The Key Concept: Conversation State

The tricky part of a WhatsApp bot is remembering where in the conversation each customer is. We solve this with n8n's built-in Static Data store, keyed by the customer's phone number.

Step 1: Set Up the Meta Cloud API Webhook

In n8n, create a Webhook trigger. In Meta's developer console, configure your WhatsApp app's webhook URL to point to this n8n webhook. Subscribe to the "messages" field.

Step 2: Parse the Incoming Message

Add a Function node to extract the sender's phone number, message text, and message type from the webhook payload. This becomes your routing logic.

Step 3: Build the State Machine

Use n8n's Switch node to route based on the customer's current state: NEW → send welcome + menu; BROWSING → handle item selection; CART → handle checkout; ORDER_PLACED → confirm and notify.

WhatsApp n8n Retail Automation

Get More Like This

AI automation tips and n8n tutorials every 2 weeks. No spam.

Check your inbox to confirm!

Want This Built for Your Business?

Book a free strategy call and we'll map out exactly how to implement this for your specific situation.

Book a Free Strategy Call
Aria
Powered by RAMRAS Technologies

Chat With Us

Quick verification to connect you with our team

How should we reach you?

Choose where to receive your verification code

One Last Step

Code sent via to

Resend in
Talk to a person →
Aria online

👋 Thinking about automating your business?
Tell me your goal — I'll show you exactly how we can help. Free, no pressure.