watson-dialog

Watson Conversation Dialogue, how to save user input using slot

亡梦爱人 提交于 2019-12-06 04:58:09
In my Watson conversation dialogue am trying to read user input using slot, my requirement is to prompt user for enter an issue description and save it in a variable named issue_description. but in slot, watson check for intent or entity before saving it into a variable. in my case i have put an intent to check with, but it is not saved into variable after the check, i always get true as issue_description. how can i save the issue _description into a variable? what should be the possible intent and entity for this? If you want to save user input then you can use to save the input in any

Using Watson conversation, how to handle customer, account number etc

别来无恙 提交于 2019-12-02 06:36:08
问题 I'm creating sample application using Watson conversation API in nodejs. I'm trying to get username and send them to Watson and then I want to say hello "$username", also I want to keep that throughout the conversation so that I can if the user ask if I remember the name, Watson can say "yes, "$username"". Can someone help me with sample code, how to use intent in this use case. // Start conversation with Hello message. conversation.message({ input: { text: "Hello" }, }, processResponse); //

Does watson conversation intents and entities support regular expressions?

∥☆過路亽.° 提交于 2019-12-02 06:00:22
I'm testing Watson Conversation API with a possible dialog my company wants to create. We are developing with Brazilian Portuguese. Given the portugues is a rich language and sometimes the users can make mistakes, we want to predict these possible errors, mainly with special chars and accents. For sample, the word produção can be written by users like: produção , producao , produçao , producão . Is possible to have a regular expression on the intents and entities to have something like the picture bellow? Sometimes we have another word to make a sense liek produção final , produção geral ,

Using Watson conversation, how to handle customer, account number etc

北慕城南 提交于 2019-12-01 23:40:47
I'm creating sample application using Watson conversation API in nodejs. I'm trying to get username and send them to Watson and then I want to say hello "$username", also I want to keep that throughout the conversation so that I can if the user ask if I remember the name, Watson can say "yes, "$username"". Can someone help me with sample code, how to use intent in this use case. // Start conversation with Hello message. conversation.message({ input: { text: "Hello" }, }, processResponse); // Process the conversation response. function processResponse(err, response) { if (err) { console.error

Watson dialog cURL conversation post request not passing form data

你说的曾经没有我的故事 提交于 2019-11-29 17:13:15
When making a post cURL request as below to try and continue a created conversation watson instead returns a new conversation. curl -u "USERNAME":"PASSWORD" -X POST --form conversation_id=CONVOID --form client_id=CLIENTID --form input="What type of toppings do you have?" "https://gateway.watsonplatform.net/dialog/api/v1/dialogs/DIALOGID/conversation" If i use the below cURL it works fine. curl -u "USERNAME":"PASSWORD" --data "conversation_id=CONVOID&client_id=CLIENTID&input=What type of toppings do you have?" https://gateway.watsonplatform.net/dialog/api/v1/dialogs/DIALOGID/conversation My