Skip to main content

Auto-send WooCommerce invoices via WhatsApp with Rapiwa API

Workflow preview

Workflow preview
100%
Auto-send WooCommerce invoices via WhatsApp with 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 listens for new or updated WooCommerce orders, cleans and structures the order data, processes orders in batches, and standardizes WhatsApp phone numbers. It verifies...

Best for

  • CRM 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.code, n8n-nodes-base.googlesheets, n8n-nodes-base.woocommercetrigger, n8n-nodes-base.stickynote, n8n-nodes-rapiwa.rapiwa

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
Auto-send WooCommerce invoices via WhatsApp with Rapiwa API
Workflow name
Auto-send WooCommerce invoices via WhatsApp with Rapiwa API

Who is this for?

This workflow listens for new or updated WooCommerce orders, cleans and structures the order data, processes orders in batches, and standardizes WhatsApp phone numbers. It verifies phone numbers via the Rapiwa API, sends invoice links or messages to verified numbers, and logs results into separate Google Sheets tabs for verified and unverified numbers. Throttling and looping are managed using batch processing and wait delays.

What this Workflow Does

  • Receives order events (e.g., order.updated) from WooCommerce or a similar trigger.
  • Extracts customer, billing/shipping address, product list, and invoice link from the order payload.
  • Processes orders/items in batches for controlled throughput.
  • Cleans and normalizes phone numbers by removing non-digit characters.
  • Verifies whether a phone number is registered on WhatsApp using the Rapiwa API.
  • If verified, sends a personalized message or invoice link via Rapiwa's send-message endpoint.
  • If not verified, logs the customer as unverified in Google Sheets.
  • Logs every send attempt (status and validity) into Google Sheets.
  • Uses Wait nodes and batching to avoid API rate limits.

Key Features

  • Trigger-based automation (WooCommerce trigger; adaptable to Shopify webhook).
  • Batch processing using SplitInBatches for stable throughput.
  • Phone number cleaning using JavaScript (waNoStr.replace(/\D/g, "")).
  • Pre-send WhatsApp verification via Rapiwa to reduce failed sends.
  • Conditional branching (IF node) between verified and unverified flows.
  • Personalized message templates that include product and customer fields.
  • Logging to Google Sheets with separate flows for verified/sent and unverified/not sent.
  • Wait node for throttling and looping control.

Requirements

  • Running n8n instance with nodes: HTTP Request, Code, SplitInBatches, IF, Google Sheets, Wait, and a WooCommerce trigger (or equivalent).
  • Rapiwa account and Bearer token for verify/send endpoints.
  • Google account and Google Sheets access with OAuth2 credentials.
  • WooCommerce store access credentials (or Shopify credentials if adapting).
  • Incoming order payloads containing billing and line_items fields.

Google Sheet format (example rows)

A Google Sheet formatted like this ➤ Sample

Customer Name Phone Number Email Address Address Product Title Product ID Size Quantity Total Price Product Image Invoice Link Status Validity
Abdul Mannan 8801322827799 [email protected] mirpur T-Shirt - XL 110 XL 1 BDT 499.00 https://your_shop_domain/Product/gg.img https://your_shop_domain/INV/DAS sent verified
Abdul Mannan 8801322827799 [email protected] mirpur T-Shirt - XL 110 XL 1 BDT 499.00 https://your_shop_domain/Product/gg.img https://your_shop_domain/INV/DAS not sent unverified

Important Notes

  • The Code nodes assume billing and line_items exist in the incoming payload; update mappings if your source differs.
  • The message template references products[0]; if orders contain multiple items, update logic to summarize or iterate products.
  • Start testing with small batches to avoid accidental mass messaging and to respect Rapiwa rate limits.

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 - Clean Webhooks Response Data

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

Block 5 - Clean WhatsApp Number

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

Block 6 - Append Rows in Sheet Verified & Sent

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

Block 7 - WooCommerce Trigger

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

Block 8 - Append Rows in Sheet Unverified & Not sent

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

Block 9 - Sticky Note

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 Note3

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

Block 12 - Sticky Note1

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

Block 13 - Sticky Note2

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

Block 14 - Rapiwa (verify whatsapp number)

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

Block 15 - Rapiwa (send message)

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

3. Summary Table

Workflow Auto-send WooCommerce invoices via WhatsApp with Rapiwa API
Complexity advanced
Nodes 15
Categories CRM
Author Rapiwa
Published 19 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9879/9879.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 WooCommerce invoices via WhatsApp with Rapiwa API do?

Who is this for? This workflow listens for new or updated WooCommerce orders, cleans and structures the order data, processes orders in batches, and standardizes WhatsApp phone numbers. It verifies...

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