watson-conversation

How to pass variables as context to IBM Cloud Watson Assistant with V2?

妖精的绣舞 提交于 2019-12-25 03:34:52
问题 I am trying to use the new API version V2 for IBM Cloud Watson Assistant. Instead of sending a message for a workspace I need to send a message to an assistant. The context structure has global and skill-related sections now. How would my app pass in values as context variables? Where in the structure would they need to be placed? I am using the Python SDK. I am interested in sending information as part of client dialog actions. 回答1: Based on testing the Python SDK and the API V2 using a tool

How to use the Watson Conversation inside iOS Swift?

你说的曾经没有我的故事 提交于 2019-12-24 20:34:11
问题 I am going to update my customised sample based on Build a home assistant mobile application with Watson and IoT Platform services In this code I get the message: Can not convert value of type 'String' to expected argument type 'InputData?' How to solve this problem? Inside the documentation of developer cloud/conversation/api I can find the definition of InputData , but NO sample how to realize this in Swift iOS? // Based on API Changes // ==================== // Incorrect argument label in

unable to extra/list all event log on watson assistant wrokspace

旧巷老猫 提交于 2019-12-24 18:20:19
问题 Please help I was trying to call watson assistant endpoint https://gateway.watsonplatform.net/assistant/api/v1/workspaces/myworkspace/logs?version=2018-09-20 to get all the list of events and filter by date range using this params var param = { workspace_id: '{myworkspace}', page_limit: 100000, filter: 'response_timestamp%3C2018-17-12,response_timestamp%3E2019-01-01'} apparently I got any empty response below. { "logs": [], "pagination": {} } 回答1: Couple of things to check. 1. You have 2018

How to display several messages on screen with Watson Conversation

99封情书 提交于 2019-12-24 07:59:13
问题 I'm working on a chatbot with Watson technology and more precisely with conversation service. It's my first application on Bluemix and with javascript and i have an issue with the display message of my chatbot. I explain: currently I have this code : var text = response.output.text[0]; // only display first value And my function displayMessage function displayMessage(text, user) { var chat = document.getElementById('chatBox'); var bubble = document.createElement('div'); bubble.className =

IBM Watson - Sys-number does not get 0

跟風遠走 提交于 2019-12-24 07:37:17
问题 in this case, I want to use sys-number to get numbers sequence, and this number can start with 0. But, if the user types 034234342342 , the sys-number does not recognize the 0 , just 34234342342 . Have any Contorn Solution for this? In this case, to get all number? This is one Regex condition inside Conversation flow and I want to use sys-number to get the ALL number if the user types "My protocol number is 034234342342". And sys-number will be the new condition and get the complete number.

How use Select Option in Watson Conversation

回眸只為那壹抹淺笑 提交于 2019-12-24 07:08:03
问题 I'm trying to insert the select options tag into my conversation, to make it more simple to the user. I did this: And in the index.js: function selected(){ switch($('#selected option:selected').val()){ case 01: alert("01"); break; case 02: alert("02"); break; } }; But it doesn't recognize the option selected. I tried without the function selected() (only with switch case), but it didn't worked.. Can somebody help me please? Thanks a lot! 回答1: I believe your HTML inside the Advanced context

Request two or more intentions inside Watson Conversation

泄露秘密 提交于 2019-12-24 02:55:08
问题 I have 5 intents in my conversation. If user types for request 2 or more intents, how do I know that he has typed two intentions and how do I inform him that he can only request one intention at a time? My example have 2 intents, and Watson dont reconigze the second intent: I want pizza and I want cuisine Intents #pizza : I want pizza Intents # cuisine : I want cuisine Thanks. 回答1: The Watson Conversation Service evaluates all your intents when it process the input text. However, by default

IBM Watson conversation training status API

假如想象 提交于 2019-12-24 01:18:57
问题 I am using IBM Watson APIs to create intents and user examples and I want to know how to track the training status after creating a new intent and user examples. 回答1: To track the status from within the UI, open the "Try it out" panel. It will display "Watson is training". When complete it will stop. Programatically, you can use the Workspace API to query the workspace. For example in Python. from watson_developer_cloud import ConversationV1 url = "https://gateway-fra.watsonplatform.net

Watson Assistant API V2 “manages the context automatically” - more details?

眉间皱痕 提交于 2019-12-23 09:43:10
问题 This is a question about Watson Assistant API V1/V2 difference. The doc says like this: Note that if your app uses the v1 API, it communicates directly with the dialog skill, bypassing the orchestration and state-management capabilities of the assistant. This means that your application is responsible for maintaining state information. This is done using the context, an object that is passed back and forth between your application and the Watson Assistant service. Your application must

Watson conversation return different results for the same request

与世无争的帅哥 提交于 2019-12-23 05:34:05
问题 I create one simple conversation dialogue, and I input the same question, but Watson returns different results. You can see the attached picture, the 1st time, Watson only matches the intent, but does not return the response message. I enter the same question again, it returns predefined response. It seems that only even request, Watson can return response message. The odd request, Watson did not return message. Can anyone help me on this? Thanks. 回答1: The "Try it out" window is good for