- 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.
- UI圖標(biāo)創(chuàng)意設(shè)計(jì)
- Python快樂(lè)編程:人工智能深度學(xué)習(xí)基礎(chǔ)
- Java 開(kāi)發(fā)從入門(mén)到精通(第2版)
- Beginning C++ Game Programming
- Building Modern Web Applications Using Angular
- PhpStorm Cookbook
- Python編程與幾何圖形
- Python數(shù)據(jù)可視化之Matplotlib與Pyecharts實(shí)戰(zhàn)
- 軟件測(cè)試技術(shù)指南
- Windows內(nèi)核編程
- Illustrator CS6設(shè)計(jì)與應(yīng)用任務(wù)教程
- Hadoop 2.X HDFS源碼剖析
- Django Design Patterns and Best Practices
- Improving your Penetration Testing Skills
- 零基礎(chǔ)入門(mén)學(xué)習(xí)C語(yǔ)言:帶你學(xué)C帶你飛