IBM Watson Solutions for Machine Learning: Achieving Successful Results Across Computer Vision, Natural Language Processing and AI Projects Using Watson Cognitive Tools by Arindam Ganguly

IBM Watson Solutions for Machine Learning: Achieving Successful Results Across Computer Vision, Natural Language Processing and AI Projects Using Watson Cognitive Tools by Arindam Ganguly

Author:Arindam Ganguly [Ganguly, Arindam]
Language: eng
Format: epub, pdf
Publisher: BPB Publications
Published: 2021-07-15T00:00:00+00:00


Figure 4.27: Adding Slot Label and Value

Click on Save and you have your slots ready.

You can optionally add a response type after If no slots are pre-filled; ask this first, if you want to ask before you prompt.

Leave everything else as it is. Watson automatically saves whatever changes you make to a dialog on runtime dynamically.

Later, we will add a jump statement to jump to step 3 to ask the user to choose which preparation of Chicken or Burger is required based on the choice the user made on the Slot here (as decided in our conversation model). But for that, first we need to create the dialog node corresponding to step 3.

So, either add a node above #order node or add a node below the Welcome node by clicking on the three dots of #order node or Welcome node.

We will not add any slot here, as the user has already chosen between Chicken and Burger in the #order node.

Add the condition in the condition field as decided #order and @food_type. Here, and is the operator. But remember that we have stored the @food_type value in the context variable $food_type. So add another or operator and another condition $food_type. But then why do we even need @food_type. It is because if the user directly asks for an order along with the @food_type, we will need to capture that here as well. Finally, add a Text response asking the user to choose the particular preparation as shown in figure 4.28:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.