I am building a chatbot and using angular as frontend. It is a rule based chatbot and i am using rest api to get bot response in the frontend. Currently, the bot response object contains text and buttons. But i want to send another key like type which tells the type bot response! For example, if the bot is asking for user’s location, i want to send a key along with text which contains the value “location” so that it becomes easier for me in the frontend to display relevant data to the user. How do i do that?
You’ll be looking for custom output payloads from the domain file or the json
key to dispatcher.utter_message
in your actions!