尝试在同一请求中在 Chatbase 中发送两条消息,如下所示:
{
"messages" : [{
"api_key" : "XXX",
"type" : "user",
"user_id" : 1287,
"time_stamp" : 1544782312,
"platform" : "Telegram",
"message" : "",
"intent" : "Screen2",
"version" : "1.1"
}, {
"api_key" : "XXX",
"type" : "agent",
"user_id" : 1287,
"time_stamp" : 1544782312,
"platform" : "Telegram",
"intent" : "Screen2",
"version" : "1.1"
}
]
}
但是得到响应错误
{
"reason" : "Error fetching parameter 'user_id': Field was empty.",
"status" : 400
}
您有什么想法吗?