Category: Automations › WhatsApp Sales · Best for: Home bakers, restaurants, kirana and D2C shops in India that already take orders on WhatsApp · Platform: n8n · Steps: 9
What it does
Customers message your WhatsApp, get your menu or price list, reply with what they want, and get a Razorpay payment link. Every order lands in Google Sheets.
Typing out prices and payment details for every chat takes hours. The bot sends the menu, adds up the order and sends a payment link, so you only pack and ship.
Works with: WhatsApp, Google Sheets, Razorpay
What you get
- The n8n workflow file (
workflow.json), ready to import - This setup guide
- Email support if you get stuck
Before you start
-
An n8n account. Easiest: n8n Cloud (free trial). Self-host for free with Docker:
docker run -it --rm -p 5678:5678 -v n8n_data:/home/node/.n8n docker.n8n.io/n8nio/n8n. Other services need to reach your n8n, so a self-hosted n8n must be on a public HTTPS address. -
A WhatsApp Business Cloud API number from Meta (free to set up; Meta charges per conversation, see WhatsApp pricing). Your personal WhatsApp number can't be used.
-
These credentials in n8n (Credentials → Add credential):
- WhatsApp Business Cloud (
whatsAppApi): at developers.facebook.com make an app of type Business, add WhatsApp, then create a permanent access token for a system user in Business Settings. In n8n paste the token and your WhatsApp Business Account ID. n8n guide - WhatsApp (incoming messages) (
whatsAppTriggerApi): the App ID and App secret of the same Meta app (App settings → Basic). n8n uses it to hear replies. n8n guide - Google Sheets (
googleSheetsOAuth2Api): click Sign in with Google in n8n. n8n guide - Razorpay key (
httpBasicAuth): in the Razorpay dashboard open Account & Settings → API Keys and generate a key. In n8n create a Basic Auth credential: user = Key ID, password = Key Secret. Use test-mode keys until you're happy. Razorpay docs
- WhatsApp Business Cloud (
Install
- In n8n, click Create workflow (top right).
- Click the ⋯ menu → Import from file and choose
workflow.json. Or copy the file's contents and paste onto the empty canvas with Ctrl/Cmd + V. - Open each box with a red warning triangle and pick the matching credential from the list above.
- In every WhatsApp box, replace
YOUR_WHATSAPP_PHONE_NUMBER_IDwith your Phone number ID (WhatsApp Manager → API setup). - Make a Google Sheet with two tabs. Products:
code | name | price(e.g.A1 | Chocolate cake 500 g | 650). Orders:order_id | phone | name | items | total | payment_link | status | created_at. Paste the sheet's link into the Google Sheets boxes. - Prices are in rupees; the currency sign is
CURRENCYin Understand the message.
Then click Save.
Test it
- Click Test workflow.
- From your personal WhatsApp, message your business number "hi", then reply with a product code and quantity. Open the link with Razorpay test keys.
- Click each box to see its output. A green tick means the step worked. A red box is almost always a credential, a template name that doesn't match, or a number without its country code.
Go live
Toggle Active (top right). From now on it runs on its own. Check Executions in the left sidebar to see every run.
How it works, step by step
- New WhatsApp message hears every message to your business number.
- Read the message gets the customer's number, name and text.
- Read the products reads your Products tab.
- Understand the message finds order lines like
A1 2(code and quantity); anything else means they want the menu. - Menu or order? sends Send the menu, or creates a Razorpay payment link.
- Log the order saves it in the Orders tab and Send the payment link sends it to the customer.
Good to know
- WhatsApp only lets a business message first with an approved template; replies within 24 hours of the customer's last message can be free text.
- Meta sends a WhatsApp number's incoming messages to one webhook at a time. If you run more than one workflow that starts with a WhatsApp trigger (COD replies, follow-up replies, the order bot, the booking bot, reminder replies), give each its own Meta app, or ask us how to merge them into one.
- The customer messages first, so every reply here is free text and needs no template.
- Payments show in your Razorpay dashboard. Set up a Razorpay webhook if you also want the sheet marked paid; ask us if you need it.