ibm-watson

How to integrate Facebook with Watson conversation

China☆狼群 提交于 2020-01-30 11:12:50
问题 I can already connect my conversation to my Facebook page and the bot is working. My Problem is that i couldn't find a single tutorial on how to make calls to a server that is owned by a company and has information about accounts and payments, for example when i type to the Chat-bot that i want to see a list of accounts, the chat-bot would reply with a list from that API; Or i can login to that server with my account by typing the account's name and password in the chat-bot. I just wanted to

Watson visual recognition: error 401

↘锁芯ラ 提交于 2020-01-25 22:01:11
问题 I'm trying npm module watson-developer-cloud for visual recognition. I'm getting { error: 'invalid-api-key', code: 401 } when trying to run following code: var watson = require('watson-developer-cloud'); var fs = require('fs'); var visualRecognition = watson.visual_recognition({ version: 'v3', api_key: process.env.API_KEY || 'e2493f2bacdbea8becedcc7aafecdfb4133XXXXX', version_date: '2015-05-19' }); var params = { images_file: fs.createReadStream('./resources/gopher.png') }; visualRecognition

Request confirmation on lower confidence levels in Watson Conversation

我与影子孤独终老i 提交于 2020-01-17 10:19:06
问题 I know how to set conditions based on intent match and confidence level. I would like to proceed with a flow if the confidence is above a certain threshold, and request confirmation if it is in a mid-range before proceeding with the flow. I can do this by doubling the nodes: Create one node that matches at high confidence Create a node underneath that matches at a lower level. If I get confirmation, route back to first node, bypassing the condition. Is there a better pattern that doesn't

Watson Visual Recognition - Unauthorized

牧云@^-^@ 提交于 2020-01-17 02:31:05
问题 I am trying to use the Watson Visual Recognition service with the watson-developer-cloud NPM module. But I always get the following error. What am I doing wrong? Unauthorized: Access denied due to invalid credentials. I already searched for hours and found many people with the same problem, but none of the answers resolved the issue. My service authentication informations (just test data): { "apikey": "API_KEY", "iam_apikey_description": "...", "iam_apikey_name": "...", "iam_role_crn": "...",

How to convert multiple documents using the Document Conversion service ina script bash?

不问归期 提交于 2020-01-11 09:58:05
问题 How can I convert more than one document using the Document Conversion service. I have between 50-100 MS Word and PDF documents that I want to convert using the convert_document API method? For example, can you supply multiple .pdf or *.doc files like this?: curl -u "username":"password" -X POST -F "config={\"conversion_target\":\"ANSWER_UNITS\"};type=application/json" -F "file=@\*.doc;type=application/msword" "https://gateway.watsonplatform.net/document-conversion-experimental/api/v1/convert

IBM Watson visual recognition - invalid API key

左心房为你撑大大i 提交于 2020-01-11 06:00:32
问题 I'm trying to use the visual recognition from IBM Watson using their API. Here is the POST request I am sending: https://gateway-a.watsonplatform.net/visual-recognition/api/v3/classify?api_key={MY_API_KEY}&version=2016-05-20 and I specify my image in the body parameter. I always get: { "status": "ERROR", "statusInfo": "invalid-api-key" } I got my key from Bluemix 3 hours ago (they said the key should be working in 5 minutes). Any ideas? Thanks EDIT Since this morning, I have another error: {

How to post a image correctly to alchemy node.js server?

心已入冬 提交于 2020-01-07 00:34:29
问题 I try to implement a post method on the node.js server for alchemy. The problem is how to handle the give image provided be a mobile app. I get the Image as a part of a json. The json extract the image and convert it to a binary. (hopefully right) Then prepare the post method, with the need alchemy parameter. Doing the post and examine the result. There is a 'cannot-analyze:downstream-issue' problem. 2016-07-12T00:57:29.185+0200 [App/0] OUT 'x-alchemyapi-params': 'sentiment=0&knowledgeGraph=0

Retrofit2 authentication error to IBM's Speech to Text

别等时光非礼了梦想. 提交于 2020-01-06 08:12:48
问题 I am trying to access IBM's Speech to Text service without using the library. I am using Retrofit with GSON. The issue is in the authentication, which apparently does not occur correctly, returning code 401. From the official documentation, the HTTP request should come in this format curl -X POST -u "apikey:{apikey}" \ --header "Content-Type: audio/flac" \ --data-binary @{path_to_file}audio-file.flac \ "{url}/v1/recognize" When I test the curl command with my credentials, the service works

Why do I get 415 errors from Watson's Document Conversion service on certain documents?

▼魔方 西西 提交于 2020-01-04 05:51:23
问题 I am trying to convert a group of HTML documents to answer units with Watson's Document Conversion service. Approximately 1/3 of the documents process fine, with the remainder giving this error: The Media Type [application/octet-stream] of the input document is not supported. Auto correction was attempted, but the auto detected media type [text/plain] is also not supported. Supported Media Types are: application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document,

Slack-App-Watson: Watson looses intent from previous message received

人盡茶涼 提交于 2020-01-01 19:21:45
问题 I am writing a simple Slack bot which can look for weather conditions for a given location. In the Watson conversation chat box, Watson is doing good: me: Weather please Watson (detected #weather_asked): Where do you want to know the weather conditions? me: Paris Watson (detected @location for intent #weather_asked): Finding weather conditions for Paris... But in my node.js app (connected to Slack), it seems that Watson is " not keeping in mind that I am providing a location for the #weather