In this tutorial, we will see how you start a story or media block from an API response. First, we need to fetch the payload of the story or media block Get Story Payload:
On the side, of the menu click Chatbot AI and select Story.
Click on the Menu option of the story and click Copy Payload.
After copying the payload to your API, after you have performed the login you can return the payload as follows and the chatbot will start that particular flow directly after the API call:
return {"story_postback": “STORY_ID-123”}
Please paste your original payload instead of “STORY_ID-123”.
Get Media Block Payload:
On the side, of the menu click Chatbot AI and select Media Blocks.
Click on the Actions option and click Copy Payload.
After copying the payload to your API, after you have performed the login you can return the payload as follows and the chatbot will send the particular media block directly after the API call:
return {"template_postback": “TEMPLATE_ID-123”}
Please paste your original payload instead of “TEMPLATE_ID-123”.
Comments
0 comments
Please sign in to leave a comment.