E-commerce · n8n

Send Automatic SMS to Customers When Their Shopify Order Ships

Automatically send a personalized SMS message to customers via Twilio the moment their Shopify order is marked as fulfilled. Keep customers informed and reduce support tickets without lifting a finger.

difficulty Beginnersetup 30 minresult Every time a Shopify order is fulfilled, the customer instantly receives an SMS with their name and order number confirming their shipment.
  1. 1

    Set up the Shopify Trigger node

    Add a Shopify Trigger node to your canvas. In its settings, connect your Shopify credentials (you will need a Shopify Custom App API key and secret). Set the Topic field to orders/fulfilled. This node will fire every time an order ships in your store.

  2. 2

    Extract customer data with a Set node

    Add a Set node after the Shopify Trigger. Create three fields: set customerName to the expression {{$json.customer.first_name}}, set orderNumber to {{$json.order_number}}, and set customerPhone to {{$json.shipping_address.phone}}. This cleans up the data before sending the SMS.

  3. 3

    Filter orders with a valid phone number using an IF node

    Add an IF node after the Set node. Set the condition to check that customerPhone is not empty: use Value 1 as {{$json.customerPhone}}, set the operator to Is Not Empty. Connect the True output to the next step so only customers with a phone number receive an SMS.

  4. 4

    Send the SMS via Twilio

    Add an HTTP Request node after the IF node's True branch. Set the Method to POST and the URL to https://api.twilio.com/2010-04-01/Accounts/YOUR_ACCOUNT_SID/Messages.json. Under Authentication, choose Basic Auth and enter your Twilio Account SID as the username and your Auth Token as the password. Under Body Parameters, add To set to {{$json.customerPhone}}, From set to your Twilio phone number (e.g. +15551234567), and Body set to Hi {{$json.customerName}}, great news! Your order #{{$json.orderNumber}} has shipped. Thank you for shopping with us!.

Frequently asked questions

What if the customer did not provide a phone number at checkout?

The IF node filters out any orders where the phone field is empty, so only customers who provided a valid phone number will receive an SMS. No errors will occur for the others.

Can I customize the SMS message text?

Yes. In the HTTP Request node's `Body` parameter, simply edit the text in the `Body` field. You can include any customer or order details available from the Shopify trigger, such as tracking numbers if your fulfillment service provides them.

Do I need a special Shopify plan to use webhooks?

Shopify webhooks are available on all paid plans. You will also need to create a Custom App inside your Shopify Admin under Settings > Apps and Sales Channels to generate the API credentials required by n8n.

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.