Skip to main content

Send Rapiwa WhatsApp apology & reorder link when Shopify order is cancelled

Workflow preview

Workflow preview
100%
Send Rapiwa WhatsApp apology & reorder link when Shopify order is cancelled preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 Rap...

Best for

  • Support Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.code, n8n-nodes-base.splitinbatches, n8n-nodes-base.shopifytrigger, n8n-nodes-base.if, n8n-nodes-base.wait, n8n-nodes-base.googlesheets, n8n-nodes-base.stickynote, n8n-nodes-rapiwa.rapiwa

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Rapiwa.

Original n8n.io source

1.1 Workflow description

Title
Send Rapiwa WhatsApp apology & reorder link when Shopify order is cancelled
Workflow name
Send Rapiwa WhatsApp apology & reorder link when Shopify order is cancelled

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

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Code

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 2 - Loop Over Items

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 3 - Shopify Trigger

Type / Role
n8n-nodes-base.shopifyTrigger - shopifyTrigger
Config choices
Version 1

Block 4 - If

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 5 - Wait

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 6 - Clean WhatsApp Number

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 7 - Save State of Rows in Verified & Sent

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 8 - Save State of Rows in Verified & Sent1

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 9 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Rapiwa

Type / Role
n8n-nodes-rapiwa.rapiwa - rapiwa
Config choices
Version 1

Block 15 - Rapiwa (send message)

Type / Role
n8n-nodes-rapiwa.rapiwa - rapiwa
Config choices
Version 1

3. Summary Table

Workflow Send Rapiwa WhatsApp apology & reorder link when Shopify order is cancelled
Complexity advanced
Nodes 15
Categories Support Chatbot
Author Rapiwa
Published 28 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10237/10237.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Send Rapiwa WhatsApp apology & reorder link when Shopify order is cancelled do?

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 Rap...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Support Chatbot use case.