It is now possible to start any Story or Media Block of Botsify from the external APIs, just need to modify something in the JSON Formats that you are sending Wherever you are sending a button object you need to set the Type of that button as “postback” and set the payload in the button object. If you want to start any story with your button go to Manage Stories from the left sidebar where all the stories are listed. Copy the payload of the story that you want to trigger by clicking the middle button on the top right of each story. Paste the copied payload to the button object in JSON
"buttons":[
{
"type":"postback",
"title":"My Story",
"payload":"STORY_ID-53856",
},
]
Similarly, you can start the media block too with external API, you can find the payload of the Media Block from Media Block Options on the left sidebar as the following image
and paste the copied payload as the value of payload in the button object in your JSON like the following
"buttons":[
{
"type":"postback",
"title":"Media Block Title",
"payload":"TEMPLATE_ID-19534",
},
]
Comments
0 comments
Please sign in to leave a comment.