- Voice User Interface Projects
- Henry Lee
- 242字
- 2021-07-23 17:17:22
No context
In the previous section, we used the context from the external intent Get Name to get the data needed for the Get President Birthday intent. What if you do not always want to use the context, but simply want to ask the user for the missing data?
- In the User says section, add I want to know @president-birthday:president-birthday. Notice that the president-birthday parameter in the Action section is automatically added.
- Have a REQUIRED checkbox checked for president-birthday.
- Click on the Define prompts link that appears in the PROMPTS column.
- Enter the prompt that asks, Which president's birthday would you like to know?.
The following screenshot shows steps 2 to 4 with the required parameter, president-birthday:

The following screenshot shows the default prompt if the required parameter, president name, is not given:

Default prompt for the required parameter
When the user asks what is his birthday?, the Get President Birthday intent will get triggered, but since no president-birthday entity is captured from the user's request, the intent will prompt the user with Which president's birthday would you like to know? As soon as the user gives the answer, the intent will provide a response.
- SPSS數據挖掘與案例分析應用實踐
- 工程軟件開發技術基礎
- 算法精粹:經典計算機科學問題的Java實現
- Java程序員面試算法寶典
- Python高級編程
- Java軟件開發基礎
- EPLAN實戰設計
- iOS開發實戰:從入門到上架App Store(第2版) (移動開發叢書)
- R語言與網絡輿情處理
- C語言程序設計
- PLC應用技術(三菱FX2N系列)
- ElasticSearch Cookbook(Second Edition)
- Julia 1.0 Programming Complete Reference Guide
- Microsoft 365 Certified Fundamentals MS-900 Exam Guide
- .NET 4.5 Parallel Extensions Cookbook