0

我一直在用谷歌助手做一些工作,它工作正常,但有时代理突然离开对话,错误视图和日志都没有任何关于发生了什么的迹象。我需要一个线索,为什么这个响应从来没有到达代理(假设它是在 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"
               }
           ]
       }    
    ] 
}
4

1 回答 1

-1

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

于 2018-05-14T12:55:17.313 回答