【问题标题】:Agent suddenly leaves the conversation without any indication about what the error is代理突然离开对话,没有任何迹象表明错误是什么
【发布时间】:2018-05-13 00:27:03
【问题描述】:

我一直在使用 Google 助手进行一些工作,它工作正常,但有时代理突然离开对话,错误视图和日志都没有任何迹象表明发生了什么。我需要一个线索,为什么这个响应从未到达代理(假设它是在 5 秒的窗口内发送的)以及为什么日志中没有关于发生了什么的迹象。有时我的查询被定向到一般的谷歌搜索,这不是我期望用户得到的。

代理后端发送的响应如下。

{    "expectUserResponse": true,    "expectedInputs": [
       {
           "inputPrompt": {
               "initialPrompts": [],
               "noInputPrompts": [],
               "richInitialPrompt": {
                   "items": [
                       {
                           "simpleResponse": {
                               "textToSpeech": "Here is what I found. This product is manufactured by Carroll & Meynell. The retail    price of this product is 297.93 GBP. What would you like to do?. ",
                               "displayText": "Let me see what I can find for you. Here is what I found. This product is manufactured by    Carroll & Meynell. The retail price of this product is 297.93 GBP. it    also has 230 V ac Primary Voltage Rating, ±55 V ac Secondary Voltage    Rating, 3 kVA Power Rating, 27 A Output Current and CMHT Series. What    would you like to do?. "
                           }
                       },
                       {
                           "basicCard": {
                               "title": "Carroll & Meynell, 3kVA CMHT Safety Transformer, 230V ac, 27A",
                               "image": {
                                   "url": "https://test.com/t_large/R3996140-01.jpg",
                                   "accessibilityText": "Other Images"
                               },
                               "buttons": []
                           }
                       }
                   ],
                   "suggestions": [
                       {
                           "title": "Manufacturer Info"
                       },
                       {
                           "title": "Prices and Stock"
                       },
                       {
                           "title": "More Like This"
                       },
                       {
                           "title": "Accessories"
                       },
                       {
                           "title": "Product Alternative"
                       },
                       {
                           "title": "Warranty Info"
                       },
                       {
                           "title": "Technical Details"
                       },
                       {
                           "title": "Other Options"
                       }
                   ]
               }
           },
           "possibleIntents": [
               {
                   "intent": "actions.intent.TEXT"
               }
           ]
       }    
    ] 
}

【问题讨论】:

  • 您的手机是否发生了这种情况?在网络模拟器中?
  • @NickFelker 这个问题出在模拟器上
  • @NickFelker 实际上两者都发生了。但我的试验是用模拟器。我正在寻找的只是日志中的一条线索,以查看发生了什么,然后在有任何问题时修复我的回复
  • @NickFelker 这真的很烦人,我让代理更频繁地退出对话而没有任何迹象表明错误是什么。请帮忙。
  • 好的,您可以通过我的电子邮件 fleker@google.com 分享该项目吗?我看看能否重现您的问题?

标签: actions-on-google google-assist-api


【解决方案1】:

@NickFelker 在模拟器和手机上也发生了同样的事情。谷歌上的操作真的很糟糕而且没有组织,除了这些问题之外 - 我已经让同样的事情与 Facebook Messenger 的自定义有效负载一起工作。我真的在考虑暂时不要碰 Google 上的操作,因为它像地狱一样不稳定。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-08-02
    • 1970-01-01
    相关资源
    最近更新 更多