While Defining the Dialog in the Watson Conversation I'm not able to greet user with his/her name or I'm not able to detect contact number sent by the user and rephrase it to the user. Is it possible to do it in the Watson Conversation Api or not.
相关问题
- Bluemix Analytics for Apache Spark log file inform
- How to disable okhttp3.internal.platform.Platform
- Watson Conversation supports nested Intents?
- Not able to push my local app to bluemix
- How to extract current date in watson conversation
相关文章
- Is there an npm module to modify a pdf file in nod
- Kubernetes Persistent Volume Claim mounted with wr
- How to pipe multiple readable streams, from multip
- how to order SoftLayer_Virtual_ReservedCapacityGro
- Can I call the Bluemix message hub service from Py
- How to convert multiple documents using the Docume
- GYP ERR! build error. stack Error: 'make'
- Unable to run bms-samples-cordova-hellopush - bms_
Although Mitch's response is correct, here is an example of doing a personalised response.
1. Set your
conversation_start
node text to "Hello <? context.username ?>
".2. In your code you would do something like this (Python).
3. When you run this, it should output the following, with the "text" part being what the user sees.
One thing to be aware is that, the context object is used to maintain the state of the conversation. So if you plan to use just REST API's then you need to merge your context variables into the preceding context object before sending it. You do only need to do this at points where you do know the conversation needs that context.
Do you already have access to this information? You can send these values through as context, and refer to them using $context_variable The same goes for collecting information from a user. You can capture things using regular expressions via your application, or using some Spring Expressions, you can see the text.matches here: https://www.ibm.com/watson/developercloud/doc/conversation/dialog_reference.shtml You would store this as context, and then refer to it using $context_variable again. Information like names and phone numbers is quite open ended, so can be difficult to capture without using an open entity extraction engine, which we are researching best ways to incorporate this.
To get the user's input, use:
And to show: