Skip to content

Commit

Permalink
chatwoot
Browse files Browse the repository at this point in the history
  • Loading branch information
devlikepro committed Sep 27, 2024
1 parent 45c3d03 commit 3b83483
Show file tree
Hide file tree
Showing 3 changed files with 972 additions and 13 deletions.
44 changes: 31 additions & 13 deletions chatwoot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,35 +17,53 @@ to receive and send messages to WhatsApp via n8n.
# How it works
We'll guide you through the setup steps for each template.

## Why not built-in ChatWoot WhatsApp integration?
Every company has its own requirements and needs.
This template allows you to customize the integration to your needs,
to your specific use case, and to your specific customer support workflow.

# Set up steps

## 1. Database Migration
[**template.json**](./WhatsApp___ChatWoot__Database_Migrations.json)

1. Import [template.json](./WhatsApp___ChatWoot__Database_Migrations.json) to **n8n**
2. Configure **Posgres** nodes with your Postgres credentials
3. Run **Migration** block to create the necessary tables

## 2. WAHA => ChatWoot
## 2. ChatWoot => WAHA

[**template.json**](./WhatsApp___ChatWoot__ChatWoot____WAHA_Messages.json)

![](chatwoot-to-waha.png)

The workflow **receives** messages from ChatWoot and sends them to WhatsApp via WAHA.
1. Import [template.json](./WhatsApp___ChatWoot__ChatWoot____WAHA_Messages.json) to **n8n**
2. Configure **WAHA** settings with your session
3. Set all **WAHA** nodes with your **WAHA** credentials
4. **Active** your workflow in n8n
5. Copy **Production URL** from **Webhook** node
6. Go to **ChatWoot** and create new **API** **Inbox** and set **Webhook URL** from **n8n**

## 3. WAHA => ChatWoot

[**template.json**](./WhatsApp___ChatWoot__WAHA____ChatWoot_Messages.json)

![](waha-to-chatwoot.png)

The workflow **receives** messages from WhatsApp via WAHA and sends them to ChatWoot.
1. Go to **ChatWoot** and create new **Inbox**
2. Get from the **Inbox** settings and **ChatWoot** settings:
1. Get from the **Inbox** settings and **ChatWoot** settings:
1. **Account ID**
2. **Inbox ID**
3. **Inbox Identifier**
4. **ChatWoot URL**
3. Import [template.json](./WhatsApp___ChatWoot__WAHA____ChatWoot_Messages.json) to **n8n**
4. Set settings from **ChatWoot** in the workflow
5. Set all **Postgres** nodes with your Postgres credentials
6. Set all **ChatWoot** nodes with your **ChatWoot** credentials
7. **Active** your workflow in n8n
8. Copy **URL** from **Webhook** node
9. Paste it in your **WAHA** session webhook settings and configure to listen `message` events
10. Send a test message from WhatsApp to see it in ChatWoot


2. Import [template.json](./WhatsApp___ChatWoot__WAHA____ChatWoot_Messages.json) to **n8n**
3. Set settings from **ChatWoot** in the workflow
4. Set all **Postgres** nodes with your Postgres credentials
5. Set all **ChatWoot** nodes with your **ChatWoot** credentials
6. **Active** your workflow in n8n
7. Copy **Production URL** from **Webhook** node
8. Paste it in your **WAHA** session webhook settings and configure to listen `message` events
9. Send a test message from WhatsApp to see it in ChatWoot


Loading

0 comments on commit 3b83483

Please sign in to comment.