- Voice User Interface Projects
- Henry Lee
- 258字
- 2021-07-23 17:17:22
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:

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 birthday.
The following screenshot shows the debugger showing the Get President Birthday intent with the get_name context:

Test out the no context scenario by typing in, What is his birthday?. The intent will trigger the prompt, asking Which president's birthday would you like to know? When you respond with George Washington, the response returns George Washington's birthday.
The following screenshot shows the intent triggering the prompt, asking the user which president's birthday they would like to know about:

The following screenshot shows the chatbot providing the president's name as a response to Get President Birthday:

In the following section, you will learn how to actually test FaqChatBot using your iPhone or Android mobile device.
- Instant Node Package Manager
- 程序員面試筆試寶典
- Java程序員面試算法寶典
- 區塊鏈:以太坊DApp開發實戰
- SQL Server 2016數據庫應用與開發習題解答與上機指導
- MATLAB 2020從入門到精通
- 第一行代碼 C語言(視頻講解版)
- Scala Data Analysis Cookbook
- CRYENGINE Game Development Blueprints
- Django 3.0應用開發詳解
- 零基礎學C語言(第4版)
- Photoshop智能手機APP界面設計
- 數字媒體技術概論
- Wearable:Tech Projects with the Raspberry Pi Zero
- Java Web入門很輕松(微課超值版)