Skip to main content

Connect MoltFlow to n8n for WhatsApp Automation

Coreintermediate15 minutes10 min read

n8n + MoltFlow = 500+ app integrations. Forward WhatsApp messages without code. No-code workflows on all plans.

n8n + MoltFlow = automation superpowers. Forward WhatsApp messages to 500+ apps without writing a single line of code.

n8n WhatsApp integration (all plans) — unlimited workflow automation triggers. n8n is a powerful visual no-code integration tool that connects 500+ apps and services. MoltFlow gives you WhatsApp messaging and AI-powered automation. Together, you can build sophisticated workflow automation like "when a customer messages, look up their order in Shopify, and auto-reply with tracking info" — all without writing code.

This guide walks you through connecting MoltFlow to n8n, testing the n8n WhatsApp integration, and building your first automated no-code workflow.

What You'll Need

Before starting, make sure you have:

  • A MoltFlow account with Growth or Business plan — Webhooks (required for n8n WhatsApp integration) are available on Growth and Business plans. Upgrade here if you're on Free.
  • An n8n instance — You can use n8n Cloud (easiest, free tier available) or self-host n8n on your own server.
  • A MoltFlow API key — We'll use this to send messages from n8n back to MoltFlow. Create one at Dashboard > Settings > API Keys.

No coding required — everything is done through visual drag-and-drop no-code integration interfaces for workflow automation.

Why n8n + MoltFlow?

n8n excels at connecting different services together. MoltFlow excels at WhatsApp automation. Combine them with n8n WhatsApp integration and you get:

  • Event-driven workflows — Trigger workflow automation when WhatsApp messages arrive, sessions reconnect, or leads are captured
  • Cross-platform automation — Connect WhatsApp to Shopify, Stripe, Google Sheets, Slack, and 500+ other apps
  • No-code logic — Add conditional branching, data transformation, and loops without writing JavaScript with no-code integration
  • Scalable — Handle thousands of messages per day with visual workflow automation

Example use cases for n8n WhatsApp no-code integration:

  • Auto-reply with order status from Shopify when customers message "where is my order?"
  • Forward urgent WhatsApp messages to Slack
  • Add new WhatsApp contacts to your CRM automatically
  • Send WhatsApp notifications when Stripe payments succeed

Step 1: Set Up n8n Webhook Trigger

First, we'll create a workflow in n8n that listens for events from MoltFlow.

Create a New Workflow

  1. Log in to your n8n instance (Cloud or self-hosted)
  2. Click "New Workflow" in the top-right corner
  3. Give it a name like "MoltFlow WhatsApp Handler"

