Skip to main content

Auto send thank-you messages & loyalty coupons via WhatsApp from Shopify using Rapiwa

Workflow preview

Workflow preview
100%
Auto send thank-you messages & loyalty coupons via WhatsApp from Shopify using Rapiwa preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Shopify Auto Send WhatsApp Thank You Messages & Loyalty Coupon Using Rapiwa API Who is this for? This workflow is for Shopify store owners, marketers, and support teams who want to automatically me...

Best for

  • Lead Nurturing automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.splitinbatches, n8n-nodes-base.if, n8n-nodes-base.code, n8n-nodes-base.httprequest, n8n-nodes-base.googlesheets, n8n-nodes-base.wait, n8n-nodes-base.manualtrigger, n8n-nodes-base.stickynote

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Auto send thank-you messages & loyalty coupons via WhatsApp from Shopify using Rapiwa
Workflow name
Auto send thank-you messages & loyalty coupons via WhatsApp from Shopify using Rapiwa

Shopify Auto Send WhatsApp Thank-You Messages & Loyalty Coupon Using Rapiwa API

Who is this for?

This workflow is for Shopify store owners, marketers, and support teams who want to automatically message their high-value customers on WhatsApp when new discount codes are created.

What this workflow does

  • Fetches customer data from Shopify
  • Filters customers where total_spent > 5000
  • Cleans phone numbers (removes non-digit characters) and normalizes them to an international format
  • Verifies numbers via the Rapiwa API (verify-whatsapp endpoint)
  • Sends coupon or thank-you messages to verified numbers via the Rapiwa send-message endpoint
  • Logs each send attempt to Google Sheets with status and validity
  • Uses batching (SplitInBatches) and Wait nodes to avoid rate limits

Key features

  • Automated trigger: Shopify webhook (discounts/create) or manual trigger
  • Targeted sending to high-value customers
  • Pre-send verification to reduce failed sends
  • Google Sheets logging and status updates
  • Rate-limit protection using Wait node

#How to use?

Step-by-step setup

  1. Prepare a Google Sheet

    • Columns: name, number, status, validity, check (optional)
    • Example row: Abdul Mannan | 8801322827799 | not sent | unverified | check
  2. Configure n8n credentials

    • Shopify: store access token (X-Shopify-Access-Token)
    • Rapiwa: Bearer token (HTTP Bearer credential)
    • Google Sheets: OAuth2 credentials and sheet access
  3. Configure the nodes

    • Webhook/Trigger: Shopify discounts/create or Manual Trigger
    • HTTP Request (Shopify): /admin/api/<version>/customers.json
    • Code node: filter customers total_spent > 5000 and map fields
    • SplitInBatches: batching/looping
    • Code (clean number): waNoStr.replace(/\D/g, "")
    • HTTP Request (Rapiwa verify): POST https://app.rapiwa.com/api/verify-whatsapp body { number }
    • IF node: check data.exists to decide branch
    • HTTP Request (Rapiwa send-message): POST https://app.rapiwa.com/api/send-message body { number, message_type, message }
    • Google Sheets Append/Update: write status and validity
    • Wait: add 2–5 seconds delay between sends
  4. Test with a small batch

    • Run manually with 2–5 records first and verify results

Google Sheet column structure

A Google Sheet formatted like this ➤ Sample

Name Number Status Validity
Abdul Mannan 8801322827798 not sent unverified
Abdul Mannan 8801322827799 sent verified

Requirements

  • Shopify Admin API access (store access token)
  • Rapiwa account and Bearer token
  • Google account and Google Sheet (OAuth2 setup)
  • n8n instance (nodes used: HTTP Request, Code, SplitInBatches, IF, Google Sheets, Wait)

Customization ideas

  • Adjust the filter (e.g., order count, customer tags)
  • Use message templates to insert name and coupon code per customer
  • Add an SMS or email fallback for unverified numbers
  • Send a run summary to admin (Slack / email)
  • Store logs in a database for deeper analysis

Important notes

  • data.exists may be a boolean or a string — normalize it in a Code node before using in an IF node
  • Ensure Google Sheets column names match exactly
  • Store Rapiwa and Shopify tokens securely in n8n credentials
  • Start with small batches for testing and scale gradually

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 - Loop Over Items

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

Block 2 - If

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

Block 3 - Clean WhatsApp Number

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

Block 4 - Check valid whatsapp number Using Rapiwa

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 5 - Append Rows in Sheet Verified & Sent

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

Block 6 - Append Rows in Sheet Unverified & Not sent

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

Block 7 - Wait

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

Block 8 - Send Message Using Rapiwa

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 9 - Get All Customer Data In Store

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 10 - Clean HTTP Request Data

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

Block 11 - Clicki

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

Block 12 - Sticky Note

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

Block 13 - Sticky Note1

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

Block 14 - Sticky Note2

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

Block 15 - Sticky Note3

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

Block 16 - Sticky Note4

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

Block 17 - Sticky Note5

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

3. Summary Table

Workflow Auto send thank-you messages & loyalty coupons via WhatsApp from Shopify using Rapiwa
Complexity advanced
Nodes 17
Categories Lead Nurturing, AI Chatbot
Author SpaGreen Creative
Published 06 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9292/9292.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 Auto send thank-you messages & loyalty coupons via WhatsApp from Shopify using Rapiwa do?

Shopify Auto Send WhatsApp Thank You Messages & Loyalty Coupon Using Rapiwa API Who is this for? This workflow is for Shopify store owners, marketers, and support teams who want to automatically me...

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 Lead Nurturing, AI Chatbot use case.