ibm-watson

How to add a new line in IBM Watson chatbot conversation?

こ雲淡風輕ζ 提交于 2019-12-04 06:31:01
问题 Currently I'm working with the chatbot service provided by the IBM Watson Coversation api. Now I'm facing a problem, related to adding a new line in the text reply from the chatbot. Can anyone tell me how to do this? 回答1: in this case, you can use HTML for that, inside conversation flow with <br> . Check my example: You can see that does not work in "Try it out": But if you open with a browser, you see that work: Check JSON example: { "output": { "text": { "values": [ "Hey, <br>Can I help you

How to pipe multiple readable streams, from multiple api requests, to a single writeable stream?

流过昼夜 提交于 2019-12-04 01:56:59
- Desired Behaviour - Actual Behaviour - What I've Tried - Steps To Reproduce - Research Desired Behaviour Pipe multiple readable streams, received from multiple api requests, to a single writeable stream. The api responses are from ibm-watson's textToSpeech.synthesize() method. The reason multiple requests are required is because the service has a 5KB limit on text input. Therefore a string of 18KB , for example, requires four requests to complete. Actual Behaviour The writeable stream file is incomplete and garbled. The application seems to 'hang'. When I try and open the incomplete .mp3

Watson Conversation_Error in Environment Variable

拜拜、爱过 提交于 2019-12-02 10:04:55
问题 I am trying to copy Watson conversation simple node js application from GitHub (https://github.com/watson-developer-cloud/conversation-simple) and running in my local. I have created service key and setup workspace. Next I have updated Workspace ID, User ID & Password in .env, app.js file. I have imported existing car_workspace.json file only and used corresponding Workspace ID. While running in local host I am getting "The app has not been configured with a environment variable." Please help

How to integrate Facebook with Watson conversation

旧时模样 提交于 2019-12-02 08:43:06
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 know if anyone knows how to do that or if its even possible or knows a tutorial that explains it. I

How to add a new line in IBM Watson chatbot conversation?

女生的网名这么多〃 提交于 2019-12-02 08:13:17
Currently I'm working with the chatbot service provided by the IBM Watson Coversation api. Now I'm facing a problem, related to adding a new line in the text reply from the chatbot. Can anyone tell me how to do this? in this case, you can use HTML for that, inside conversation flow with <br> . Check my example: You can see that does not work in "Try it out": But if you open with a browser, you see that work: Check JSON example: { "output": { "text": { "values": [ "Hey, <br>Can I help you?", "", "" ], "selection_policy": "random" } } } You can use other tags, example: <button> , <id> , etc. 来源:

Intermittent javax.net.ssl failure bad_record_mac

落爺英雄遲暮 提交于 2019-12-02 07:22:59
I have a Java Spring web app running on Tomcat through an Apache https proxypass which fails intermittently when it tries to access a secure IBM Watson service. Apache is secured with a LetsEncrypt cert, redirecting to Tomcat port 8080. Environment: Java: jdk1.7.0_80 Solaris 10 Tomcat 8.0.33 Apache 2.4.18 I turned on javax.net debug and I can see it gets through ServerHelloDone. Here is the rest of the log up to the exception. ServerHelloDone [read] MD5 and SHA1 hashes: len = 4 0000: 0E 00 00 00 .... ECDHClientKeyExchange ECDH Public value: { 4, 1, 15, 216, 52, 12, 28, 142, 36, 18, 118, 235,

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 ,

Watson Speech to Text Response Times

风流意气都作罢 提交于 2019-12-02 05:24:34
问题 Having some troubles with the service while pushing to Bluemix The push request I am sending via php-curl is: POST https://stream.watsonplatform.net/speech-to-text/api/v1/recognize with the following parameters model : en-US_NarrowbandModel Content-Type : audio/wav; rate: 8000 Transfer-Encoding: chunked timestamps : true word_confidence : true continuous : true Response timeout is set to 2h (7200000 milliseconds) We are getting timeout from curl for some of our files, without any apparent

Watson Speech to Text Response Times

断了今生、忘了曾经 提交于 2019-12-02 01:48:37
Having some troubles with the service while pushing to Bluemix The push request I am sending via php-curl is: POST https://stream.watsonplatform.net/speech-to-text/api/v1/recognize with the following parameters model : en-US_NarrowbandModel Content-Type : audio/wav; rate: 8000 Transfer-Encoding: chunked timestamps : true word_confidence : true continuous : true Response timeout is set to 2h (7200000 milliseconds) We are getting timeout from curl for some of our files, without any apparent reason, at first I thought was related to the duration of the recordings, but I've got in logs with