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

# Chatwoot

> Answer the conversations of a WhatsApp number in Chatwoot through ZapperHub

## Description

Chatwoot is a customer service platform. The agents answer the conversations in
a shared inbox.

ZapperHub connects Chatwoot to an instance. ZapperHub creates an inbox in your
Chatwoot and sends to it the messages that the number receives. The agent answer
goes out from the instance number. You do the configuration in the ZapperHub
panel.

The integration operates on the three ZapperHub connections:

| Connection | The number | How to connect |
| - | - | - |
| QR Code | Stays on WhatsApp on the phone | [Unofficial connection](https://docs.zapperhub.com/en/panel/unofficial-connection.md) |
| Coexistence | Stays on the WhatsApp Business app on the phone and uses the official API | [Coexistence mode](https://docs.zapperhub.com/en/panel/official-connection.md#coexistence-mode) |
| Official API | Is registered with Meta, with no app on the phone | [Official connection](https://docs.zapperhub.com/en/panel/official-connection.md) |

On the three connections, you do not create a Meta app for Chatwoot. The
integration operates with Chatwoot Cloud and with a Chatwoot that you install on
your server.

## Prerequisites

* A connected instance. See [Quickstart](https://docs.zapperhub.com/en/quickstart.md).
* A Chatwoot account, with an administrator user.
* From your Chatwoot:
  * The URL. Example: `https://app.chatwoot.com`.
  * The account ID.
  * The access token of the administrator user.

## Procedure

**1. Copy the access token**

In Chatwoot, open your profile settings. Copy the **access token**.

**2. Get the account ID**

In Chatwoot, the account ID is the number in the address, after `/accounts/`.
Example: in `https://app.chatwoot.com/app/accounts/12/dashboard`, the account ID is `12`.

**3. Open the instance**

Go to [app.zapperhub.com/dash](https://app.zapperhub.com/dash) and click the instance.

**4. Open the Chatwoot tab**

Click **Integrations**, then **Chatwoot**.

**5. Enter the data**

In **Chatwoot URL**, enter the URL. In **Account ID**, enter the account ID.
In **Access token**, enter the token. In **Inbox name**, enter the name that
the agents see in Chatwoot.

**6. Create the integration**

Click **Create integration**.

To create the integration through the API, use the
[Create Chatwoot integration](https://docs.zapperhub.com/api-reference/integrações/criar-integração-com-chatwoot.md)
route.

## Result

The panel shows **Active integration** and the identifiers of the integration.
In your Chatwoot, you see:

* An inbox with the name that you entered.
* A webhook with the name `ZapperHub Webhook`.

The new messages of the number go to the inbox. ZapperHub does not import the
messages from before the integration.

## Integration behavior

| Situation | Behavior |
| - | - |
| The contact sends a message | The message goes to the inbox. Chatwoot creates the contact with the WhatsApp name and phone number |
| The agent answers in Chatwoot | The answer goes out from the instance number |
| The agent writes a private note | The note stays in Chatwoot. ZapperHub does not send it to the contact |
| You answer from the phone (QR Code) or from the WhatsApp Business app (coexistence) | The answer shows in the Chatwoot conversation as a sent message |
| The contact sends an image, audio, video, or document | The file goes to Chatwoot as an attachment, with the caption |
| The agent sends an attachment | The file goes out from the number, with the text as the caption. If the message has more than one attachment, ZapperHub sends only the first |
| The contact replies to a quoted message | Chatwoot shows the reply linked to the quoted message |
| A message from the agent does not go out | Chatwoot marks the message as failed and shows the cause |
| Meta does not deliver a message from the contact | ZapperHub posts a notice in the conversation. See **Undelivered message notice** in [Integrations in the panel](https://docs.zapperhub.com/en/panel/integrations.md) |

> [!NOTE]
>
> On the official API and on coexistence, Meta accepts a free-form message only
> up to 24 hours after the last message from the contact. After this period, the
> Chatwoot answer fails and shows as failed in the conversation.

The options **Show agent name in messages** and **Undelivered message notice**,
and the deactivation and deletion of the integration, are in
[Integrations in the panel](https://docs.zapperhub.com/en/panel/integrations.md).

## See also

* [Integrations in the panel](https://docs.zapperhub.com/en/panel/integrations.md)
* [Official connection](https://docs.zapperhub.com/en/panel/official-connection.md)
* [Unofficial connection](https://docs.zapperhub.com/en/panel/unofficial-connection.md)


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