COVID-19
We’re offering a COVID Q&A bot that automatically answers questions about the coronavirus outbreak. Learn more

Chatfuel Integration

Chatfuel and Alterra bots can work together in Facebook Messenger. Chatfuel will guide customers through a pre-built dialog flow using on-screen buttons while Alterra Answers will respond to free-text messages.

Your webhook URL for Chatfuel JSON API

https://next.alterra.ai/msbot/api/chatfuel?clientId=<YOUR_CLIENT_ID>&messenger+user+id={{messenger user id}}&user+input={{user input}}

You can choose between two integration options:

  1. Light integration
  2. Full integration

Light integration

Add both Alterra and Chatfuel bots to your Facebook Page and let them work side by side.

  1. Before you proceed with this integration please make sure that your FAQ file has been uploaded to Alterra and the bot has been trained. Learn how to do it here.
  2. Make sure your Chatfuel bot doesn’t process any text input messages.
  3. Install Alterra Answers for Facebook Messenger as described here.

As a result, Chatfuel will handle pre-built dialog flows and broadcasts while Alterra will respond to free-text messages.

Full integration

Plug Alterra in Chatfuel as a Default Answer provider

  1. Before you proceed with this integration please make sure that your FAQ file has been uploaded to Alterra and the bot has been trained. Learn how to do it here.
  2. Go to Chatfuel Dashboard, add a block and name it Alterra. Screensho1
  3. Go to Default Answer block and replace all its content with a User Inputcard. Add {{user input}} as a User Attribute. Screenshot2
  4. Below the User Input card, add a Go to Block card and set up redirection to the Alterra block. Screenshot3
  5. Go to the Alterra block, add a JSON API card, use GET request with the webhook URL above. Screenshot3