Blog/Tutorials

How to Integrate Rapiwa with n8n: Complete Step-by-Step Tutorial

Learn how to connect Rapiwa's WhatsApp API to n8n workflows. Complete guide with HTTP Request node configuration, webhook setup, and example workflows for WooCommerce and Shopify.

by Nihal
How to Integrate Rapiwa with n8n: Complete Step-by-Step Tutorial

You can integrate Rapiwa with n8n in under 10 minutes using an HTTP Request node. Configure the node with Rapiwa's endpoint, add your Bearer token, and map your data fields — then any n8n trigger can send WhatsApp messages automatically. Rapiwa ($5/month) has 10 pre-built n8n templates you can import with one click to skip all manual configuration.

What You Need

  • Rapiwa account — free 3-day trial
  • n8n instance (Cloud free tier or self-hosted)
  • Rapiwa API key (Dashboard → API Keys)
  • WhatsApp number connected in Rapiwa dashboard

Method 1: Import a Pre-Built Template (Fastest — 5 Minutes)

Rapiwa has 10 ready-made n8n templates at n8n.io/creators/rapiwa:

  1. Go to the template page
  2. Click Use this workflow
  3. Open the HTTP Request node in the workflow
  4. Update the Authorization header with your Rapiwa API key
  5. Configure the trigger (WooCommerce webhook, Google Calendar, etc.)
  6. Activate

Most popular templates:

Method 2: Add Rapiwa to Any Custom Workflow

Step 1: Add an HTTP Request Node

In your n8n workflow canvas:

  1. Click the + button to add a new node
  2. Search for HTTP Request
  3. Click to add it

Step 2: Configure the Rapiwa Node

In the HTTP Request node settings:

SettingValue
MethodPOST
URLhttps://app.rapiwa.com/send-message
AuthenticationHeader Auth
Header NameAuthorization
Header ValueBearer YOUR_API_KEY
Body Content TypeJSON

Request body (JSON):

{
  "number": "={{ $json.customer_phone }}",
  "message": "={{ $json.message_text }}"
}

Replace $json.customer_phone and $json.message_text with your actual field paths from upstream nodes.

Step 3: Map Data from Your Trigger

n8n uses {{ $json.fieldname }} expressions to reference data from previous nodes:

Data to includen8n expression example
Customer phone{{ $json.billing.phone }}
Customer name{{ $json.billing.first_name }}
Order ID{{ $json.id }}
Order total{{ $json.total }}
Custom textHi {{ $json.billing.first_name }}! Order #{{ $json.id }} confirmed.

Step 4: Test the Node

  1. Click Test node (or Execute Node) in n8n
  2. Check the output — you should see {"status": "success", "messageId": "..."}
  3. Check your WhatsApp — the message should arrive within seconds

Complete Example: WooCommerce Order → WhatsApp

Here is a complete workflow JSON you can paste into n8n:

{
  "name": "WooCommerce Order → WhatsApp (Rapiwa)",
  "nodes": [
    {
      "name": "WooCommerce Webhook",
      "type": "n8n-nodes-base.webhook",
      "parameters": {
        "httpMethod": "POST",
        "path": "woocommerce-order",
        "responseMode": "onReceived"
      },
      "position": [200, 300]
    },
    {
      "name": "Format Phone Number",
      "type": "n8n-nodes-base.set",
      "parameters": {
        "values": {
          "string": [
            {
              "name": "clean_phone",
              "value": "={{ $json.billing.phone.replace(/[^0-9]/g, '') }}"
            },
            {
              "name": "message",
              "value": "=*Order Confirmed!* 🛒\n\nHi {{ $json.billing.first_name }}!\nOrder #{{ $json.id }}\nTotal: ${{ $json.total }}\n\nThank you for your order!"
            }
          ]
        }
      },
      "position": [400, 300]
    },
    {
      "name": "Send WhatsApp via Rapiwa",
      "type": "n8n-nodes-base.httpRequest",
      "parameters": {
        "method": "POST",
        "url": "https://app.rapiwa.com/send-message",
        "authentication": "headerAuth",
        "headerAuthName": "Authorization",
        "headerAuthValue": "Bearer YOUR_API_KEY",
        "bodyContentType": "json",
        "jsonBody": "={{ JSON.stringify({number: $json.clean_phone, message: $json.message}) }}"
      },
      "position": [600, 300]
    }
  ]
}

Receive WhatsApp Messages in n8n (Webhook)

To receive incoming WhatsApp messages in n8n:

  1. Add a Webhook node to your workflow
  2. Set method to POST, path to e.g. rapiwa-incoming
  3. Copy the webhook URL (e.g. https://your-n8n.cloud/webhook/rapiwa-incoming)
  4. In Rapiwa dashboard → Webhooks → add this URL
  5. Activate the workflow

When someone sends a WhatsApp message to your Rapiwa number, n8n receives:

{
  "event": "message.received",
  "from": "8801234567890",
  "fromName": "Customer Name",
  "message": "Hi, I need help with my order",
  "timestamp": "2026-05-31T10:00:00Z"
}

Building a Two-Way WhatsApp Bot in n8n

Combining send and receive:

[Rapiwa Webhook] → [n8n processes message] → [Rapiwa HTTP Request sends reply]
  1. Webhook node receives incoming message
  2. IF node routes based on message content
  3. HTTP Request node sends reply via Rapiwa
// In the HTTP Request "reply" node:
{
  "number": "={{ $('Webhook').item.json.from }}",
  "message": "Thanks for your message! We'll reply within 1 hour."
}

Common n8n + Rapiwa Issues

"Authentication failed" error:

  • Check your API key has no extra spaces
  • Ensure the header value is exactly Bearer YOUR_KEY (with space after "Bearer")

Empty phone number:

  • Check your data mapping — use n8n's input inspector to see the exact field names
  • Clean phone numbers with: {{ $json.phone.replace(/[^0-9]/g, '') }}

Workflow not triggering:

  • For webhooks: ensure your n8n instance is accessible from the internet
  • For scheduled triggers: check timezone settings in n8n

FAQ

Do I need to know how to code to use Rapiwa with n8n? No. Use any of the 10 pre-built templates — import, add your API key, activate. Zero coding required.

Is n8n free to use with Rapiwa? n8n has a free self-hosted version (unlimited) and a free Cloud tier (5,000 executions/month). For most small business use cases, the free tier is sufficient.

Can I use Rapiwa with n8n's WooCommerce trigger? Yes. The WooCommerce trigger or webhook node fires when orders are created/updated, then the HTTP Request node sends the WhatsApp message via Rapiwa.

How do I format messages in n8n for WhatsApp? Use WhatsApp markdown in your message text: *bold*, _italic_, ~strikethrough~. Use \n for line breaks in n8n expressions.

What are the most popular Rapiwa + n8n workflows? WooCommerce invoice delivery (1,306 installs), Google Calendar reminders (538), GPT-4 support bot (474), and WooCommerce cross-sell (311). See all at n8n.io/creators/rapiwa.