watson-conversation

Curl request equivalent in VB.NET

喜夏-厌秋 提交于 2019-12-21 05:07:29
问题 As they are, I am trying to use the Watson service, which makes a post request to a URL, and the cURL code is as follows. How could I do the equivalent of this request in Visual Studio with the Visual Basic language? curl -X POST -u "{username}":"{password}" —-header "Content-Type:application/json" --data "{\"input\": {\"text\": \"Turn on the lights\"}, \"context\": {\"conversation_id\": \"1b7b67c0-90ed-45dc-8508-9488bc483d5b\", \"system\": {\"dialog_stack\": [\"root\"], \"dialog_turn_counter

IBM Watson Conversation API: “Request header field Authorization is not allowed by Access-Control-Allow-Headers in preflight response”

北战南征 提交于 2019-12-20 05:34:04
问题 I created a React-Native app that connected to the Watson REST APIs. Using the fetch library that is part of the ReactNative, everything was working well for getting the Workspaces list, like this: const myAuth = new Buffer(USR+':'+PWD).toString('base64'); const myInit = { method: 'GET', headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', 'Origin': '', 'Authorization': 'Basic ' + myAuth, } }; return fetch(URL, myInit) .then((response) => response.json()) .then(

Watson Responds with one API code

蓝咒 提交于 2019-12-20 05:16:07
问题 i know if I want send any to Watson in conversation I use the: var latestResponse = Api.getResponsePayload(); var context = latestResponse.context; Api.sendRequest("Hi Watson!", context); This result of my code: I want to know how do I get Watson to send something in the conversation. I saw some examples and tried and it did not work. Can someone help? I dont now If I'm doing right , but My example is: // var responseText = null; //responseText = {}; var latestResponse = Api

How to disable okhttp3.internal.platform.Platform log from printing on my console while executing the watson assistant's functionalities using java?

天大地大妈咪最大 提交于 2019-12-14 02:12:25
问题 I want only the output not that logs printing on my console. 来源: https://stackoverflow.com/questions/51894551/how-to-disable-okhttp3-internal-platform-platform-log-from-printing-on-my-consol

IBM Watson: How do I add a hyperlink to Watson Responses?

强颜欢笑 提交于 2019-12-13 18:26:13
问题 I've tried other responses mentioned on other forums but I'm still not able to get the right result. As of this moment, this is what the layout looks like Any help would be much appreciated! 回答1: Add in your Watson response the HTML tag, the browser will render: The link to go to google is: click <a target="_blank" href="https://google.com.br">Google</a>.<br/><br/> Add inside Watson response: Tested hyperlink: Obs.: Check inside Try it out, this does not work, but inside your Web application,

Watson Dialog service to Conversation service

混江龙づ霸主 提交于 2019-12-13 16:25:27
问题 We created dialogs with Bluemix Dialog service and now we would like to import them into the new Bluemix Conversation service. The export-import failed. Do you know if an transfert process exists ? Thank you 回答1: Unfortunately the ability to migrate to Conversation from Dialog is not possible, as the two systems are very different. Intents in Conversation are similar to NLC. So if you have an existing NLC service, you can export that and import as a CSV file. Entities in Conversation are not

How to print the answer returned by IBM Watson Assistant?

℡╲_俬逩灬. 提交于 2019-12-13 08:58:53
问题 I have a Python Flask app that tries to use IBM Watson Assistant. Below is a code snippet that invokes the message API function. How do I print the returned answer? import json, _watson, requests, jsonify import watson_developer_cloud from flask import Flask, render_template from flask_socketio import SocketIO, send @app.route('/') def index(): return render_template('index.html') @socketio.on('message') def handleMessage(msg): print("Message: "+msg) msg = _watson.conversacion(msg) send(msg,

Watson assistant preview link is not working

落花浮王杯 提交于 2019-12-13 03:21:58
问题 The preview link created in IBM Watson Assistant is not working https://assistant-chat-eu-gb.watsonplatform.net/web/public/3d262aef-38e5-476e-87f8-6c0177f1c72a But works perfectly with the Slack. Can anyone help me to sort out this issue? 回答1: Finally, I have able to resolve the issue by simply changing the URL by eu-gb to us-south. Old URL with issue https://assistant-chat-eu-gb.watsonplatform.net/web/public/3d262aef-38e5-476e-87f8-6c0177f1c72a New URL https://assistant-chat-us-south

IBM Watson Assistant: Chatbot Entity Confusion over regular expression

戏子无情 提交于 2019-12-13 03:13:14
问题 I have an entity called " @material_number " in which two values are stored. First value is " material_number1 " with the pattern (\d{3}).(\d{3}) The second value is " material_number2 " with the pattern (\d{3}).(\d{3}).(\d{3}) When the user enters a material number, I store the value with a context variable called " $materialnumber " and I set the value of this variable to " ?@material_number.literal? ". And at the end the bot responds " Oh okay, the material number is $materialnumber. " The

Is there any way to export intents for watson conversation?

孤街醉人 提交于 2019-12-13 00:09:22
问题 You can import intents for watson conversation in CSV format, but there doesn't appear to be a way to export them (and really, I'm looking for the exact format that is needed to import them, but I would also like to know how to export). 回答1: There is no direct way to export. The best way to do it is to go to your project menu, and export as JSON. After that, if you check in the JSON file, you will find the questions and intents. You can also get access to your entities this way as well