- 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.
- LaTeX Cookbook
- PyTorch自動駕駛視覺感知算法實戰(zhàn)
- Learning Docker
- Windows Server 2016 Automation with PowerShell Cookbook(Second Edition)
- 區(qū)塊鏈底層設(shè)計Java實戰(zhàn)
- GitHub入門與實踐
- 網(wǎng)絡(luò)數(shù)據(jù)采集技術(shù):Java網(wǎng)絡(luò)爬蟲實戰(zhàn)
- WildFly Cookbook
- 基于GPU加速的計算機視覺編程:使用OpenCV和CUDA實時處理復(fù)雜圖像數(shù)據(jù)
- 零基礎(chǔ)學(xué)Java第2版
- Java 11 and 12:New Features
- 基于MATLAB的控制系統(tǒng)仿真及應(yīng)用
- 可視化H5頁面設(shè)計與制作:Mugeda標(biāo)準教程
- 分布式系統(tǒng)架構(gòu)與開發(fā):技術(shù)原理與面試題解析
- 大話C語言