我已经在对话框中构建了一个简单的聊天机器人,而las周我决定在Google助手中测试聊天机器人。我已经在对话框中测试了chatbot,它与web钩子的实现相连接,并且工作正常。但是当我在google助手中测试它时,我得到和错误的回应。
实际上,我正在使用ngrok测试web钩子的实现,并将temp放在web钩子中。当我用对话框流演示测试它时,当调用Api时,我会得到日志。但是当我和谷歌助理一起做的时候,我没有得到日志。这就像api从未被调用过一样。
我不知道我是做了什么坏事,还是没有在google助手或对话框中配置什么东西。
我正在使用dialogflow-fulfillment和actions-on-google库使用nodejs从对话框中获取帖子,并给出对话框流和Google助手的答案。
回应谷歌助理
{
"responseMetadata": {
"status": {
"code": 10,
"message": "Failed to parse Dialogflow response into AppResponse because of invalid platform response: Could not find a RichResponse or SystemIntent in the platform response for agentId: 905b630b-ec2d-4b34-b2b1-5c4012eaa2c1 and intentId: 1e2e382e-2208-4857-8a0e-7311a141d13c. WebhookStatus: code: 5\nmessage: \"Webhook call failed. Error: NOT_FOUND, State: URL_ERROR, Reason: ERROR_NOT_FOUND, HTTP status code: 404.\"\n."
}
}
}调试Google助手
{
"response": "Sorry, Shell Virtual Agent isn't responding right now. Please try again soon.",
"expectUserResponse": false,
"conversationToken": "EosDS2o5ck...",
"audioResponse": "//NExAAPeD...",
"ssmlMarkList": [],
"debugInfo": {
"assistantToAgentDebug": {
"curlCommand": "curl -v 'https://api.api.ai/api/integrations/google?token=b8699f38e6954887882558306b2ef106&versionId=3' -H 'Content-Type: application/json;charset=UTF-8' -H 'Google-Actions-API-Version: 2' -H 'Authorization: 'sadsd' -A Google-ActionsOnGoogle/1.0 -X POST -d '{\"user\":{\"locale\":\"en-US\",\"userVerificationStatus\":\"GUEST\"},\"conversation\":{\"conversationId\":\"ABwppHG-ocBDbzP3aYSkXq90WPBMb19DcQQOfKRHKsLDv4cyow4hMjLTtM26t-5gk4VICfQfef1NmOSAJqalt9dvGRzhQ7amEA\",\"type\":\"ACTIVE\",\"conversationToken\":\"[\\\"authentication-flow\\\",\\\"authentication-s3-email\\\",\\\"authentication-vars\\\",\\\"bill-my-value-high\\\"]\"},\"inputs\":[{\"intent\":\"actions.intent.TEXT\",\"rawInputs\":[{\"inputType\":\"VOICE\",\"query\":\"ed@jones.com\"}],\"arguments\":[{\"name\":\"text\",\"rawText\":\"ed@jones.com\",\"textValue\":\"ed@jones.com\"}]}],\"surface\":{\"capabilities\":[{\"name\":\"actions.capability.MEDIA_RESPONSE_AUDIO\"},{\"name\":\"actions.capability.ACCOUNT_LINKING\"},{\"name\":\"actions.capability.SCREEN_OUTPUT\"},{\"name\":\"actions.capability.AUDIO_OUTPUT\"}]},\"availableSurfaces\":[{\"capabilities\":[{\"name\":\"actions.capability.AUDIO_OUTPUT\"},{\"name\":\"actions.capability.SCREEN_OUTPUT\"},{\"name\":\"actions.capability.WEB_BROWSER\"}]}],\"requestType\":\"SIMULATOR\"}'",
"assistantToAgentJson": "{\"user\":{\"locale\":\"en-US\",\"userVerificationStatus\":\"GUEST\"},\"conversation\":{\"conversationId\":\"ABwppHG-ocBDbzP3aYSkXq90WPBMb19DcQQOfKRHKsLDv4cyow4hMjLTtM26t-5gk4VICfQfef1NmOSAJqalt9dvGRzhQ7amEA\",\"type\":\"ACTIVE\",\"conversationToken\":\"[\\\"authentication-flow\\\",\\\"authentication-s3-email\\\",\\\"authentication-vars\\\",\\\"bill-my-value-high\\\"]\"},\"inputs\":[{\"intent\":\"actions.intent.TEXT\",\"rawInputs\":[{\"inputType\":\"VOICE\",\"query\":\"ed@jones.com\"}],\"arguments\":[{\"name\":\"text\",\"rawText\":\"ed@jones.com\",\"textValue\":\"ed@jones.com\"}]}],\"surface\":{\"capabilities\":[{\"name\":\"actions.capability.MEDIA_RESPONSE_AUDIO\"},{\"name\":\"actions.capability.ACCOUNT_LINKING\"},{\"name\":\"actions.capability.SCREEN_OUTPUT\"},{\"name\":\"actions.capability.AUDIO_OUTPUT\"}]},\"availableSurfaces\":[{\"capabilities\":[{\"name\":\"actions.capability.AUDIO_OUTPUT\"},{\"name\":\"actions.capability.SCREEN_OUTPUT\"},{\"name\":\"actions.capability.WEB_BROWSER\"}]}],\"requestType\":\"SIMULATOR\"}",
"delegatedRequest": {
"delegatedRequest": ""
}
},
"agentToAssistantDebug": {
"agentToAssistantJson": "{\n \"responseMetadata\": {\n \"status\": {\n \"code\": 10,\n \"message\": \"Failed to parse Dialogflow response into AppResponse because of invalid platform response: Could not find a RichResponse or SystemIntent in the platform response for agentId: 905b630b-ec2d-4b34-b2b1-5c4012eaa2c1 and intentId: 1e2e382e-2208-4857-8a0e-7311a141d13c. WebhookStatus: code: 5\\nmessage: \\\"Webhook call failed. Error: NOT_FOUND, State: URL_ERROR, Reason: ERROR_NOT_FOUND, HTTP status code: 404.\\\"\\n.\"\n }\n }\n}",
"delegatedResponse": {
"delegatedResponse": ""
}
},
"sharedDebugInfoList": [
{
"name": "ResponseValidation",
"debugInfo": "",
"subDebugEntryList": [
{
"name": "MalformedResponse",
"debugInfo": "Failed to parse Dialogflow response into AppResponse because of invalid platform response: Could not find a RichResponse or SystemIntent in the platform response for agentId: 905b630b-ec2d-4b34-b2b1-5c4012eaa2c1 and intentId: 1e2e382e-2208-4857-8a0e-7311a141d13c. WebhookStatus: code: 5\nmessage: \"Webhook call failed. Error: NOT_FOUND, State: URL_ERROR, Reason: ERROR_NOT_FOUND, HTTP status code: 404.\"\n..",
"subDebugEntryList": []
}
]
}
],
"conversationBuilderExecutionEventsList": []
},
"conversationBuilderDebugInfo": {
"eventList": []
},
"visualResponse": {
"visualElementsList": [
{
"displayText": {
"content": "Sorry, Shell Virtual Agent isn't responding right now. Please try again soon."
}
}
],
"suggestionsList": [],
"agentLogoUrl": ""
},
"clientError": 0,
"is3pResponse": true,
"clientOperationList": [
{
"operationType": 7,
"exitIndicatorPayLoad": {
"status": 1
}
}
],
"projectName": "",
"renderedHtml": "",
"previewStartTimeMicros": "1649805199475166",
"isEmptyResponse": false,
"agentName": "Shell Virtual Agent",
"servingModelOutdated": false
}GCP测井
{
"textPayload": "MalformedResponse: Failed to parse Dialogflow response into AppResponse because of invalid platform response: Could not find a RichResponse or SystemIntent in the platform response for agentId: 905b630b-ec2d-4b34-b2b1-5c4012eaa2c1 and intentId: 1e2e382e-2208-4857-8a0e-7311a141d13c. WebhookStatus: code: 5\nmessage: \"Webhook call failed. Error: NOT_FOUND, State: URL_ERROR, Reason: ERROR_NOT_FOUND, HTTP status code: 404.\"\n.",
"insertId": "8lq5l0fp25rsx",
"resource": {
"type": "assistant_action",
"labels": {
"version_id": "",
"project_id": "shell-energy-ccai-poc-dev",
"action_id": "actions.intent.TEXT"
}
},
"timestamp": "2022-04-18T17:08:02.112767941Z",
"severity": "ERROR",
"labels": {
"source": "JSON_RESPONSE_VALIDATION",
"channel": "preview",
"querystream": "GOOGLE_USER"
},
"logName": "projects/shell-energy-ccai-poc-dev/logs/actions.googleapis.com%2Factions",
"trace": "projects/702646568948/traces/ABwppHG-ocBDbzP3aYSkXq90WPBMb19DcQQOfKRHKsLDv4cyow4hMjLTtM26t-5gk4VICfQfef1NmOSAJqalt9dvGRzhQ7amEA",
"receiveTimestamp": "2022-04-18T17:08:02.122590076Z"
}发布于 2022-05-02 06:46:13
您将不得不将您的项目迁移到google操作控制台。您将在对话框流控制台的integrations部分下找到迁移选项。


https://stackoverflow.com/questions/71915077
复制相似问题