Back to Templates

Automatically Send WhatsApp Discount Codes to Shopify Customers Using Rapiwa

Created by

Created by: Rapiwa || rapiwa

Rapiwa

Last update

Last update 7 hours ago

Categories

Share


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