Testing context and no context scenarios

Let's test the context using Google Assistant simulator from the Dialogflow console. In the Try it now textbox, enter my name is Henry and you will see the response, Henry you can ask me anything about the president of America. Notice that, in the Contexts section, it shows that the GET_NAME context is set and also has the username parameter value of Henry.

The following screenshot shows us testing the get_name context:

Testing the get_name context

If you enter the next question, I want to know John Adams' birthday, you will see that the response contains the username when responding about the president's ...

Get Voice User Interface Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.