Skip to content

Commit

Permalink
whatsapp+typebot
Browse files Browse the repository at this point in the history
  • Loading branch information
devlikepro committed Sep 13, 2024
1 parent f3969dc commit 8f700f8
Show file tree
Hide file tree
Showing 7 changed files with 205 additions and 44 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ node.
- [How to use the templates](#how-to-use-the-templates)
- [Workflows Templates](#workflows-templates)
* [WhatsApp Bot](#whatsapp-bot)
* [WhatsApp Typebot Integration](#whatsapp-typebot-integration)
* [Send WhatsApp QR code for authorization to Email](#send-whatsapp-qr-code-for-authorization-to-email)
* [Send Bulk Messages API](#send-bulk-messages-api)
* [Forward WhatsApp text messages to email](#forward-whatsapp-text-messages-to-email)
Expand Down Expand Up @@ -49,6 +50,21 @@ node.
Simple WhatsApp Bot template that replies with **"pong"** if received **"ping"** and sends Image if received
**"image"**.

## [WhatsApp Typebot Integration](./whatsapp-typebot)
<p align="center">
<img
src="./whatsapp-typebot/workflow.png"
height=300
/>
<img
src="./whatsapp-typebot/typebot.png"
height=300
/>
</p>

Integrate [Typebot](https://typebot.io/) with [Self-Hosted WhatsApp API (WAHA)](https://waha.devlike.pro) to send
messages to WhatsApp via [n8n](https://n8n.io/).

## [Send WhatsApp QR code for authorization to Email](./send-qr-code-to-email)

<p align="center">
Expand Down
44 changes: 44 additions & 0 deletions whatsapp-typebot/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
[<- Back](/)

# WhatsApp Typebot Integration

## Typebot Workflow
[**typebot.json**](./typebot.json)

![](typebot.png)

## N8n Workflow
[**template.json**](./template.json)

![](workflow.png)

## How it works
Integrate
[Typebot](https://typebot.io/)
with
[Self-Hosted WhatsApp API (WAHA)](https://waha.devlike.pro)
to send messages to WhatsApp via
[n8n](https://n8n.io/).

## Set up steps
1. Import [typebot.json](./typebot.json) to **Typebot**
2. Copy [template.json](./template.json) and paste it in **n8n** (Ctrl+V), or import it from URL
3. Configure **WAHA API** credentials and select it for all WAHA nodes
4. Configure **Typebot** node with your `typebot.url` and `typebot.bot.id`
5. Configure **Postgres** nodes with your Postgres credentials
6. Run **Migration** block to create the necessary tables
7. Get **Webhook URL** (production one) from **WAHA Trigger** node
8. Configure your **WAHA session** to send webhooks with `message` type to the **Webhook URL**
9. **Active** your workflow in n8n

## Notes
### Buttons
For [Buttons](https://docs.typebot.io/editor/blocks/inputs/buttons) block in Typebot n8n allows you to answer
with a simple number.

For example, if you have buttons:
1. Invoice
2. Payment

and want to select **Invoice** you can send both **1** and **Invoice** back to WhatsApp bot

Loading

0 comments on commit 8f700f8

Please sign in to comment.