Back to Templates

Send Rapiwa WhatsApp Apology & Reorder Link When Shopify Order is Cancelled

Created by

Created by: Rapiwa || rapiwa

Rapiwa

Last update

Last update 19 hours ago

Categories

Share


Who Is This For?

This n8n workflow listens for order cancellations in Shopify, extracts relevant customer and order data, checks if the customer’s phone number is registered on WhatsApp via the Rapiwa API, and sends a personalised apology message with a re-order link. It also logs successful and unsuccessful attempts in Google Sheets for tracking.

What This Workflow Does

  • Listens for cancelled orders in your Shopify store
  • Extracts customer details and order information
  • Generates a personalised apology message including a reorder link
  • Sends the message to customers via WhatsApp using a messaging API (e.g., Twilio or Rapiwa)
  • Logs the communication results for tracking purposes

Key Features

  • Real-Time Cancellation Detection: Automatically triggers when an order is cancelled
  • Personalised Messaging: Includes customer name, order details, and a direct reorder link
  • WhatsApp Integration: Sends messages via WhatsApp for higher engagement
  • Error Handling: Logs successful and failed message deliveries
  • Reorder Link: Provides a convenient link for customers to reorder with one click

Requirements

  • n8n instance with nodes: Shopify Trigger, HTTP Request (for WhatsApp API), Code, Google Sheets (optional)
  • Shopify store with API access
  • WhatsApp messaging provider account with API access
  • Valid customer phone numbers stored in Shopify orders

How to Use — Step-by-Step Setup

  1. Credentials Setup

    • Shopify API: Configure Shopify API credentials in n8n to listen for order cancellations
    • WhatsApp API: Set up WhatsApp messaging credentials (e.g., Twilio, Rapiwa, or any supported provider)
    • Google Sheets (Optional): Configure Google Sheets OAuth2 if you want to log communications
  2. Configure Trigger
    Set the workflow to trigger on Shopify order cancellation events

  3. Customize Message Content
    Modify the apology message template to include your store branding and tone
    Ensure the reorder link dynamically includes the customer's cancelled order info

  4. Set Up WhatsApp Node
    Connect your WhatsApp API credentials
    Ensure the phone numbers are formatted correctly for WhatsApp delivery

Google Sheet Required Columns

You’ll need two Google Sheets (or two tabs in one spreadsheet):
A Google Sheet formatted like thissample
The workflow uses a Google Sheet with the following columns to track coupon distribution:

Name Number Email Address Price Title Re-order Link Validity Status
Abdul Mannan 8801322827799 [email protected] Dhaka, Bangladesh BDT 1955.00 Pakistani Lawn Link 🔗 unverified not sent
Abdul Mannan 8801322827799 [email protected] Dhaka, Bangladesh BDT 1955.00 Pakistani Lawn Link 🔗 verified sent

Important Notes

  • Phone Number Validation: Ensure customer phone numbers are WhatsApp-enabled and formatted properly
  • API Rate Limits: Respect your WhatsApp provider’s API limits to avoid throttling
  • Data Privacy: Always comply with privacy laws when messaging customers
  • Error Handling: Monitor logs regularly to handle failed message deliveries
  • Testing: Test thoroughly with dummy data before activating the workflow live

Useful Links

Support & Help