我正在从我的对话流模拟器中使用firebase函数中的实现来测试一个简单的对话。
并且当触发时,我将收到履行响应

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

完整的原始履行响应
`{ "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选项卡上的操作
`
{
"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
}`
发布于 2018-09-26 21:18:16
您没有显示整个响应(将其复制并粘贴为问题中的文本会更好),但看起来您正在发送一个Action的响应,但试图在Dialogflow的对话工具中测试它。
Google响应上的操作与Dialogflow期望处理Assistant支持的附加功能的响应略有不同。因此,在测试代理时,您需要使用Google模拟器上的操作。
Dialogflow测试正在寻找一些特定的字段来显示没有包含在Google上的actions库中的响应,并且它不会显示Google RichResponse对象中的任何内容。
总结一下:
更新
您从AoG模拟器中指示的错误表明您正试图在会话中仅发出一条语句,而不是启动操作,或者操作已退出。通过使用“与我的测试应用程序对话”或您的操作的名称来开始操作,以确保您正在与操作对话。
https://stackoverflow.com/questions/52518093
复制相似问题