Bot框架如何将标题添加到confimation对话框

时间:2017-01-16 09:15:35

标签: c# botframework chatbot botbuilder

我正在关注此tutorial来构建聊天机器人。

我的代码在 Microsoft Bot框架模拟器上运行良好,但在 Facebook Messenger 中进行测试时,这里遇到了问题:

Is this your selection?
* Sandwich: Black Forest Ham
* Length: Six Inch
....
> no
What do you want to change? //Facebook Messenger stop and not display this line
 1. Sandwich(Black Forest Ham)
 2. Length(Six Inch)
> 2

这里有消息Bot Framework:

{"error":{"message":"(#100) Param [elements][0][title] must be a non-empty UTF-8 encoded string","type":"OAuthException","code":100,"fbtrace_id":"HfCTxxxx"}}

我使用模拟器进行调试,发现我的机器人返回的内容为空Title

 "attachments": [
{
  "contentType": "application/vnd.microsoft.card.hero",
  "content": {
    "title": "",
    "text": "What do you want to change? ",
    "buttons": [

当用户输入no时如何覆盖此卡?

由于

0 个答案:

没有答案