Add a Webhook Trigger Node

  1. Click the + button to add a node
  2. Search for "Webhook" and select it
  3. Configure the Webhook node:
    • Method: POST
    • Path: Leave default or enter something like moltflow-events
    • Authentication: None (we'll use HMAC verification later if needed)
  4. Click "Execute Node" or "Listen for Test Event"

n8n will show you the webhook URL. It looks like:

text
https://your-n8n-instance.app.n8n.cloud/webhook/abc123-xyz789

or for self-hosted:

text
https://your-server.com/webhook/abc123-xyz789

Copy this URL — you'll need it in the next step.

Keep the n8n tab open and switch back to MoltFlow.

Step 2: Configure MoltFlow to Send Events to n8n

Now we'll tell MoltFlow to send WhatsApp events to your n8n webhook.

Create a Webhook in MoltFlow

  1. In your MoltFlow dashboard, go to Webhooks (left sidebar)
  2. Click "Create Webhook"
  3. Enter:
    • URL: Paste the n8n webhook URL you copied
    • Secret: Leave blank for now (we'll add HMAC security later if needed)
  4. Click Create

Subscribe to Events

After creating the webhook, click Edit and subscribe to the events you want:

  • message.received — Inbound WhatsApp messages from customers
  • message.sent — Outbound message delivery confirmations
  • session.status_changed — WhatsApp session status changes (working/failed/stopped)
  • lead.captured — New leads from monitored groups

For this guide, check message.received only. We'll build an auto-reply workflow.

Click Save.

Send a Test Event

Back on the Webhooks page, find your n8n webhook and click "Send Test Event".

MoltFlow will send a test payload to n8n.

Verify in n8n

Switch back to your n8n workflow tab. If the Webhook node is listening, you should see the test event appear:

json
{
  "event": "webhook.test",
  "timestamp": "2026-02-13T10:30:00Z",
  "data": {
    "message": "This is a test event from MoltFlow"
  }
}

Click "Stop Listening" and save the node. Your webhook trigger is now configured.

Step 3: Process WhatsApp Events in n8n

Now that events are flowing from MoltFlow to n8n, let's process them.

Add a Set Node (Extract Data)

We'll extract the sender phone and message body from the webhook payload.

  1. Click + after the Webhook node
  2. Search for "Set" and select it
  3. Click "Add Value" and configure:
    • Name: from
    • Value: {{ $json.data.from }}
  4. Click "Add Value" again:
    • Name: message
    • Value: {{ $json.data.body }}
  5. Execute the node to test

This extracts the customer's phone number and message text into variables you can use in later nodes.

Add an IF Node (Conditional Logic)

Let's add logic to only respond to specific messages.

  1. Click + after the Set node
  2. Search for "IF" and select it
  3. Configure the condition:
    • Value 1: {{ $json.message }}
    • Operation: Contains
    • Value 2: order status
  4. Execute the node

Now the workflow will only continue (on the "true" branch) if the message contains "order status". Messages that don't match go to the "false" branch (which we'll leave empty for now).

This is how you build conditional auto-replies — different responses based on message content.

Step 4: Send WhatsApp Messages from n8n

Now let's send a WhatsApp message back using MoltFlow's API.

Add an HTTP Request Node

  1. Click + on the "true" branch of the IF node
  2. Search for "HTTP Request" and select it
  3. Configure the node:

Authentication:

  • Method: Generic Credential Type
  • Generic Auth Type: Header Auth
  • Name: X-API-Key
  • Value: Your MoltFlow API key (from Dashboard > Settings > API Keys)

Request:

  • Method: POST
  • URL: https://apiv2.waiflow.app/api/v2/messages/send
  • Send Body: Enable
  • Body Content Type: JSON

Body (JSON):

json
{
  "session_id": "YOUR_SESSION_ID",
  "phone": "{{ $json.from }}",
  "message": "Thanks for asking! Your order is on the way. Tracking: ABC123"
}

Replace YOUR_SESSION_ID with your actual WhatsApp session ID (find it at Dashboard > Sessions).

  1. Click Execute Node

If configured correctly, n8n will send a POST request to MoltFlow, which will send a WhatsApp message.

Test the Full Workflow

  1. Activate the workflow (toggle "Active" in the top bar)
  2. Send a WhatsApp message to your connected number with the text "order status"
  3. Check your phone — you should receive the auto-reply: "Thanks for asking! Your order is on the way. Tracking: ABC123"

Congratulations! You just built an automated WhatsApp responder with n8n and MoltFlow.

Step 5: Build a Complete Auto-Reply Workflow

Let's build something more useful: an order status lookup that pulls real data from Shopify (or any order system).

Workflow Steps

  1. Webhook Trigger — Receives message.received event from MoltFlow
  2. Set Node — Extracts customer phone and message
  3. IF Node — Checks if message contains "order" or "status"
  4. HTTP Request (Shopify API) — Looks up the customer's most recent order by phone number
  5. Set Node — Formats the order details into a reply message
  6. HTTP Request (MoltFlow API) — Sends the formatted reply back via WhatsApp

Example Configuration

Step 4: Query Shopify

json
{
  "url": "https://your-store.myshopify.com/admin/api/2024-01/orders.json",
  "method": "GET",
  "headers": {
    "X-Shopify-Access-Token": "YOUR_SHOPIFY_TOKEN"
  },
  "qs": {
    "phone": "{{ $json.from }}",
    "limit": 1,
    "status": "any"
  }
}

Step 5: Format Reply

json
{
  "replyMessage": "Hi! Your order #{{ $json.orders[0].order_number }} is {{ $json.orders[0].fulfillment_status }}. Tracking: {{ $json.orders[0].tracking_number }}"
}

Step 6: Send via MoltFlow

json
{
  "session_id": "YOUR_SESSION_ID",
  "phone": "{{ $node['Webhook'].json.data.from }}",
  "message": "{{ $json.replyMessage }}"
}

Handle Edge Cases

Add an IF node after Shopify lookup to check if an order was found:

  • If order exists: Send formatted reply
  • If no order: Send "We couldn't find an order for this number. Please contact support."

Example Workflows

Here are more workflows you can build:

1. Auto-Reply with Business Hours

  • Trigger: message.received
  • Logic: Check current time (use n8n's built-in Date & Time functions)
  • If after hours: Send "We're closed right now. Hours are 9 AM - 5 PM EST. We'll respond tomorrow!"
  • If during hours: Do nothing (let your team respond manually)

2. Forward Urgent Messages to Slack

  • Trigger: message.received
  • Logic: Check if message contains "urgent", "emergency", or "asap"
  • If urgent: Send message to Slack channel using Slack node
  • If not urgent: Do nothing

3. Add New Contacts to CRM

  • Trigger: message.received
  • Logic: Check if sender phone exists in CRM (use HTTP Request to query your CRM API)
  • If not exists: Create new contact in CRM with phone, name, and first message
  • If exists: Update "last contacted" timestamp

4. Trigger Review Request After Delivery

  • Trigger: Shopify order fulfillment webhook (configure in Shopify)
  • Logic: Wait 24 hours (use n8n's Wait node)
  • Action: Send WhatsApp review request via MoltFlow API

Troubleshooting

n8n Not Receiving Events

Problem: MoltFlow shows webhook deliveries as successful, but n8n workflow isn't triggering.

Possible causes:

  • Webhook URL is incorrect
  • n8n workflow is not activated (check "Active" toggle)
  • Webhook trigger node path changed after creation

Solution: Verify the webhook URL in MoltFlow matches the n8n webhook node URL exactly. Activate the workflow.

Messages Not Sending from n8n

Problem: HTTP Request node executes but no WhatsApp message is sent.

Possible causes:

  • API key is missing or incorrect
  • Session ID is wrong
  • Session status is not "working"
  • Phone number format is invalid (must be country code + number, no + or spaces)

Solution: Check the HTTP Request node's response. If you see a 401 error, the API key is wrong. If you see a 422 error, check the request body format.

Workflow Triggering on Every Message

Problem: The workflow triggers even when it shouldn't.

Possible causes:

  • IF node condition is too broad
  • No filter on message content

Solution: Add an IF node to filter messages. Only proceed if the message matches your trigger keywords.

What's Next?

Now that you've connected MoltFlow to n8n, explore these advanced workflow automation features:

n8n + MoltFlow is an incredibly powerful no-code integration combination. Use it to connect WhatsApp to your entire business stack and build workflow automation that were previously impossible.

Build your first automation in 5 minutes — start your free trial


Need help? Contact support via the dashboard chat or email us at [email protected]. We typically respond within 2-4 hours.

Ready to automate your WhatsApp?

Start for free — set up in under 2 minutes.