Chat Bot API
For discussion of the Chat Bot API and the projects using it. Trade sample code, ask questions, give advice.
Posts 50 - 61 of 177
Posts 50 - 61 of 177
valor
8 years ago
8 years ago
API documentation states that response is json, but response.body is an html snippet with lots of
tags. It looks like the text following the last
tag is the json I'm expecting. What is the best way to parse this so I get just the json reply message?
tags. It looks like the text following the last
tag is the json I'm expecting. What is the best way to parse this so I get just the json reply message?
The Professor
8 years ago
8 years ago
I've fixed this issue. Some debug code was showing up in there. Now the response is fully JSON.
lucareto
8 years ago
8 years ago
Hi The professor,
Still got an error, because I try to call the JSONP, I think you should put a wrapper for the JSON callback (e.g.
JSON_CALLBACK( {"success":1,"errorMessage":"","message":{"chatBotName":"Huge Dragon","chatBotID":"110966","message":"Yes, Annez, I've heard that one before.","emotion":null}} )
Thanks before!!!
Still got an error, because I try to call the JSONP, I think you should put a wrapper for the JSON callback (e.g.
JSON_CALLBACK( {"success":1,"errorMessage":"","message":{"chatBotName":"Huge Dragon","chatBotID":"110966","message":"Yes, Annez, I've heard that one before.","emotion":null}} )
Thanks before!!!
Ander
8 years ago
8 years ago
A bot, Gaybob, no longer wants to talk to me no matter what I say. How could I fix this?
seneca
8 years ago
8 years ago
After a keyphrase you can add a seek for supposed replies with onemor two words like "yes, not, why not " and so you can create also a reply to the seek and with that the conversation follows the topic of the keyphrase. Very useful.
hospitalpatients
8 years ago
8 years ago
I include my apiKey, but still get the error message:
{"success","errorType":"Missing apiKey","errorMessage":"Your apiKey must be passed in the url"}
{"success","errorType":"Missing apiKey","errorMessage":"Your apiKey must be passed in the url"}
» More new posts: Doghead's Cosmic Bar