---
title: Chatfuel
slug: chatfuel
image: https://make-cxp-documentation.ams3.digitaloceanspaces.com/apps-center-icons/PREVIEW_chatfuel.png
createdAt: 2025-02-03T13:28:22.760Z
---

The Chatfuel modules allow you to create broadcast messages and send JSON responses from your Chatfuel account.

Prerequisites

- A Facebook account through which you connect Chatfuel
- A Facebook page

In order to use Chatfuel with Make, it is necessary to have a Chatfuel account. If you do not have one, you can create a Chatfuel account at [https://chatfuel.com/](https://chatfuel.com/).

## Triggers

### JSON Listener

Listens for incoming messages from Chatfuel's JSON API plugin. The enclosing Make has to be run once, in order for user attributes from Chatfuel to become visible and available for mapping.

### Connecting to JSON Webhook

1. Go to Make and open the JSON Listener module. Enter a name for the webhook and click *Save*.
2. Copy the URL to the clipboard.
3. Log into your Chatfuel account, select the bot, and then select *Automate*.

   ![](https://api.archbee.com/api/optimize/oAyFj2GHlBeBVWF5OAir2/Ia1-SBf65DoaG1oSTHKy6_uuid-9e8abff9-f301-e536-8a90-79bbdd987c5e.gif)
4. Open the block containing the JSON API, select the Type as *POST*, and enter the URL copied in step 2.

   ![61d5aa6a3dc44.png](https://api.archbee.com/api/optimize/oAyFj2GHlBeBVWF5OAir2/qEkBr6vFD4j1KVxiEI2Nu_uuid-f0bc2591-0a72-aa95-0590-b70674b7a8b1.png)

The connection has been established.

Now you can start building the Make in Make.

Sending a response is as simple as inserting a **JSON Response** module in the Make's data flow.

Following is an example Make which uses filters to send a personalized greeting if a user's first name is available, and a generic greeting otherwise.

![](https://api.archbee.com/api/optimize/oAyFj2GHlBeBVWF5OAir2/6SRtSssmFgw84-snes6in_uuid-b2dc8cfc-f0ef-b35d-3621-5a76607f5be7.png)

With this Make setup, sending the first name as part of the user attributes from Chatfuel causes the default "Hello, Anonymous" response to instead include the user's first name.

## Actions

### Broadcast Message

Sends any block from the bot's structure or sets user attributes.

| **Bot ID**                 | Enter the Bot ID from which you want to send the message.                                                                                              |
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Broadcasting API Token** | Enter the Secret API token to connect to the Bot ID.                                                                                                   |
| **Messenger User ID**      | Enter the Messenger User ID to whom you are sending the message.                                                                                       |
| **Select Block By**        | Select the option to send the block:<br />- *Name*<br />- *ID*                                                                                         |
| **Message Tag**            | Select a tag for the message to send to a specific group or person.                                                                                    |
| **User Attributes**        | Add the user attributes:<br />**Attribute Name**<br />Enter the name of the attribute.<br />**Attribute Value**<br />Enter the value of the attribute. |

### JSON Response

Sends a response to the address from which a message was received.

| **Messages**             | Select the message type:<br />- *Text*<br />- *Image*<br />- *Video*<br />- *Audio*<br />- *Generic File*<br />- *Image Gallery*<br />- *Itemized List*<br />- *Buttons*                                                                                                                                                                                                                                                                                                                                                                                            |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Text**                 | **Text Message**<br />Enter the message text.<br />**Quick Replies**<br />Add the quick reply:<br />- *JSON Plugin URL*<br />- *Redirect to Blocks*<br />**JSON Plugin URL**<br />Add the details of the quick reply:<br />- **Quick Reply Title**<br />Enter the title of the quick reply.<br />- **URL Address**<br />Enter the website URL Address.<br />**Redirect to Block(s)**<br />Add the details to redirect the user to the block:<br />- **Quick Reply Title**<br />Enter the title of the quick reply.<br />- **Block Names**<br />Add the block names. |
| **User Attributes**      | Add the user attributes:<br />**Attribute Name**<br />Enter the name of the attribute.<br />**Attribute Value**<br />Enter the value of the attribute.                                                                                                                                                                                                                                                                                                                                                                                                              |
| **Redirect to Block(s)** | Add the details to redirect the user to the block or a sequence of blocks:<br />**Block Name**<br />Enter the block name.                                                                                                                                                                                                                                                                                                                                                                                                                                           |

