Customer Support · n8n

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.

difficulty Intermediatesetup 60 minresult Customers get instant, accurate 'where's my order' answers on WhatsApp, 24/7, with no agent time
  1. 1

    Receive the WhatsApp message

    Add a Webhook node subscribed to the WhatsApp messages event. A Code node pulls the sender number and message text, ignoring non-text and status callbacks.

  2. 2

    Parse the order number

    A Code node 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. 3

    Look up the order

    An HTTP Request queries the Shopify Admin API GET /orders.json?name=%23{{number}} (or your Sheet/DB). It returns the fulfillment status and, if shipped, the tracking URL. Enable neverError so a missing order returns empty rather than failing.

  4. 4

    Format the status reply

    A Set node 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. 5

    Reply on WhatsApp

    An HTTP Request POSTs the message to the WhatsApp Cloud API for the customer's number. Optionally, an IF for 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.

About this recipe. Recipes on FlowRecipesHub are written for business owners, not developers, and are tested before publishing — how recipes get made. Some ingredient links are affiliate links that cost you nothing — full disclosure.