# n8n

> Connect Whatsable with n8n. Run workflows on WhatsApp messages, send templates and media, schedule messages and update contacts with the verified Whatsable node. Coexistence is supported; you keep the WhatsApp Business app on your phone.

# Whatsable integration with n8n

<img src="/images/notifyer_n8n_svg.svg" className="rounded-xl" />

*Automate your WhatsApp messaging workflows with n8n and Whatsable*

n8n is a workflow automation platform that you use in n8n Cloud or on your own server. The verified **Whatsable** node connects your n8n workflows to your WhatsApp number in Whatsable.

Use it to:

- Start a workflow when a contact writes to your WhatsApp number.
- Send an approved template, with variables, a media header and a URL button.
- Send text, image, video or document messages inside the 24-hour window.
- Schedule a message for a later date and time.
- Add labels and an AI note to a contact, so that your team and your [AI agent](https://console.whatsable.app/ai-bots) see the same context.
- Read Click-to-WhatsApp ad data (`source_id`, `source_url`, `ctwa_clid`) on new leads.

> [!NOTE]
>
> **Meta WhatsApp Coexistence is supported on Whatsable.** You do **not** need to delete the WhatsApp Business app or stop using the number on your phone. After Embedded Signup, the same number works in the WhatsApp Business app, the Whatsable inbox, and automations (Make, Zapier, n8n, API, and webhooks) at the same time.

## Available operations at a glance

- **Trigger**: 
- On new Incoming message event

- **Actions**: 
- Send template via Whatsable
- Send non-template via Whatsable
- Update recipient (note and labels)

For every field of the node, see [n8n node fields](/integration/n8n/fields).

## How the n8n node works with Whatsable

The Whatsable node calls the Whatsable integration API with your API key. The Make, Zapier and n8n apps all use this API. It is not [API v1](/api-reference/v1), which is for your own code. One API key works for both.

> [!NOTE]
>
> The **What this key can do** setting of an API key limits API v1 only. It does not limit the n8n node.

### API keys and WhatsApp numbers

An API key belongs to one default WhatsApp number in your organization. This decides how the node behaves:

- Every message that the node sends with the key goes out from the key's default number.
- A trigger that you register with the key receives the messages of that number only.
- The template list in the node shows the approved templates of the WhatsApp Business account that holds that number.

To work with two numbers, create one API key for each number. Then create one n8n credential for each key.

To move a key to another number, open [**API keys**](https://console.whatsable.app/settings/api-keys) and use **Change number** on the key. The triggers that the key registered move with it. Messages that are already scheduled keep their number.

## Prerequisites

Before you start, make sure that you have:

- **Whatsable account**: 
A Whatsable plan that includes integrations (Pro or Agency, and during the 14-day trial) and a connected WhatsApp number. The Bulk Message plan does not include integrations.

- **n8n account**: 
Access to [n8n](https://app.n8n.cloud/login), in n8n Cloud or on your own server.

> [!TIP]
>
> New to Whatsable? [Sign up here](https://console.whatsable.app/sign-up).

## Set up your Whatsable account

**Connect your WhatsApp number**

Connect your WhatsApp Business number to Whatsable with the [embedding process](/get-started/embedding). You do **not** need to delete the WhatsApp Business app. [Coexistence](/get-started/embedding#whatsapp-coexistence) is supported.

Your connected numbers are in **Settings** → [**Channels**](https://console.whatsable.app/settings/channels).

> [!NOTE]
>
> Meta requires this process to verify your business and to apply the WhatsApp Business Platform policies.

**Set up message templates**

Whatsable sends two kinds of WhatsApp messages:

<details>
<summary>Option A: Template messages</summary>

<p>A WhatsApp template is a message format that Meta approves. You need a template to start a new conversation. A template can contain variables for personalization.</p>

**Open Templates**

In the Whatsable sidebar, click [**Templates**](https://console.whatsable.app/templates).

**Start a new template**

Click **New template**.

**Fill out the form**

Complete the template form with these details:

**Name** `string` (required)

A name for internal reference. Whatsable changes it to lowercase with underscores, as Meta requires.

**Language** `string` (required)

The language of the template.

**Category** `string` (required)

Marketing, Utility or Authentication.

**Header (optional)** `text | image | document | video`

A text, image, document or video header.

**Body** `string` (required)

The message text. Use `{{1}}`, `{{2}}` for variables, numbered in sequence from 1.

**Footer (optional)** `string`

A short line under the body.

**Buttons** `button`

Optional quick reply, website, phone or copy code buttons.

**Submit for review**

Click **Submit for review**.

> [!WARNING]
>
> Meta usually reviews a template within 24 hours. A template with no promotional language has a better chance of approval.

Create the template on the WhatsApp Business account of the number that your API key uses. For the full procedure, see [Message templates](/features/message-templates).

</details>

<details>
<summary>Option B: Non-template messages</summary>

<p>Inside the 24-hour window, you can send messages with no template:</p>

- **Text**: 
Plain text messages

- **Images**: 
Photos and graphics in supported formats

- **Documents**: 
PDF, Word and other file types

- **Videos**: 
MP4 and other supported video formats

> [!NOTE]
>
> You can send a non-template message only in the 24-hour customer service window. The window opens when the customer writes to your business.

</details>

**Create your Whatsable API key**

Only owners and admins can create API keys.

1. In the Whatsable sidebar, click [**API keys**](https://console.whatsable.app/settings/api-keys).
2. Click **Create API key**.
3. In **Key name**, type a name that tells you where the key is used, for example `n8n production`.
4. In **Number**, choose the WhatsApp number that the key sends from.
5. Click **Create key**.
6. Click **Copy key**, then click **I have saved it**.

You can reveal and copy the key again later from the same page. For more about keys, see [API keys](/features/api-keys).

> [!WARNING]
>
> Treat the key like a password. Anyone with the key can send messages to your contacts. Never share it publicly or commit it to version control.

**Open the n8n page in Whatsable (optional)**

In the Whatsable sidebar, under **Integrations**, click [**n8n**](https://console.whatsable.app/integrations/n8n). This page lists the operations, the fields a trigger sends, the npm install command and video walkthroughs. Click **View on n8n.io** to open the Whatsable node on n8n.io.

## Integrate with n8n

<iframe 
  className="w-full aspect-video" 
  src="https://www.loom.com/embed/a7a1ec43721a4971ae912bcfc040d5cc" 
  title="Introducing the New Features of N8N Nodes Version 2.3.3"
  frameBorder="0" 
  allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" 
  allowFullScreen
></iframe>

*Introducing the New Features of N8N Nodes Version 2.3.3*

> [!TIP]
>
> On self-hosted n8n, you can also install the node from npm: `npm install n8n-nodes-whatsable`.

**Set up your n8n workflow**

1. Log in to your n8n account.
2. Click **Create Workflow**.
3. Add a trigger node:
   - Popular triggers are Google Forms, Jotform, ClickUp or a Schedule trigger.
   - Connect and configure the trigger for your use case.
  
<details>
<summary>Whatsable trigger node (incoming and outgoing)</summary>

> [!NOTE]
>
> Use the Whatsable trigger to run n8n when WhatsApp messages are **received or sent**, including replies typed in the WhatsApp Business app on your phone. Select the **incoming and outgoing** credential type so that those events reach n8n, not only the Whatsable inbox.

**Add the Whatsable trigger node**

Add the Whatsable trigger node to your workflow:

1. Click the **+** button on your workflow canvas to add a new node.
2. Search for "WhatsAble" in the node library.
3. Select the node with the official Whatsable logo.
4. In the trigger options, choose **On new Incoming message event**. That is the label of the node. With the credential **Whatsable incoming and outgoing messages**, the same trigger also runs for outgoing messages, including replies typed in the WhatsApp Business app. Filter on `incoming_message`.

<img src="/images/trigger-node.webp" alt="Whatsable node selection showing trigger options" />

*Adding the Whatsable trigger labelled On new Incoming message event*

> [!TIP]
>
> The trigger listens for WhatsApp activity and starts your workflow. Outgoing events include messages typed in the WhatsApp Business app (`send_by`: `WhatsApp App`).

**Configure the credential**

Set up your Whatsable API credential:

**Copy the webhook URL:**
1. In the Whatsable Trigger node parameters, find the **Webhook URLs** section at the top.
2. Select **Production URL** and click the URL to copy it.
3. Keep this URL. You need it for the credential.

<img src="/images/trigger-node-purl.webp" alt="Production URL selection and copy interface" />

*Copying the Production URL for webhook configuration*

**Create the credential:**
1. In the **Credential to connect with** dropdown, click **+ Create new credential**.
2. Select **Whatsable API**. For phone-app and inbox replies, choose the credential for **Whatsable incoming and outgoing messages**.
3. Paste your Whatsable API key in the **API Key** field. The credential is n8n's connection for this node. Zapier and Make still label that same connection **Notifyer**, the previous product name. The value is your Whatsable API key in all three.
4. Paste the Production URL in the **Production URL** field.
5. Give the credential a name, for example "Whatsable Production".
6. Click **Save**.

When you click **Save**, n8n checks your API key and registers the Production URL with Whatsable. The trigger then appears in **Settings** → [**Webhooks**](https://console.whatsable.app/settings/outgoing-webhooks) in Whatsable.

<img src="/images/notifyer-trigger-node.webp" alt="Whatsable credential configuration interface" />

*Credential configuration for Whatsable Trigger node*

> [!NOTE]
>
> n8n encrypts and stores your credentials. Never share your API key publicly or commit it to version control.

**Test and activate the workflow**

Finish the setup, then test and activate your trigger:

**Response configuration:**
1. In the **Respond** dropdown, select when n8n responds:
   - **Immediately**: n8n responds as soon as the trigger runs.
   - **When Last Node Finishes**: n8n waits until the whole workflow finishes.

**Testing:**
1. Click **Execute step** on the Whatsable node to run a test.
2. Make sure that n8n shows a success message.
3. If the test fails, read the error message and correct your configuration.

> [!TIP]
>
> When the workflow is active, it processes incoming **and** outgoing messages with your logic. Use `incoming_message`, `send_by` and `was_message_by_human` in later nodes to branch on the direction and the sender.

> [!WARNING]
>
> Test your workflow fully before you activate it in production.

</details>

**Add the Whatsable node**

1. Click the **+** button after your trigger node.
2. Search for "WhatsAble" in the nodes panel.
3. Select the node with the official Whatsable logo.
4. Choose **Send template via Whatsable** or **Send non-template via Whatsable**.

<img src="/images/notifyer-node-action.webp" alt="Whatsable node selection" />

*Whatsable Node: Send Message via Send template via Whatsable / Send non-template via Whatsable*

**Configure the Whatsable credential**

1. In the Whatsable node **Parameters**, find the **Credential to connect with** dropdown.
2. Select **+ Create new credential**.
3. Paste your Whatsable API key.
4. Give the credential a name, for example "Whatsable Production".
5. Click **Save**.

<video src="/images/notifyer_n8n1.mp4" autoPlay loop muted playsInline aria-label="Configuring the Whatsable credential" />

*Configuring the Whatsable credential*

**Configure your message**

1. In the **Resource** dropdown, select **Send Message**.
2. In the **Operation** dropdown, choose **Send template via Whatsable** for template messages. Choose **Send non-template via Whatsable** for other messages, which you can send only in the 24‑hour window.
3. Complete the required fields:

**Operation: Send template via Whatsable**

**Configure the message**

Complete the required fields:

**Recipient** `string` (required)

The recipient's number with the country code (for example +14155552671), or data from an earlier node

**Template Name or ID** `dropdown` (required)

Select one of your approved templates. The list shows the approved templates of the WhatsApp Business account that holds your key's number

**Template message details** `string` (required)

Fill in the fields that your template needs:
- For text: type your message content.
- For media: give a public URL of your file.
- A caption, if you want one (for media files).

> [!WARNING]
>
> For all media types, make sure that your file URLs are public and that the file format is supported.

**Note** `string`

(Optional) A note that Whatsable saves on the contact, for internal tracking and for the AI agent

**Label Names or IDs** `dropdown`

(Optional) The labels from your Whatsable [labels](https://console.whatsable.app/settings/labels) to add to the conversation

**Schedule Message** `selection`

(Optional) To send later, use the **Schedule WhatsApp Message** operation. See [Schedule a WhatsApp message in n8n](/integration/n8n/schedule-message).

**Operation: Send non-template via Whatsable**

**Recipient phone number**

Type the **Phone Number** with the country code.

**Select the message type**

Choose one of these message types:

- **Text Message**: 
For plain text messages

- **Document Message**: 
For documents (PDF, Word)

- **Image Message**: 
For images (JPEG, PNG)

- **Video Message**: 
For videos (MP4, 3GP)

**Complete the message details**

Fill in the fields for your message type:
- For text: type your message content.
- For media: give a public URL of your file.
- A caption, if you want one (for media files).

> [!WARNING]
>
> For all media types, make sure that your file URLs are public and that the file format is supported.

**Label Names or IDs**

(Optional) Select the labels from your Whatsable [labels](https://console.whatsable.app/settings/labels) to add to the conversation.

**Schedule Message**

(Optional) To send later, use the **Schedule WhatsApp Message** operation. See [Schedule a WhatsApp message in n8n](/integration/n8n/schedule-message).

**Test and activate your workflow**

1. Click **Test Step** on the Whatsable node.
2. If the test passes, n8n shows a success message.
3. Go back to your workflow.
4. Click **Save** to save the workflow.
5. Set the **Active** switch in the top-right corner to on.

> [!TIP]
>
> Your workflow now runs. Each time your trigger conditions occur, n8n sends WhatsApp messages through Whatsable.

## Incoming and outgoing WhatsApp messages

Whatsable can deliver **both incoming and outgoing** messages to your webhook, including messages typed by hand in the **WhatsApp Business app** on your phone. Outgoing messages reach only an endpoint you add under **Settings → Webhooks**, with **Send to** set to **Make, Zapier or n8n** and **Outgoing messages** ticked. The Whatsable triggers in the n8n, Make and Zapier apps receive incoming messages only.

This is possible because Whatsable supports [Meta WhatsApp Coexistence](/get-started/embedding#whatsapp-coexistence). You keep using WhatsApp Business on your phone; those hand-typed replies still reach an external webhook and can start an automation. They are not limited to the Whatsable inbox.

<iframe
  className="w-full aspect-video"
  src="https://www.youtube.com/embed/UfW-KwS4gBI"
  title="Trigger n8n workflows with WhatsApp messages"
  frameBorder="0"
  allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; fullscreen"
  allowFullScreen
></iframe>

*Trigger n8n (or any webhook) from WhatsApp messages: including replies typed in the WhatsApp Business app*

The payload is the same whether you use [n8n](/integration/n8n), [Make](/integration/make), [Zapier](/integration/zapier), or a [custom webhook](/api-reference/legacy/incoming-message). For outgoing messages, paste your workflow's webhook URL into such an endpoint rather than using the app trigger. [Watch the walkthrough on YouTube](https://www.youtube.com/watch?v=UfW-KwS4gBI).

### Direction, sending system, and team member

Use these three fields to tell *what happened* and *who sent it*:

**incoming_message** `boolean`

`true` when a contact sent a message **to** your business. `false` when your business sent a message **to** the contact (outgoing). Filter on this field to run logic only for one direction.

**send_by** `string`

Which system or person sent an **outgoing** message:

| `send_by` value | Meaning |
|---|---|
| `WhatsApp App` | Typed by hand in the WhatsApp Business app on a phone |
| `AI` | Sent by your AI agent, including its follow-ups, or by an automatic reply: the away message or the keep-the-window-open follow-up |
| `Notifyer` | Anything else: a teammate in the inbox, a broadcast, the API or an automation |

`Notifyer` is the old name of Whatsable. The value stays the same so existing automations keep working. Incoming messages carry no `send_by`.

**was_message_by_human** `boolean`

`false` when your AI agent or an automatic reply (the away message or the keep-the-window-open follow-up) sent the message, `true` for every other outgoing message. Combine it with `send_by` to tell a reply typed on the phone from one sent through Whatsable.

### Example payload: message typed on the phone

This is the JSON Whatsable POSTs when someone types a reply in the WhatsApp Business app. `incoming_message` is `false`, `send_by` is `"WhatsApp App"`, and `was_message_by_human` is `true`.

```json
{
  "last_messages": "[{\"type\":\"bot\",\"content\":\"Hello n8n\",\"timestamp\":\"2026-08-15T12:24:47.000Z\",\"content_type\":\"text\"},{\"type\":\"user\",\"content\":\"hi\",\"timestamp\":\"2026-08-12T12:27:42.746Z\",\"content_type\":\"text\"}]",
  "conversation_paragraph": "Bot (12:24:47 PM): Hello n8n ; User (12:27:42 PM): hi",
  "phone_number": 14155552671,
  "recipient_name": "Alex Martinez",
  "user_id": "158c59e1-ea85-4d0b-b70c-65328ba67a8e",
  "last_message_of_user": "hi",
  "last_message_of_bot": "Hello n8n",
  "message_type": "text",
  "user_last_message_time": 1786722580,
  "bot_last_message_time": 1786797014,
  "attachment_url": "",
  "note": "email: alex\nName: Alex",
  "note_automation": "email: alex\nName: Alex",
  "labels": "n8n, webhook-test",
  "incoming_message": false,
  "send_by": "WhatsApp App",
  "was_message_by_human": true
}
```

> [!NOTE]
>
> `last_message_of_bot` is the last message **your business** sent, whether a human typed it in the WhatsApp Business app or the Whatsable inbox, or your AI agent or an automation sent it. `last_messages` is a JSON **string** of the last 15 messages (parse it before iterating). `phone_number` may arrive as a number rather than a string.

When a teammate sends the same reply from the Whatsable inbox instead of the phone app, the payload is identical except:

```json
{
  "incoming_message": false,
  "send_by": "Notifyer",
  "was_message_by_human": true
}
```

### Click-to-WhatsApp ad attribution

When a contact messages you after tapping a **Click-to-WhatsApp** ad (Facebook, Instagram, or WhatsApp Status), Meta includes a `referral` object on that inbound event. Whatsable forwards it in [webhook](/api-reference/legacy/incoming-message#click-to-whatsapp-ads) and trigger data (n8n, Make, Zapier).

Use it to see **which ad, creative, and platform** produced the lead, then label the chat, route it, or send `ctwa_clid` back to Meta for campaign optimization.

> [!NOTE]
>
> `referral` is typically present on the **first inbound message** after the ad click. Later messages in the same conversation usually omit it. Persist `ctwa_clid` and `source_id` as soon as you see them.

| Field | What it tells you |
|---|---|
| `source_type` | `"ad"` for an ad, `"post"` for an organic post |
| `source_id` | Ad or post ID: use this to group leads by creative |
| `source_url` | Where they tapped (Instagram permalink, Facebook/ad URL) |
| `headline` / `body` | Ad copy the lead saw |
| `media_type` | `"image"` or `"video"` |
| `image_url` / `video_url` | Creative asset URL |
| `ctwa_clid` | Click ID for Meta Conversions API attribution |

```json
{
  "incoming_message": true,
  "last_message_of_user": "Quiero información",
  "referral": {
    "source_type": "ad",
    "source_id": "52540693396957",
    "source_url": "https://www.instagram.com/p/DZiVBz7gAF9/",
    "headline": "Expo Nissan",
    "body": "Aprovechá la EXPONISSAN y llevate tu nuevo Nissan Kicks Play Sense MT.",
    "media_type": "image",
    "image_url": "https://scontent.xx.fbcdn.net/v/t45.1600-4/example.jpg",
    "ctwa_clid": "AfhN-JKvx8HeFTmfB-Tu11zktQRJ-MNdMV1mwvDNxHnpYrGl-jVf3OEFhLva_MP41zYRe5ErUteWFn3v4gkkjzfIEVr9J_u8GAo3-o6DqShykM4Zsl14FcU5MyThsCoQ"
  }
}
```

Whatsable never sends Meta's Cloud API envelope. On an endpoint that uses the **Native payload** format, the same object is at `message.referral`. Full field reference and a complete example: [Message webhooks: Click-to-WhatsApp ads](/api-reference/legacy/incoming-message#click-to-whatsapp-ads).

## Example use cases

- **Order confirmations**: 
Send an order confirmation each time a customer places an order

- **Appointment reminders**: 
Schedule a reminder before each appointment

- **Click-to-WhatsApp ads**: 
Read `referral.source_id`, `source_url` and `headline` to label leads by ad and by platform

- **Customer support**: 
Send each support request to the correct team member

- **Delivery updates**: 
Tell customers the status of their delivery

- **Payment reminders**: 
Send payment reminders for overdue accounts

## Best practices

<details>
<summary>Test thoroughly</summary>

Test your workflows with your own phone numbers before you activate them for production.

</details>

<details>
<summary>Use templates</summary>

When possible, use approved templates. They give better delivery and keep you inside the WhatsApp rules.

</details>

<details>
<summary>Add personalization</summary>

Put customer names and specific details in your messages. This gets more replies.

</details>

<details>
<summary>Follow WhatsApp policies</summary>

Make sure that all message content follows the WhatsApp Business policies, so that Meta does not restrict your account.

</details>

<details>
<summary>Monitor performance</summary>

Check your message delivery regularly on the Whatsable [**Analytics**](https://console.whatsable.app/analytics) page.

</details>

## Troubleshooting

<details>
<summary>Messages do not send</summary>

**Check the API key**

Make sure that the n8n credential has the correct Whatsable API key, and that the key is active on the [**API keys**](https://console.whatsable.app/settings/api-keys) page.

**Check the number of the key**

If Whatsable answers that the number of the API key is not connected, use **Change number** on the key to move it to a connected number.

**Check the phone numbers**

Make sure that phone numbers are in international format with the country code (for example +14155552671).

**Check your plan**

Make sure that your subscription is active and that your plan includes integrations (Pro or Agency, and during the 14-day trial). See **Settings** → [**Billing**](https://console.whatsable.app/settings/billing).

**Outgoing events from the WhatsApp Business app**

Use the trigger **On new Incoming message event** with the credential **Whatsable incoming and outgoing messages**. With that credential, the same trigger also runs for outgoing messages. Type a test reply on your phone, and make sure that `incoming_message` is `false` and `send_by` is `WhatsApp App`. You do not need to delete the WhatsApp Business app.

</details>

<details>
<summary>Template errors</summary>

**Check the variables**

Make sure that you fill in all the variables of your template.

**Check the formats**

Make sure that each variable has the expected format (text, number, date).

**Check the template**

Make sure that the template has the **Approved** status on the [**Templates**](https://console.whatsable.app/templates) page. The list in the node shows only the templates of the WhatsApp Business account that holds your key's number.

</details>

<details>
<summary>Media does not show</summary>

**Check URL access**

Make sure that your media URLs are public. Open them in a private browser window to test them.

**Check the file format**

Make sure that WhatsApp supports the file format.

**Check the file size**

Make sure that the files are within the WhatsApp limits:
- Images: up to 5 MB
- Videos: up to 16 MB
- Documents: up to 100 MB

</details>

## Need help?

Our support team can help you:

- [Email support](mailto:team@whatsable.app): 
Contact team@whatsable.app

- [Schedule a demo](https://tidycal.com/axelmeta/whatsapp-notifications-by-whatsable): 
Book a personal walkthrough

- **Live chat**: 
Click the chat button in the bottom right corner of the Whatsable app. The inbox hides it, so open another page first

> [!NOTE]
>
> Whatsable also works with [Make](/integration/make) and [Zapier](/integration/zapier).

A [webhook](/features/webhooks) or a [Zapier](/integration/zapier), [Make](/integration/make) or [n8n](/integration/n8n) scenario can label the contact and send a template. The same conversation can be logged in [Pipedrive](/integration/pipedrive), [monday.com](/integration/monday) or [Salesforce](/integration/salesforce). Read [Automation and CRM](/features/how-it-fits-together#automation-and-crm).