Skip to main content

Send WooCommerce discount coupons to customers via WhatsApp using Rapiwa API

Workflow preview

Workflow preview
100%
Send WooCommerce discount coupons to customers via WhatsApp using Rapiwa API 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 workflow is ideal for WooCommerce store owners who want to automatically send promotional WhatsApp messages to their customers when new coupons are created. It’s designed for ...

Best for

  • Social Media automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.if, n8n-nodes-base.wait, n8n-nodes-base.splitinbatches, n8n-nodes-base.woocommercetrigger, n8n-nodes-base.code, n8n-nodes-base.googlesheets, n8n-nodes-base.woocommerce, 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 Rapiwa.

Original n8n.io source

1.1 Workflow description

Title
Send WooCommerce discount coupons to customers via WhatsApp using Rapiwa API
Workflow name
Send WooCommerce discount coupons to customers via WhatsApp using Rapiwa API

Who is this for?

This workflow is ideal for WooCommerce store owners who want to automatically send promotional WhatsApp messages to their customers when new coupons are created. It’s designed for marketers and eCommerce managers looking to boost engagement, streamline coupon sharing, and track campaign performance effortlessly through Google Sheets.

Overview

This workflow listens for WooCommerce coupon creation events (coupon.created) and uses customer billing data to send promotional WhatsApp messages via the Rapiwa API. The flow formats the coupon data, cleans phone numbers, verifies WhatsApp registration with Rapiwa, sends the promotional message when verified, and logs each attempt to Google Sheets (separate sheets for verified/sent and unverified/not sent).

What this Workflow Does

  • Listens for new coupon creation events in WooCommerce via the WooCommerce Trigger node
  • Retrieves all customer data from the WooCommerce store
  • Processes customers in batches to control throughput
  • Cleans and formats customer phone numbers for WhatsApp
  • Verifies if phone numbers are valid WhatsApp accounts using Rapiwa API
  • Sends personalized WhatsApp messages with coupon details to verified numbers
  • Logs all activities to Google Sheets for tracking and analysis
  • Handles both verified and unverified numbers appropriately

Key Features

  • Automated coupon distribution: Triggers when new coupons are created in WooCommerce
  • Customer data retrieval: Fetches all customer information from WooCommerce
  • Phone number validation: Verifies WhatsApp numbers before sending messages
  • Personalized messaging: Includes customer name and coupon details in messages
  • Dual logging system: Tracks both successful and failed message attempts
  • Rate limiting: Uses batching and wait nodes to prevent API overload
  • Data formatting: Structures coupon information for consistent messaging

Google Sheet Column Structure

A Google Sheet formatted like thissample The workflow uses a Google Sheet with the following columns to track coupon distribution:

name number email address1 couponCode couponTitle couponType couponAmount createDate expireDate validity status
Abdul Mannan 8801322827799 [email protected] mirpur-DOHS 62dhryst eid offer 2025 percent 20.00 2025-09-11 06:08:02 2025-09-15 00:00:00 unverified not sent
Abdul Mannan 8801322827799 [email protected] mirpur-DOHS 62dhryst eid offer 2025 percent 20.00 2025-09-11 06:08:02 2025-09-15 00:00:00 verified sent

Requirements

  • n8n instance with the following nodes: WooCommerce Trigger, Code, SplitInBatches, HTTP Request, IF, Google Sheets, Wait
  • WooCommerce store with API access
  • Rapiwa account with API access for WhatsApp verification and messaging
  • Google account with Sheets access
  • Customer phone numbers in WooCommerce (stored in billing.phone field)

Important Notes

  • Phone Number Format: The workflow cleans phone numbers by removing all non-digit characters. Ensure your WooCommerce phone numbers are in a compatible format.
  • API Rate Limits: Rapiwa and WooCommerce APIs have rate limits. Adjust batch sizes and wait times accordingly.
  • Data Privacy: Ensure compliance with data protection regulations when sending marketing messages.
  • Error Handling: The workflow logs unverified numbers but doesn't have extensive error handling. Consider adding error notifications for failed API calls.
  • Message Content: The current message template references the first coupon only (coupons[0]). Adjust if you need to handle multiple coupons.

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

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

Block 2 - Wait

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

Block 3 - Loop Over Items

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

Block 4 - WooCommerce Trigger

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

Block 5 - Clean WhatsApp Number

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

Block 6 - Save State of Rows in Verified & Sent

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

Block 7 - Format WooCommerce Trigger Response Data

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

Block 8 - Get many customers

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

Block 9 - Save State of Rows in Unerified & Not sent

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

Block 10 - Sticky Note2

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

Block 11 - Sticky Note3

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

Block 12 - Sticky Note5

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 Note

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

Block 15 - Rapiwa

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

Block 16 - Rapiwa (send message)

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

3. Summary Table

Workflow Send WooCommerce discount coupons to customers via WhatsApp using Rapiwa API
Complexity advanced
Nodes 16
Categories Social Media
Author Rapiwa
Published 25 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10140/10140.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 WooCommerce discount coupons to customers via WhatsApp using Rapiwa API do?

Who is this for? This workflow is ideal for WooCommerce store owners who want to automatically send promotional WhatsApp messages to their customers when new coupons are created. It’s designed for ...

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