> ## Documentation Index
> Fetch the complete documentation index at: https://knowledge.flowella.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Send WhatsApp messages and templates from n8n

> Flowella node for n8n: send messages and templates, manage contacts and opt-outs, list conversations and read analytics, with every field explained.

The **Flowella** node is the action node in the Flowella package for n8n. You choose a **Resource** and an **Operation**, fill in the fields, and the node makes one call to the [Flowella REST API](https://knowledge.flowella.io/api-reference/introduction.md) with the API key in your credential. To install the node and add the credential, see [Set up](https://knowledge.flowella.io/integrations/n8n.md).

## Operations

| Resource | Operation | What it does | API call |
| - | - | - | - |
| **Template** | **Send** | Queues an approved template for one or more recipients. | `POST /v1/templates/send` |
| **Template** | **List** | Lists your templates with their status. | `GET /v1/templates` |
| **Message** | **Send** | Sends a free-form text message inside the 24-hour window. | `POST /v1/messages` |
| **Contact** | **Create or Update** | Creates a contact, or updates the contact that already has that phone number. | `POST /v1/contacts` |
| **Contact** | **List** | Lists your contacts. | `GET /v1/contacts` |
| **Contact** | **Set or Clear Opt-Out** | Records an opt-out for a phone number on one of your WhatsApp numbers, or removes it. | `POST /v1/opt-outs` |
| **Conversation** | **List** | Lists your conversations. | `GET /v1/conversations` |
| **Analytics** | **Get** | Returns outbound message figures for a date range. | `GET /v1/analytics` |

For anything else, such as reading one contact or one message, use n8n's **HTTP Request** node with the same API key. The [OpenAPI document](https://api.flowella.io/v1/openapi.json) lists every endpoint.

## Send a template

Use **Template** and **Send** to message people outside the 24-hour window, or to send a WhatsApp Flow. The template must be approved by Meta.

| Field | What to enter |
| - | - |
| **Template** | Pick the template from the list, shown as its name and language. The node loads the list from your Flowella account. |
| **Template WABA ID** | The ID of the WhatsApp Business Account the template belongs to. Required. |
| **WhatsApp Channel ID** | The WhatsApp number to send from. If you leave it empty, Flowella sends from your default channel. |
| **Recipients** | Add one **Recipient** for each person. Enter the **Phone** in international format, such as `+447700900123`, and add one **Variable** for each body variable in the template, in order. |
| **Header Media** | Optional. For a template with an image, video or document header, a JSON object with the file's public `url` and a `fileName`. |
| **Carousel Cards** | Optional. For a carousel template, a JSON array of cards. |
| **Scheduled At** | Optional. An ISO 8601 time to send later. Leave it empty to send now. |
| **Throttle Per Hour** | Optional. Leave it at `0`. The API accepts a value but doesn't pace sends at the moment. |

> [!TIP]
>
> To find the IDs, run **Template** and **List** once. Each template in the output has its `id`, its `wabaId` and the `whatsappChannelId` it belongs to.

The node returns as soon as Flowella accepts the request, with an `id` and `"status": "accepted"`. That means the send is queued, not delivered. Flowella sends in the background and retries temporary WhatsApp errors. Follow delivery on the template's **Statistics** tab in Flowella, or start another workflow from the `message.delivered` and `message.failed` events with [Flowella Trigger](https://knowledge.flowella.io/integrations/n8n/flowella-trigger.md).

### Avoid sending twice

Each time the node runs, it queues a new send. Two things protect your contacts:

* Flowella skips a second send of the same template to the same number within 15 seconds.
* Flowella skips anyone who has opted out on the number you send from. See [Opt-outs](https://knowledge.flowella.io/app/opt-outs.md).

If the same event can reach your workflow more than once, deduplicate on the trigger's `eventId` before the send. See [Retries, repeats and order](https://knowledge.flowella.io/integrations/n8n/flowella-trigger.md#retries-repeats-and-order).

## Send a message

Use **Message** and **Send** for free-form text. WhatsApp only accepts free-form text within 24 hours of the contact's last message to you.

| Field | What to enter |
| - | - |
| **To** | The recipient's phone number in international format, such as `+447700900123`. |
| **Text** | The message, up to 4,096 characters. |
| **WhatsApp Channel ID** | Optional. Leave it empty to send from your default number. |

Outside the 24-hour window, the node fails with Flowella's `SESSION_WINDOW_CLOSED` error and nothing is sent. Send an approved template instead. See [Customer service window](https://knowledge.flowella.io/whatsapp/messaging/customer-service-window.md).

## Contacts and opt-outs

**Create or Update** takes a **Phone** and, optionally, a **Name**, **Email**, **WhatsApp ID** and **External ID**. Use **External ID** to store the record's ID from your own system, so you can find the contact again with **List**.

**Set or Clear Opt-Out** takes these fields:

| Field | What to enter |
| - | - |
| **Action** | **Set** to record an opt-out, or **Clear** to remove one. |
| **WhatsApp Channel ID** | The WhatsApp number the opt-out applies to. Required. Opt-outs are kept separately for each number. |
| **Phone** | The contact's phone number. |
| **Reason** | Optional, for **Set** only. A note on why, such as `Unsubscribed in CRM`. |

> [!WARNING]
>
> Only clear an opt-out when the person has asked to hear from you again. Flowella blocks sends to opted-out contacts to keep you within WhatsApp's rules. See [Opt-in and opt-out](https://knowledge.flowella.io/whatsapp/messaging/opt-in-and-opt-out.md).

## List operations

**List** works the same way for templates, contacts and conversations:

* Turn on **Return All** to fetch every page, or set **Limit** to a number from 1 to 100. The default is 50.
* **Cursor** continues from a `nextCursor` you saved from an earlier run.

Each resource has its own filters:

| Resource | Filters |
| - | - |
| **Template** | **Status** (Draft, Pending, Approved, Rejected, Paused or Disabled), **Search** and **WhatsApp Channel ID**. |
| **Contact** | **External ID**, **Created After**, **Updated After**, **Deleted After**, **Sort** and **Order**. |
| **Conversation** | **Status** (Open, Closed, Pending, Archived or Snoozed), **Created After**, **Updated After**, **Deleted After**, **Sort** and **Order**. |

The **Status** list shows template and conversation statuses together. Choose one that applies to the resource you are listing. Date filters take ISO 8601 times, such as `2026-11-01T00:00:00Z`.

## Read analytics

**Analytics** and **Get** returns your outbound message figures. Set **Start Date** and **End Date** as ISO 8601 times, or leave both empty for the last 30 days. For the same figures in the app, see [Results](https://knowledge.flowella.io/app/analytics.md).

## Errors

When the API refuses a call, the node stops with one of these messages. It adds Flowella's own error message when there is one.

| Status | The node says | What to check |
| - | - | - |
| `400` | Flowella rejected the request. Check the field values. | A missing or badly formatted field, such as a phone number or a JSON field. |
| `401` | Flowella rejected the API key. | The key was revoked or replaced. Create a new key and update the credential. See [API keys](https://knowledge.flowella.io/settings/api-keys.md). |
| `402` | Flowella requires an active subscription before this call. | Your subscription payment is past due. See [Billing](https://knowledge.flowella.io/account/billing.md). |
| `403` | Flowella refused the call. | The contact has opted out on that number, or WhatsApp isn't connected. |
| `404` | Flowella could not find that record. | An ID that doesn't exist in your organisation. |
| `429` | Flowella rate limited this request. | Turn on **Retry On Fail** in the node's settings. See [Rate limits](https://knowledge.flowella.io/api-reference/introduction.md#rate-limits). |

For the full list of error codes, see [Errors](https://knowledge.flowella.io/api-reference/introduction.md#errors).

## Related

> [card] [Set up the node](https://knowledge.flowella.io/integrations/n8n.md)
>
> Install the node, add the credential and connect the webhook.

> [card] [Flowella Trigger](https://knowledge.flowella.io/integrations/n8n/flowella-trigger.md)
>
> Start workflows from WhatsApp events.

> [card] [Template variables](https://knowledge.flowella.io/app/template-variables.md)
>
> Variables, samples and fallback values.

> [card] [API introduction](https://knowledge.flowella.io/api-reference/introduction.md)
>
> Authentication, rate limits, idempotency and errors.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.