Skip to main content

Send WooCommerce cross-sell offers to customers via WhatsApp using Rapiwa API

Workflow preview

Workflow preview
100%
Send WooCommerce cross-sell offers 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 n8n workflow enables automated cross selling by identifying each WooCommerce customer's most frequently purchased product, finding a related product to recommend , and sending...

Best for

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

Tools used

n8n-nodes-base.woocommerce, n8n-nodes-base.scheduletrigger, n8n-nodes-base.splitinbatches, n8n-nodes-base.if, n8n-nodes-base.code, n8n-nodes-base.wait, 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
Send WooCommerce cross-sell offers to customers via WhatsApp using Rapiwa API
Workflow name
Send WooCommerce cross-sell offers to customers via WhatsApp using Rapiwa API

Who Is This For?

This n8n workflow enables automated cross-selling by identifying each WooCommerce customer's most frequently purchased product, finding a related product to recommend, and sending a personalized WhatsApp message using the Rapiwa API. It also verifies whether the user's number is WhatsApp-enabled before sending, and logs both successful and unsuccessful attempts to Google Sheets for tracking.

What This Workflow Does

  • Retrieves all paying customers from your WooCommerce store
  • Identifies each customer's most purchased product
  • Finds the latest product in the same category as their most purchased item
  • Cleans and verifies customer phone numbers for WhatsApp compatibility
  • Sends personalized WhatsApp messages with product recommendations
  • Logs all activities to Google Sheets for tracking and analysis
  • Handles both verified and unverified numbers appropriately

Key Features

  • Customer Segmentation: Automatically identifies paying customers from your WooCommerce store
  • Product Analysis: Determines each customer's most purchased product
  • Smart Recommendations: Finds the latest products in the same category as customer favorites
  • WhatsApp Integration: Uses Rapiwa API for message delivery
  • Phone Number Validation: Verifies WhatsApp numbers before sending messages
  • Dual Logging System: Tracks both successful and failed message attempts in Google Sheets
  • Rate Limiting: Uses batching and wait nodes to prevent API overload
  • Personalized Messaging: Includes customer name and product details in messages

Requirements

  • 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)

How to Use — Step-by-Step Setup

1. Credentials Setup

  • WooCommerce API: Configure WooCommerce API credentials in n8n (e.g., "WooCommerce (get customer)" and "WooCommerce (get customer data)")
  • Rapiwa Bearer Auth: Create an HTTP Bearer credential with your Rapiwa API token
  • Google Sheets OAuth2: Set up OAuth2 credentials for Google Sheets access

2. Configure Google Sheets

  • Ensure your sheet has the required columns as specified in the Google Sheet Column Structure section

3. Verify Code Nodes

  • Code (get paying_customer): Filters customers to include only those who have made purchases
  • Get most buy product id & Clear Number: Identifies the most purchased product and cleans phone numbers

4. Configure HTTP Request Nodes

  • Get customer data: Verify the WooCommerce API endpoint for retrieving customer orders
  • Get specific product data: Verify the WooCommerce API endpoint for product details
  • Get specific product recommend latest product: Verify the WooCommerce API endpoint for finding latest products by category
  • Check valid WhatsApp number Using Rapiwa: Verify the Rapiwa endpoint for WhatsApp number validation
  • Rapiwa Sender: Verify the Rapiwa endpoint for sending messages

Google Sheet Required Columns

You’ll need two Google Sheets (or two tabs in one spreadsheet): A Google Sheet formatted like thissample The workflow uses a Google Sheet with the following columns to track coupon distribution: Both must have the following headers (match exactly):

name number email address1 price suk title product link validity staus
Abdul Mannan 8801322827799 [email protected] mirpur dohs 850 Sharp Most Demanding Hoodie x Nike https://your_shop_domain/p-img-nike verified sent
Abdul Mannan 8801322827799 [email protected] mirpur dohs 850 Sharp Most Demanding Hoodie x Nike https://your_shop_domain/p-img-nike unverified not sent
Abdul Mannan 8801322827799 [email protected] mirpur dohs 850 Sharp Most Demanding Hoodie x Nike https://your_shop_domain/p-img-nike verified sent

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.
  • Product Availability: The workflow recommends the latest product in a category, but doesn't check if it's in stock. Consider adding stock status verification.
  • Testing: Always test with a small batch before running the workflow on your entire customer list.

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 - Get many customers

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

Block 2 - Schedule Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 3 - Loop Over Items

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

Block 4 - If

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

Block 5 - Code (get paying_customer)

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

Block 6 - Code (clean data)

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

Block 7 - Wait

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

Block 8 - get customer data

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

Block 9 - get specific product data

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

Block 10 - get specific product recommend latest product

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

Block 11 - get most buy product id & Clear Number

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

Block 12 - Save State of Rows in Verified & Sent

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

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

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

Block 14 - Sticky Note

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

Block 15 - Sticky Note1

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

Block 16 - Sticky Note2

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

Block 17 - Sticky Note4

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

Block 18 - Sticky Note5

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

Block 19 - Sticky Note6

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

Block 20 - Sticky Note7

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

Block 21 - Sticky Note8

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

Block 22 - Rapiwa (verify whatsapp number)

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

Block 23 - Rapiwa (Send Message)

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

3. Summary Table

Workflow Send WooCommerce cross-sell offers to customers via WhatsApp using Rapiwa API
Complexity advanced
Nodes 23
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/10141/10141.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 cross-sell offers to customers via WhatsApp using Rapiwa API do?

Who Is This For? This n8n workflow enables automated cross selling by identifying each WooCommerce customer's most frequently purchased product, finding a related product to recommend , and sending...

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.