watson-conversation

Assistant Entities and Different Speakers

喜欢而已 提交于 2019-12-11 16:08:13
问题 It is possible to differentiate among speakers/users with the Watson-Unity-SDK, as it seems to be able to return an array that identifies which words were spoken by which speakers in a multi-person exchange, but I cannot figure out how to execute it, particularly in the case where I am sending different utterances (spoken by different people) to the Assistant service to get a response accordingly. The code snippets for parsing Assistant's json output/response as well as OnRecognize and

Weird bug with Watson Credentials in Unity

妖精的绣舞 提交于 2019-12-11 15:34:42
问题 I'm trying to implement Watson Assistant into Unity. When I create a new Credentials object using the username, password, and serviceUrl as arguments. The serviceUrl is set correctly, but the username and password remain null. I use the same exact code for other services but specifically with this script I get this bug. //Properties [SerializeField] private string _username; [SerializeField] private string _password; [SerializeField] private string _serviceUrl; private void CreateService() {

Watson Conversation Logs by Date

天涯浪子 提交于 2019-12-11 07:35:20
问题 I wanted to know if there is a way to pull Watson conversation logs for a specific time period using Watson Python SDK? Also is there a way to avoid the pagination added at the end of the logs? I want to pull all the logs for a given time period. Below is the code I am currently using which pulls logs for a specific workspace: import json import watson_developer_cloud conversation = watson_developer_cloud.ConversationV1( username='xxxxxxxxxx', password- 'xxxxxxxx', version='2017-05-26' )

What do I have to do for the continuous conversation of watson chatbot?

廉价感情. 提交于 2019-12-11 07:27:05
问题 I want to have a continuous conversation with watson chatbot. current situation : The chatbox does not remember the status of the conversation you previously sent. I installed the Django framework on the server and created a watson.py file to load the workspace and work with KakaoTalk, a Korean chat application. The chatbot's conversation flow that I want is as follows. User: I want to make a reservation Chatbot: When is the meeting date? User: tomorrow Chatbot: How is your meeting time? User

How do i extract the original date value passed from the user input

徘徊边缘 提交于 2019-12-11 06:28:36
问题 Context: The Watson Conversation bot has a node that gets triggered by three input entities from the user, this works fine, but i want the reply from the bot to be "Checking if you have a lecture tomorrow . Give me a moment" then there's a query in the background building up the answer that gets replied later to the user. the strong word tomorrow is an @sys-date entity, but i want it to reply to the user what he/she said instead of the date, because the bot can check no both weeks months ect,

Retrieve matched text from input.text.matches and store into context variable in watson conversation

白昼怎懂夜的黑 提交于 2019-12-11 06:05:25
问题 I am dealing with IBM Watson Conversation . I have a text that contains few letters and digits i.e. age is 26 . I have written a regex to match the digits from the text. It is done using .*?[0-9]+.*? . Now, I want those matched digits into context variables . How to place the matched digits into context variable ? When my condition matches with having input.text.matches('.*?[0-9]+.*?') , then I want to place only digits to my context variable . For Ex: { "context": { "digit": { input.text } }

Adding newline and spacing in watson conversation output (JSON)

假装没事ソ 提交于 2019-12-11 06:05:07
问题 I want the watson conversation to give an output like: I can solve the problems for the following products. 1 Air Conditioner 2 Refrigerator 3 Washing Machine I am trying the following in JSON. But I am getting all the text cramped together. { "output": { "text": "I can solve the problems for the following products.\n\n1\tAir Conditioner\n2\tRefrigerator\n3\tWashing Machine" } } I have also tried \n and \t which is also unsuccessful. Is there any way to get the text properly spaced in the

Watson Conversation API response inconsistent with workspace response on Watson web console

只愿长相守 提交于 2019-12-11 05:47:23
问题 I built a conversations dialog model that works perfectly when tested on the www.ibmwatsonconversation.com workspace. However, when I use the API calling the same workspace on my web app, the response given through the API not the same. Below is the flow: Intent 1 Intent 2 -> Entity 1 Intent 3 Intended behavior : 1.Ask question with intent 2, get reply from intent 2 node. 2.Enter entity 1, get reply from entity 1 node. Actual behaviour (only from API): Ask question with intent 2, get reply

Watson Conversation Service using slots with operators

ぐ巨炮叔叔 提交于 2019-12-11 03:43:46
问题 I'm using slots for some situations, and for one of this I need to check if slot recognized a entity or a context variable. To do it I wrote @myEntity || $MyVar into the "Check" column, and put $MyVar into "Save it as" column. The problem is, when the WCS goes to this slot, my variable $MyVar is being populated with || as a prefix, resulting in || ValueFromMyVar . I did not find any restrictions to use variables on slots and also did not find restrictions about operators usage '|| &&'. Can I

How can I train an intent in Watson conversation to accept any number?

你离开我真会死。 提交于 2019-12-11 01:47:56
问题 How can we train an intent to accept numbers and identify it as that particular state? For example, I'm training an intent to accept a price. If I type: What about 560? It accepts 560 but if I just type 560 it does not identify. 回答1: If you wanna combine the intent and the entity, you can simply ADD one more condition, e.g: if bot recognizes #yourIntent AND @sys-number response: "Do you want information about @sys-number?" Or, if you want to identify the number even ONLY it is entered by the