- Cognitive Computing with IBM Watson
- Rob High Tanmay Bakshi
- 274字
- 2021-06-24 15:02:36
Building a dialog
To make your application a little more interesting, you can preface the interaction with a little greeting, and some sort of acknowledgement. We'll do that now.
You can introduce a dialog by pressing the Dialog tab of the main workspace screen and press the Create button. This will begin with a very basic dialog flow already filled out for you—including what to say to get things going, and how to respond in the case the user utters something completely off-topic:

Press on the Welcome card and an edit screen will come up on the right. You can modify the text that Watson will respond with, for example, change it to Welcome to ABC Bank. What can I do for you?:

Now, let's provide an interesting response if the user wants to pay their power bill. Press the Add node button, and in the If bot recognizes: field enter #Pay-Bills, press the + sign to the right of that, and enter @BillingInstitution:(Phone Company) in the field that opens up. There are auto-complete prompts for each of these steps that will help you fill in the values. Finally, enter Thank-you, we will pay your Power Bill in the Then respond with: field:

Now, let's try it out. You should see the following:

Of course, what you're seeing in the preceding Try it out screen is a prototype application that is exercising the dialog you just created along with the intents and entities that you've trained Watson to recognize. In your own application, you will be able to build the user interface to suit whatever is appropriate for your audience.
- 數(shù)據(jù)要素安全流通
- Modern Programming: Object Oriented Programming and Best Practices
- MySQL從入門到精通(第3版)
- Mockito Cookbook
- Python醫(yī)學(xué)數(shù)據(jù)分析入門
- Spark大數(shù)據(jù)編程實(shí)用教程
- Spark分布式處理實(shí)戰(zhàn)
- 數(shù)據(jù)分析師養(yǎng)成寶典
- Scratch 2.0 Game Development HOTSHOT
- 企業(yè)級大數(shù)據(jù)項(xiàng)目實(shí)戰(zhàn):用戶搜索行為分析系統(tǒng)從0到1
- Visual Studio 2012 and .NET 4.5 Expert Development Cookbook
- 數(shù)據(jù)之美:一本書學(xué)會可視化設(shè)計
- NoSQL數(shù)據(jù)庫原理(第2版·微課版)
- Access 2010數(shù)據(jù)庫應(yīng)用技術(shù)教程(第二版)
- 數(shù)據(jù)分析方法及應(yīng)用:基于SPSS和EXCEL環(huán)境