Let Customers Check Order Status by Texting WhatsApp
An n8n workflow that lets a customer text their order number to your WhatsApp, looks the order up in Shopify (or a Google Sheet), and instantly replies with the current status and tracking link — deflecting the single most common support question without an agent lifting a finger.
- 1
Receive the WhatsApp message
Add a
Webhooknode subscribed to the WhatsAppmessagesevent. ACodenode pulls the sender number and message text, ignoring non-text and status callbacks. - 2
Parse the order number
A
Codenode runs a regex to find an order number in the text (e.g./#?(\d{4,})/). If none is found, branch to a reply asking the customer to send just the number, then stop. - 3
Look up the order
An
HTTP Requestqueries the Shopify Admin APIGET /orders.json?name=%23{{number}}(or your Sheet/DB). It returns the fulfillment status and, if shipped, the tracking URL. EnableneverErrorso a missing order returns empty rather than failing. - 4
Format the status reply
A
Setnode builds a clear message:Order #1234 is [status]. Track it here: [url]for found orders, or a 'couldn't find it' message otherwise. Keep it short and friendly — this is a text message, not an email. - 5
Reply on WhatsApp
An
HTTP RequestPOSTs the message to the WhatsApp Cloud API for the customer's number. Optionally, anIFfor unrecognized orders also pings Slack so an agent can proactively help before the customer gets frustrated.
Frequently asked questions
How does it find the order number in a casual message?
A small parsing step extracts an order-number pattern (e.g. #1234 or a known prefix) from the message text with a regex. If it can't find one, the workflow replies asking the customer to send just their order number, keeping the flow robust against chatty messages.
What if the order number doesn't exist?
The lookup returns nothing, and an `IF` node sends a friendly 'we couldn't find that order — double-check the number or reply HELP for an agent' message. It never leaves the customer hanging, and it routes genuine problems to a human via a Slack alert.
Can I use this without Shopify?
Absolutely. Swap the Shopify lookup for a Google Sheets, Airtable, or database query — anywhere your order data lives. The pattern is the same: parse the number, look it up, format the status, reply on WhatsApp. Only the middle lookup node changes.