If you are using Dialogflow’s REST API, these tips can help speed up your development. Use the Postman app If you hadn’t used it already, Postman calls itself “the complete toolchain of API developers”. For our case, Postman allows you to take the various API calls you see in the Dialogflow documentation and test these requests. For example, here is a request I created as I was working on the Chatfuel integration tutorial. But here is the best part. Once you confirm that the request is constructed properly, you can simply use the Code link at the top right and get auto-generated code for the request you just made. And the Postman app supports many programming languages: Understand what a […]
Did you know that the API.AI context can be used like a dictionary object which can hold a set of key-value pairs? You can use this feature to refer to the value of an entity which was used in previous intents. Let us take a look at an example. Periodic Table Bot The periodic Table Chatbot does something really simple. The user can ask for the atomic number, or the chemical symbol, or the color of any element in the periodic table. In addition, they can use the context (that is, remember the element they talked about in the previous message) and enquire about the other properties. For example, here is a screenshot: As you can see, the bot does […]
How well do you know your API.AI contexts? Watch this video and find out! (I think you might find a surprising thing or two) Sorry about the poor audio. I am still learning how to do this. 🙁 Learn about – What happens when multiple input contexts are set for a single intent? – What happens when multiple output contexts are set by a single intent? – The hierarchy of intent selection when there are multiple candidates based on the active context(s) Also check out this article on candidate intents.