简体   繁体   中英

Watson Dialog does not recognize continuation of conversation

When trying to use the Dialog tool to get a feel for how the APIs work, I ran into a problem where a POST to /conversation creates a new conversation, instead of continuing an existing one. I am using the docs found at : http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/dialog/api/v1/

An initial POST returns a conversation and client id, but subsequent requests with those values added, along with an input value, just return information for a new conversation. Are these docs inaccurate?

Here is a screenshot from one of my many attempts at getting this to work. The client and connection IDs are from a previous POST to /conversation

http://imgur.com/4035dWe

Thanks for your help!

Your first call to Converse you should not specify the conversation ID. Dialog will return a conversation ID with the first response.

You then use that ID going forward to maintain the conversation. It is unclear if you are doing this in the example above.

It turns out I was using the incorrect encoding for the conversation / client ID's and input. Watson expects the form values to be URL encoded. Once I made that change, the problem was resolved.

Thanks to everyone who offered their time and help!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM