> ## 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.

# Connect Flowella to n8n with the Flowella node

> Install the verified Flowella node in n8n, add your API key and signing secret, then start workflows from WhatsApp events and send templates.

Flowella has its own node for [n8n](https://n8n.io/integrations/flowella/), built and maintained by Flowella and verified by n8n. It adds two nodes to your workflows. **Flowella Trigger** starts a workflow when a WhatsApp event happens in Flowella, and **Flowella** sends messages and templates and works with your contacts, conversations, opt-outs and analytics. Your API key lives in an n8n credential, not in the workflow.

## What you get

| Part | What it does |
| - | - |
| **Flowella Trigger** node | Starts a workflow from a Flowella webhook event, such as an inbound message, a delivery status or an opt-out. It checks the signature on every request for you. See [Flowella Trigger](https://knowledge.flowella.io/integrations/n8n/flowella-trigger.md). |
| **Flowella** node | Sends free-form messages and approved templates, lists templates, conversations and contacts, creates or updates contacts, sets or clears opt-outs, and reads analytics. See [Flowella node](https://knowledge.flowella.io/integrations/n8n/flowella-node.md). |
| **Flowella API** credential | Holds your API key, the API address and the webhook signing secret. Both nodes use it. |

The nodes use the [Flowella REST API](https://knowledge.flowella.io/api-reference/introduction.md) and Flowella's [outbound webhooks](https://knowledge.flowella.io/api-reference/webhooks.md), so the same rules apply as for any integration: templates need Meta's approval, free-form messages need an open 24-hour window, opt-outs are respected and sends count toward your plan's usage.

> [!NOTE]
>
> The node covers the everyday jobs. For anything else in the Flowella API, use n8n's **HTTP Request** node with the same API key.

## Before you start

* A Flowella organisation with a connected WhatsApp number. See [Setup sequence](https://knowledge.flowella.io/whatsapp/accounts/setup-sequence.md).
* The **Owner** or **Admin** role in Flowella, to create an API key and a webhook. See [Team](https://knowledge.flowella.io/settings/team.md).
* An approved WhatsApp template, if you want to send templates. See [Templates](https://knowledge.flowella.io/app/templates.md).
* An n8n workspace, on n8n Cloud or self-hosted. An instance owner installs verified nodes once, and then everyone on the instance can use them.

## Set up the node

**1. Install the Flowella node**

In the n8n editor, select **+** to open the nodes panel and search for `Flowella`. Select the verified node and install it. See n8n's guide to [installing verified nodes](https://docs.n8n.io/integrations/community-nodes/installation/verified-install/).

On self-hosted n8n, you can also go to **Settings**, then **Community Nodes**, and install the package by name:

```text theme={null}
n8n-nodes-flowella
```

**2. Create a Flowella API key**

In Flowella, go to **Settings**, then **API keys**, and create a key with a name such as `n8n production`. Copy it straight away: Flowella shows it only once. The key starts with `flo_`. See [API keys](https://knowledge.flowella.io/settings/api-keys.md).

**3. Add the credential in n8n**

In n8n, create a **Flowella API** credential.

| Field | What to enter |
| - | - |
| **API Key** | Your Flowella API key. |
| **Base URL** | Leave the default, `https://api.flowella.io`. |
| **Webhook Signing Secret** | The signing secret of your Flowella webhook. **Flowella Trigger** needs it and the **Flowella** node ignores it. You add it in a later step. |

When you save the credential, n8n tests the key by calling `GET /v1/ping`. A key that is wrong or revoked fails with a `401` error.

**4. Add Flowella Trigger**

Add **Flowella Trigger** to a workflow and select your credential. Copy the production webhook URL that the node shows.

**5. Add the webhook in Flowella**

The trigger doesn't create the webhook for you. In Flowella, go to **Settings**, then **Webhooks**, and select **Add webhook**. Paste the URL into **Endpoint URL**, type a secret of your own choosing in **Signing secret**, tick the events you want under **Events**, then select **Create webhook**. See [Webhooks](https://knowledge.flowella.io/settings/webhooks.md).

**6. Save the signing secret in n8n**

Open the **Flowella API** credential again and paste the same secret into **Webhook Signing Secret**. Without it, the trigger rejects every event.

**7. Turn the workflow on and test it**

Make the workflow active in n8n, so the production URL accepts requests. In Flowella, open the webhook and select **Send test event**. The trigger outputs one item with the event type `webhook.test`.

**8. Send from the workflow**

Add the **Flowella** node wherever a WhatsApp message should go out. Choose **Template** and **Send** for an approved template, or **Message** and **Send** for free-form text inside the 24-hour window. See [Flowella node](https://knowledge.flowella.io/integrations/n8n/flowella-node.md).

## Example: answer a new message with a template

The node's [GitHub repository](https://github.com/Flowella/n8n-nodes-flowella) includes a starter workflow, `examples/inbound-then-template.workflow.json`. It has a **Flowella Trigger** that listens for `message.received` and a **Flowella** node set to **Template** and **Send**. Import it into n8n from the file, then select your credential on both nodes.

A `message.received` event carries IDs, not the contact's phone number or the message text. To send to the person who wrote in, look the contact up between the two nodes:

**1. Listen for inbound messages**

On **Flowella Trigger**, select `message.received` under **Events**.

**2. Look up the contact**

Add an **HTTP Request** node with the method `GET` and this URL:

```text theme={null}
https://api.flowella.io/v1/contacts/{{ $json.contactId }}
```

Send your API key in an `Authorization` header, as `Bearer` followed by the key. The response includes the contact's `phone`, `name` and `isOptedOut`.

**3. Send the template**

On the **Flowella** node, choose **Template** and **Send**, pick the template, and map the recipient's **Phone** to the `phone` field from the previous node. Add one **Variable** for each body variable in the template, in order.

Flowella skips anyone who has opted out on the number you send from. See [Opt-outs](https://knowledge.flowella.io/app/opt-outs.md).

## Keep the workflow running

Flowella waits up to 10 seconds for a `2xx` response and tries each event 3 times. After 10 events in a row fail, Flowella turns the webhook off, and events that happen while it is off are not sent later.

* Keep the n8n workflow active. A workflow that is switched off returns errors, which count as failures.
* If the webhook shows **Inactive** in Flowella, fix the workflow and then turn the webhook back on. See [Turn a webhook back on](https://knowledge.flowella.io/settings/webhooks.md#turn-a-webhook-back-on).
* When you change the signing secret in Flowella, update the n8n credential straight away. Events signed with a secret the credential doesn't hold are rejected.

## Troubleshooting

| Symptom | Cause | Fix |
| - | - | - |
| The credential test fails with `401` | The API key was revoked or replaced, or it was pasted incorrectly. | Create a new key in **Settings**, then **API keys**, and update the credential. |
| The delivery log in Flowella shows `401` for every event | The **Webhook Signing Secret** in the credential is empty or doesn't match the webhook's **Signing secret**. | Enter the same secret in both places. |
| **Send test event** works but real events never start the workflow | The event isn't ticked on the webhook in Flowella, or it isn't selected under **Events** on the trigger. | Tick the event in both places, or leave **Events** empty on the trigger to accept everything Flowella sends. |
| Events stopped arriving | Flowella turned the webhook off after repeated failures. | Make the workflow active, then turn the webhook back on in **Settings**, then **Webhooks**. |
| The **Flowella** node fails with `403` | The contact has opted out on that number, or WhatsApp isn't connected. | Check [Opt-outs](https://knowledge.flowella.io/app/opt-outs.md) and your [WhatsApp connection](https://knowledge.flowella.io/troubleshooting/whatsapp-connection.md). |
| The **Flowella** node fails with `429` | You went over your API key's rate limit. | Turn on **Retry On Fail** in the node's settings. See [Rate limits](https://knowledge.flowella.io/api-reference/introduction.md#rate-limits). |
| A template send succeeds but nothing arrives | Flowella queued the send and Meta couldn't deliver it. | Open the template's **Statistics** tab in Flowella and read the reason. See [Messages not delivered](https://knowledge.flowella.io/troubleshooting/messages-not-delivered.md). |

For help with the node itself, open an issue in the [GitHub repository](https://github.com/Flowella/n8n-nodes-flowella/issues).

## Related

> [card] [Flowella Trigger](https://knowledge.flowella.io/integrations/n8n/flowella-trigger.md)
>
> Events, output fields and how the trigger filters and verifies them.

> [card] [Flowella node](https://knowledge.flowella.io/integrations/n8n/flowella-node.md)
>
> Every resource, operation and field in the action node.

> [card] [Webhooks reference](https://knowledge.flowella.io/api-reference/webhooks.md)
>
> Event types, request bodies, signatures and retries.

> [card] [API keys](https://knowledge.flowella.io/settings/api-keys.md)
>
> Create, replace and revoke the key the credential uses.


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