How To Send Your Botsify Story From Dialogflow

Written by Muhammad Aamir
Posted On Apr, 22, 2019

In the previous guide, we explained how to connect your Dialogflow account to Botsify and send messages from Dialogflow. Now we will demonstrate how you can send your stories directly from Dialogflow.

For this guide, we will be adding another story to the previous Dialogflow intent we created (in the previous guide) so that you can understand easily what is going on.

You can read the guide to integrate Dialogflow to Botsify here.

Go to your Botsify dashboard and click on Chatbot AI → Story

Now go to the story you want to send from Dialogflow or ‘Create’ a new one.

Click on the 3 vertical dots on the right side of your story and click ‘Copy payload’.

Now go to your Dialogflow account.

Select the ‘agent’ integrated with Botsify and choose the ‘intent’ you want to send this story from.

Now go to your ‘Response’ and click on the ‘Add response’ option below

Select ‘custom payload’ from the options.

Now type the following JSON payload here:

  "facebook": {
    "story_postback": ""

Now paste the story payload you copied from your Botsify story in between the inverted commas like this:

This is how your custom payload should look like. Click save once you have successfully created your custom payload.

Now go to your Botsify dashboard and test if your story is working or not.


You have successfully sent your Botsify story from Dialogflow using custom payload.