Skip to main content

Automatically send WhatsApp discount codes to Shopify customers using Rapiwa

Workflow preview

Workflow preview
100%
Automatically send WhatsApp discount codes to Shopify customers 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

Automatically Send WhatsApp Discount Codes to Shopify Customers Using Rapiwa Who is this for? This n8n workflow automatically sends WhatsApp promotional messages to top customers whenever a new dis...

Best for

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

Tools used

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

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
Automatically send WhatsApp discount codes to Shopify customers using Rapiwa
Workflow name
Automatically send WhatsApp discount codes to Shopify customers using Rapiwa

Automatically Send WhatsApp Discount Codes to Shopify Customers Using Rapiwa

Who is this for?

This n8n workflow automatically sends WhatsApp promotional messages to top customers whenever a new discount code is created in Shopify. It’s perfect for store owners, marketers, sales teams, or support agents who want to engage their best customers effortlessly. The workflow fetches customer data, filters high-spending customers, verifies their WhatsApp numbers using the Rapiwa API, sends discount messages to verified contacts, and logs all activity in Google Sheets. Designed for non-technical users who don’t use the official WhatsApp Business API, this automation simplifies customer outreach and tracking without any manual work.

What this Workflow Does

This n8n workflow connects with a Google Sheet that contains a list of contacts. It reads rows marked for processing, cleans the phone numbers, checks their validity using Rapiwa's WhatsApp validation API, sends WhatsApp messages to valid numbers, and updates the status of each row accordingly.

Key Features

  • Runs Every 5 Minutes: Automatically triggers the workflow
  • Google Sheets Integration: Reads and writes data from a specific sheet
  • Phone Number Validation: Confirms if a WhatsApp number is active via Rapiwa API
  • Message Sending: Sends a message using Rapiwa's /send-message endpoint
  • Status Update: Sheet is updated with success or failure status
  • Safe API Usage: Delays added between requests to prevent rate limits
  • Batch Limit: Processes max 60 rows per cycle
  • Conditional Checks: Skips rows without a "check" value

Requirements

  • A Google Sheet with necessary columns
  • Rapiwa account with active subscription (you can free 200 message)
  • Your WhatsApp number connected to Rapiwa
  • Valid Bearer Token
  • n8n Instance (self-hosted or cloud)
    • Google Sheets node configured
    • HTTP Request node access

How to Use

Step-by-Step Setup

  1. Webhook

    • Receives Shopify Webhook (discount creation) via HTTP POST request.
      This is triggered when a discount is created in your Shopify store.
  2. Configure Google Sheets in n8n

    • Use the Google Sheets node with OAuth2 access
  3. Get Rapiwa API Token

    • Create an account on Rapiwa
    • Connect your WhatsApp number
    • Copy your Bearer Token from the Rapiwa dashboard
  4. Set Up HTTP Request Nodes

    • Validate number via: https://app.rapiwa.com/api/verify-whatsapp
    • Send message via: https://app.rapiwa.com/api/send-message
    • Add your bearer token to the headers

Google Sheet Column Structure

  • A Google Sheet formatted like this ➤ Sample

| discount_code | created_at | shop_domain | name | number | verify | status | | -------------------------------------------- | ------- | ------------------------- | ----------------------- | -------------- | ------------- | ---------- | -------- | | V8ZGVRDFP5TB | 2025-09-25T05:26:40-04:00 | your_shop_domain | Abdul Mannan | 8801322827798| unverified | not sent | | V8ZGVRDFP5TB | 2025-09-25T05:26:40-04:00 | your_shop_domain | Abdul Mannan | 8801322827799| verified | sent |


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 - Webhook

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

Block 2 - If

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

Block 3 - Wait

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

Block 4 - Clean WhatsApp Number

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

Block 5 - Clean Webhooks Response Data

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

Block 6 - Loop Over Items

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

Block 7 - Sticky Note

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

Block 8 - Sticky Note1

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

Block 9 - Sticky Note2

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

Block 10 - Sticky Note4

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

Block 11 - Sticky Note5

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

Block 12 - Get All Customer Data In Shopify Store

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

Block 13 - Clean Customer Data In Shopify Store

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

Block 14 - Save data Sheet Unverified & Not sent

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

Block 15 - Save data in Sheet Verified & Sent

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

Block 16 - Rapiwa

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

Block 17 - Rapiwa1

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

3. Summary Table

Workflow Automatically send WhatsApp discount codes to Shopify customers using Rapiwa
Complexity advanced
Nodes 17
Categories Lead Nurturing
Author Rapiwa
Published 13 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9560/9560.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 Automatically send WhatsApp discount codes to Shopify customers using Rapiwa do?

Automatically Send WhatsApp Discount Codes to Shopify Customers Using Rapiwa Who is this for? This n8n workflow automatically sends WhatsApp promotional messages to top customers whenever a new dis...

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 use case.