Shopify Order Cancellation WhatsApp Workflow
Who Is This For?
This n8n workflow listens for order cancellations in Shopify, extracts customer and order data, verifies WhatsApp numbers via a messaging API, and sends personalized apology messages with reorder links. Logs are stored in Google Sheets for tracking.
What This Workflow Does
- Listens for cancelled orders in Shopify
- Extracts customer details and order information
- Generates a personalized apology message with reorder link
- Sends messages via WhatsApp using a messaging API (Rapiwa, Twilio, etc.)
- Logs communication results in Google Sheets
Key Features
- Real-Time Cancellation Detection
- Personalized Messaging including customer name, order details, and reorder link
- WhatsApp Integration for higher engagement
- Error Handling: Logs success and failure
- Convenient Reorder Link for customers
Requirements
- n8n instance with Shopify Trigger, HTTP Request, Code, and Google Sheets nodes
- Shopify store with API access
- WhatsApp messaging provider account with API access
- Valid customer phone numbers in Shopify orders
Setup Steps
- Credentials Setup: Configure Shopify API, WhatsApp API (Rapiwa/Twilio), and optionally Google Sheets OAuth2.
- Configure Trigger: Set workflow to trigger on Shopify order cancellations.
- Customize Message: Edit apology message template to include store branding and reorder link.
- WhatsApp Node: Connect API credentials and ensure proper phone number formatting.
Google Sheet Required Columns
| Name |
Number |
Email |
Address |
Price |
Title |
Re-order Link |
Validity |
Status |
| Customer Name |
8801XXXXXXXX |
email@example.com |
City, Country |
BDT 0.00 |
Product Title |
Reorder Link |
unverified |
not sent |
| Customer Name |
8801XXXXXXXX |
email@example.com |
City, Country |
BDT 0.00 |
Product Title |
Reorder Link |
verified |
sent |
Important Notes
- Ensure phone numbers are WhatsApp-enabled and properly formatted.
- Respect WhatsApp API rate limits to avoid throttling.
- Comply with data privacy regulations when sending messages.
- Monitor logs for failed messages and test with dummy data before going live.
Useful Links
Support & Help