多伦对话业务系统代码demo有吗
love卵疼 发布于2018-10 浏览:1783 回复:3
0
收藏

我的bot弄好了,但是没怎么看懂API文档,求助有没有简单的多伦对话的代码demo,java py  php  c# 都行  谢谢了

收藏
点赞
0
个赞
共3条回复 最后由半醉半醒半疯Z回复于2018-10
#4半醉半醒半疯Z回复于2018-10
#3 love卵疼回复
我其实就是想知道第二轮对话中我这个json哪里有问题:  "{"bot_session":"{"session_id":"session-1539310509100-2261805925-8013-26"}","log_id":"7758521","request":{"bernard_level":1,"client_session":"{\"client_results\":\"\", \"candidate_options\":[]}","query":"何友闯在不在","query_info":{"asr_candidates":[],"source":"KEYBOARD","type":"TEXT"},"updates":"","user_id":"99635"},"bot_id":"12752","version":"2.0"}" 我这个bot_session 是否设置错误了,我去掉 bot_session 请求正确,但是加上session就是 282008 错误
展开

{
"bot_session": "{\"session_id\":\"session-1539310509100-2261805925-8013-26\"}",
"log_id": "7758521",
"request": {
"bernard_level": 1,
"client_session": "{\"client_results\":\"\", \"candidate_options\":[]}",
"query": "何友闯在不在",
"query_info": {
"asr_candidates": [

],
"source": "KEYBOARD",
"type": "TEXT"
},
"updates": "",
"user_id": "99635"
},
"bot_id": "12752",
"version": "2.0"
}

 

 

用这种形式,session_id需要有转义符

0
#3love卵疼回复于2018-10
#2 伊茨米可回复
对话API文档中有示例代码

我其实就是想知道第二轮对话中我这个json哪里有问题: 

"{"bot_session":"{"session_id":"session-1539310509100-2261805925-8013-26"}","log_id":"7758521","request":{"bernard_level":1,"client_session":"{\"client_results\":\"\", \"candidate_options\":[]}","query":"何友闯在不在","query_info":{"asr_candidates":[],"source":"KEYBOARD","type":"TEXT"},"updates":"","user_id":"99635"},"bot_id":"12752","version":"2.0"}"

我这个bot_session 是否设置错误了,我去掉 bot_session 请求正确,但是加上session就是 282008 错误

0
#2伊茨米可回复于2018-10

对话API文档中有示例代码

0
TOP
切换版块