Communication

Chatfuel

6min
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 go to make and open the json listener module enter a name for the webhook and click save copy the url to the clipboard log into your chatfuel account, select the bot, and then select automate open the block containing the json api, select the type as post , and enter the url copied in step 2 61d5aa6a3dc44 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 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 name id message tag select a tag for the message to send to a specific group or person user attributes add the user attributes attribute name enter the name of the attribute attribute value 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 text image video audio generic file image gallery itemized list buttons text text message enter the message text quick replies add the quick reply json plugin url redirect to blocks json plugin url add the details of the quick reply quick reply title enter the title of the quick reply url address enter the website url address redirect to block(s) add the details to redirect the user to the block quick reply title enter the title of the quick reply block names add the block names user attributes add the user attributes attribute name enter the name of the attribute attribute value 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 block name enter the block name