N8N Workflow
Auto Send Thank-You Messages & Loyalty Coupons via WhatsApp from Shopify using Rapiwa
Automate WhatsApp thank-you messages and loyalty coupons for high-value Shopify customers. Verify numbers with Rapiwa API, send messages, and log all activity in Google Sheets for auditing
|
|
|

Shopify Auto Send WhatsApp Thank-You Messages & Loyalty Coupons via Rapiwa API

Who Is This For?

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

What This Workflow Does

  • Fetches customer data from Shopify
  • Filters customers with total_spent > 5000
  • Cleans phone numbers and normalizes to international format
  • Verifies WhatsApp numbers via Rapiwa API
  • Sends coupon or thank-you messages to verified numbers
  • 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 via Shopify webhook (discounts/create) or manual trigger
  • Targeted messaging for high-value customers
  • Pre-send verification reduces failed messages
  • Google Sheets logging for auditing
  • Rate-limit protection using Wait node

Step-by-Step Setup

  1. Prepare a Google Sheet with columns: name, number, status, validity, check (optional)
  2. Configure n8n credentials:
    • Shopify: Store access token
    • Rapiwa: Bearer token
    • Google Sheets: OAuth2 credentials
  3. Configure nodes:
    • Webhook/Trigger: Shopify discounts/create or Manual Trigger
    • HTTP Request (Shopify): Fetch customer data
    • Code Node: Filter customers and map fields
    • SplitInBatches Node: Batch processing
    • Code Node: Clean phone numbers
    • HTTP Request (Rapiwa verify): /verify-whatsapp
    • IF Node: Branch based on data.exists
    • HTTP Request (Rapiwa send-message): Send coupon/thank-you
    • Google Sheets Append/Update: Log status and validity
    • Wait Node: 2–5 seconds delay between sends
  4. Test with a small batch (2–5 records) before scaling

Google Sheet Structure

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

Requirements

  • Shopify Admin API access
  • Rapiwa account with Bearer token
  • Google account with Sheets and OAuth2 credentials
  • n8n instance with HTTP Request, Code, SplitInBatches, IF, Google Sheets, Wait nodes

Customization Ideas

  • Adjust filters (order count, customer tags)
  • Use dynamic message templates with name and coupon code
  • Add SMS or email fallback for unverified numbers
  • Send admin run summary via Slack or email
  • Store logs in a database for deeper analysis

Important Notes

  • data.exists may be boolean or string — normalize before IF node
  • Google Sheets column headers must match mapping keys exactly
  • Keep Rapiwa and Shopify tokens secure in n8n credentials
  • Start with small batches before scaling

Useful Links

Support & Help

Item details
Release date
2025-11-12
Last update
2025-11-15
Similar items
Automate WooCommerce order updates: verify WhatsApp numbers, send templated messages with invoice links, log results to Google Sheets, and throttle requests using n8n workflow with Rapiwa API
Free
Buy now
WhatsApp coupon distribution for WooCommerce: verifies customer numbers via Rapiwa, sends personalized coupon messages, logs activity in Google Sheets, and handles unverified contacts efficiently
Free
Buy now
An n8n workflow that verifies WhatsApp numbers from Google Sheets using Rapiwa API, processes data in batches, and updates verification status automatically with scheduling.
$15.00
Buy now
Automated n8n workflow that captures Facebook leads, formats data, updates Google Sheets, and sends personalized emails with status tracking to boost response time, engagement, and conversions.
$11.00
Buy now
SpaGreen Store @ 2026 All rights reserved.
{{ recentPurchase.name.shorten(30) }}
Recently purchased
{{ recentPurchase.item_name.shorten(30) }}
Verified