首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >对话流模拟器没有响应

对话流模拟器没有响应
EN

Stack Overflow用户
提问于 2018-09-26 20:45:49
回答 1查看 469关注 0票数 0

我正在从我的对话流模拟器中使用firebase函数中的实现来测试一个简单的对话。

并且当触发时,我将收到履行响应

但我的模拟器显示了这一点。表示没有接收到响应。

请帮帮忙

完整的原始履行响应

代码语言:javascript
复制
 `{   "responseId": "99b660de-e2ca-4d8c-ace5-ef724fe5ee72",   "queryResult": {     "queryText": "male",     "parameters": {       "gender": "male"     },     "allRequiredParamsPresent": true,     "webhookPayload": {       "google": {         "richResponse": {           "items": [             {               "simpleResponse": {                 "textToSpeech": "Amazing"               }             }           ]         },         "expectUserResponse": true,         "userStorage": "{\"data\":{}}"       }     },     "outputContexts": [       {         "name": "projects/assurance-purple/agent/sessions/bf891cbe-8642-eb61-ed7b-d6796adfab60/contexts/_actions_on_google",         "lifespanCount": 99,         "parameters": {           "data": "{}",           "gender.original": "male",           "gender": "male"         }       }     ],     "intent": {       "name": "projects/assurance-purple/agent/intents/96b523a0-7a3a-4135-bdfc-d9d8ad16b661",       "displayName": "getGender"     },     "intentDetectionConfidence": 1,     "diagnosticInfo": {       "webhook_latency_ms": 45     },     "languageCode": "en"   },   "webhookStatus": {     "message": "Webhook execution successful"   } }`

我在google Testing debug选项卡上的操作

`

代码语言:javascript
复制
{
  "response": "We're sorry, but something went wrong. Please try again.",
  "expectUserResponse": false,
  "conversationToken": "",
  "audioResponse": "",
  "visualResponse": {
    "visualElementsList": [
      {
        "displayText": {
          "content": "Sorry, this action is not available in simulation"
        }
      }
    ],
    "suggestionsList": [],
    "agentLogoUrl": ""
  },
  "clientError": 4,
  "is3pResponse": false
}

`

EN

回答 1

Stack Overflow用户

发布于 2018-09-26 21:18:16

您没有显示整个响应(将其复制并粘贴为问题中的文本会更好),但看起来您正在发送一个Action的响应,但试图在Dialogflow的对话工具中测试它。

Google响应上的操作与Dialogflow期望处理Assistant支持的附加功能的响应略有不同。因此,在测试代理时,您需要使用Google模拟器上的操作。

Dialogflow测试正在寻找一些特定的字段来显示没有包含在Google上的actions库中的响应,并且它不会显示Google RichResponse对象中的任何内容。

总结一下:

  • 如果您使用的是操作,请使用谷歌模拟器上的操作。
  • 如果您使用的是其他对话流集成,则可以使用对话流右侧的测试工具。

更新

您从AoG模拟器中指示的错误表明您正试图在会话中仅发出一条语句,而不是启动操作,或者操作已退出。通过使用“与我的测试应用程序对话”或您的操作的名称来开始操作,以确保您正在与操作对话。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/52518093

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档