Действия в Google: цель, которую запрашивает приложение, не найдена - PullRequest
0 голосов
/ 05 февраля 2019

Хорошо, это странно, это второй раз, когда я получаю это, и что-то не так.

Ошибка, которую я получаю при попытке выбрать push-уведомления: MalformedResponse expected_inputs[0].possible_intents[0].input_value_data: The intent the app is asking for permission to send updates for is not found..

Когда я впервые создал это намерение, оно работало, а теперь нет.

Вот цель моих действий: enter image description here

Вотнамерение в моем диалоговом потоке: enter image description here

Как возможно, что мое намерение не найдено, когда оно явно в диалоговом потоке - и доступно в AoG.

Мой коддля этих разрешений намерений:

app.intent('innercircle_notification_request', (conv) => {
    console.log('innercircle_notification_request')
    conv.ask(new UpdatePermission({
        intent: 'inner_circle_notification'
    }));
});
app.intent('innercircle_notification_request_finish', (conv) => {
    if (conv.arguments.get('PERMISSION')) {
        const userID = conv.arguments.get('UPDATES_USER_ID');
        User.default.setUserId({
            intent: 'inner_circle_notification',
            id: userID,
            gaToken: Settings.default.accessToken
        });
        conv.close(`Ok, you will now receive messages from your inner circle.`);
    } else {
        conv.close(`Ok, I won't notify you.`);
    }
});

Запрос:

{
  "user": {
    "userId": "ABwppHFptFALNqLXxqWSOHQ9V9o9TOgeEkPNOU1akvPC2900EAFvalF7ANlRUiQHh1k1pvWmCo4UO0yDfQ",
    "locale": "en-US",
    "lastSeen": "2019-02-04T22:56:44Z"
  },
  "conversation": {
    "conversationId": "ABwppHFkNV1WPWYYfituxrV-Lm5zUFYQXmqmzC9-iO5MdbIMl6xVkuBa1fpQa23BX9yMrsU_hvWH8rn6YQ",
    "type": "ACTIVE",
    "conversationToken": "[]"
  },
  "inputs": [
    {
      "intent": "actions.intent.TEXT",
      "rawInputs": [
        {
          "inputType": "TOUCH",
          "query": "Send Updates"
        }
      ],
      "arguments": [
        {
          "name": "text",
          "rawText": "Send Updates",
          "textValue": "Send Updates"
        }
      ]
    }
  ],
  "surface": {
    "capabilities": [
      {
        "name": "actions.capability.SCREEN_OUTPUT"
      },
      {
        "name": "actions.capability.MEDIA_RESPONSE_AUDIO"
      },
      {
        "name": "actions.capability.WEB_BROWSER"
      },
      {
        "name": "actions.capability.AUDIO_OUTPUT"
      }
    ]
  },
  "isInSandbox": true,
  "availableSurfaces": [
    {
      "capabilities": [
        {
          "name": "actions.capability.SCREEN_OUTPUT"
        },
        {
          "name": "actions.capability.WEB_BROWSER"
        },
        {
          "name": "actions.capability.AUDIO_OUTPUT"
        }
      ]
    }
  ],
  "requestType": "SIMULATOR"
}

Ответ:

{
  "conversationToken": "[\"requestinnercirclenotifications\"]",
  "expectUserResponse": true,
  "expectedInputs": [
    {
      "inputPrompt": {},
      "possibleIntents": [
        {
          "intent": "actions.intent.PERMISSION",
          "inputValueData": {
            "@type": "type.googleapis.com/google.actions.v2.PermissionValueSpec",
            "permissions": [
              "UPDATE"
            ],
            "updatePermissionValueSpec": {
              "intent": "inner_circle_notification"
            }
          }
        }
      ],
      "speechBiasingHints": [
        "$fish",
        "$lunar-event",
        "$log-type",
        "$lure",
        "$username",
        "$weather",
        "$lure-color"
      ]
    }
  ],
  "responseMetadata": {
    "status": {
      "message": "Success (200)"
    },
    "queryMatchInfo": {
      "queryMatched": true,
      "intent": "a89ed259-dc99-4ded-9567-5bf85b1a93ee"
    },
    "delegatedRequest": {
      "delegatedRequest": "{\n  \"responseId\": \"5a1f3c7a-96cd-4ea2-91b0-04b232e916a0\",\n  \"queryResult\": {\n    \"queryText\": \"Send Updates\",\n    \"action\": \"innercircle_notification_request\",\n    \"parameters\": {\n    },\n    \"allRequiredParamsPresent\": true,\n    \"fulfillmentMessages\": [{\n      \"text\": {\n        \"text\": [\"\"]\n      }\n    }],\n    \"outputContexts\": [{\n      \"name\": \"projects/lakelabsvoice/agent/sessions/ABwppHFkNV1WPWYYfituxrV-Lm5zUFYQXmqmzC9-iO5MdbIMl6xVkuBa1fpQa23BX9yMrsU_hvWH8rn6YQ/contexts/google_assistant_input_type_touch\"\n    }, {\n      \"name\": \"projects/lakelabsvoice/agent/sessions/ABwppHFkNV1WPWYYfituxrV-Lm5zUFYQXmqmzC9-iO5MdbIMl6xVkuBa1fpQa23BX9yMrsU_hvWH8rn6YQ/contexts/actions_capability_screen_output\"\n    }, {\n      \"name\": \"projects/lakelabsvoice/agent/sessions/ABwppHFkNV1WPWYYfituxrV-Lm5zUFYQXmqmzC9-iO5MdbIMl6xVkuBa1fpQa23BX9yMrsU_hvWH8rn6YQ/contexts/requestinnercirclenotifications\",\n      \"lifespanCount\": 5\n    }, {\n      \"name\": \"projects/lakelabsvoice/agent/sessions/ABwppHFkNV1WPWYYfituxrV-Lm5zUFYQXmqmzC9-iO5MdbIMl6xVkuBa1fpQa23BX9yMrsU_hvWH8rn6YQ/contexts/actions_capability_audio_output\"\n    }, {\n      \"name\": \"projects/lakelabsvoice/agent/sessions/ABwppHFkNV1WPWYYfituxrV-Lm5zUFYQXmqmzC9-iO5MdbIMl6xVkuBa1fpQa23BX9yMrsU_hvWH8rn6YQ/contexts/actions_capability_web_browser\"\n    }, {\n      \"name\": \"projects/lakelabsvoice/agent/sessions/ABwppHFkNV1WPWYYfituxrV-Lm5zUFYQXmqmzC9-iO5MdbIMl6xVkuBa1fpQa23BX9yMrsU_hvWH8rn6YQ/contexts/actions_capability_media_response_audio\"\n    }],\n    \"intent\": {\n      \"name\": \"projects/lakelabsvoice/agent/intents/a89ed259-dc99-4ded-9567-5bf85b1a93ee\",\n      \"displayName\": \"innercircle_notification_request\"\n    },\n    \"intentDetectionConfidence\": 1.0,\n    \"languageCode\": \"en-us\"\n  },\n  \"originalDetectIntentRequest\": {\n    \"source\": \"google\",\n    \"version\": \"2\",\n    \"payload\": {\n      \"isInSandbox\": true,\n      \"surface\": {\n        \"capabilities\": [{\n          \"name\": \"actions.capability.SCREEN_OUTPUT\"\n        }, {\n          \"name\": \"actions.capability.MEDIA_RESPONSE_AUDIO\"\n        }, {\n          \"name\": \"actions.capability.WEB_BROWSER\"\n        }, {\n          \"name\": \"actions.capability.AUDIO_OUTPUT\"\n        }]\n      },\n      \"requestType\": \"SIMULATOR\",\n      \"inputs\": [{\n        \"rawInputs\": [{\n          \"query\": \"Send Updates\",\n          \"inputType\": \"TOUCH\"\n        }],\n        \"arguments\": [{\n          \"rawText\": \"Send Updates\",\n          \"textValue\": \"Send Updates\",\n          \"name\": \"text\"\n        }],\n        \"intent\": \"actions.intent.TEXT\"\n      }],\n      \"user\": {\n        \"lastSeen\": \"2019-02-04T22:56:44Z\",\n        \"locale\": \"en-US\",\n        \"userId\": \"ABwppHFptFALNqLXxqWSOHQ9V9o9TOgeEkPNOU1akvPC2900EAFvalF7ANlRUiQHh1k1pvWmCo4UO0yDfQ\"\n      },\n      \"conversation\": {\n        \"conversationId\": \"ABwppHFkNV1WPWYYfituxrV-Lm5zUFYQXmqmzC9-iO5MdbIMl6xVkuBa1fpQa23BX9yMrsU_hvWH8rn6YQ\",\n        \"type\": \"ACTIVE\",\n        \"conversationToken\": \"[]\"\n      },\n      \"availableSurfaces\": [{\n        \"capabilities\": [{\n          \"name\": \"actions.capability.SCREEN_OUTPUT\"\n        }, {\n          \"name\": \"actions.capability.WEB_BROWSER\"\n        }, {\n          \"name\": \"actions.capability.AUDIO_OUTPUT\"\n        }]\n      }]\n    }\n  },\n  \"session\": \"projects/lakelabsvoice/agent/sessions/ABwppHFkNV1WPWYYfituxrV-Lm5zUFYQXmqmzC9-iO5MdbIMl6xVkuBa1fpQa23BX9yMrsU_hvWH8rn6YQ\"\n}"
    },
    "delegatedResponse": {
      "delegatedResponse": "{\"payload\":{\"google\":{\"expectUserResponse\":true,\"systemIntent\":{\"intent\":\"actions.intent.PERMISSION\",\"data\":{\"@type\":\"type.googleapis.com/google.actions.v2.PermissionValueSpec\",\"permissions\":[\"UPDATE\"],\"updatePermissionValueSpec\":{\"intent\":\"inner_circle_notification\"}}}}}}"
    }
  }
}

Отладка:

{
  "response": "Lake Labs isn't responding right now. Try again soon.",
  "expectUserResponse": false,
  "conversationToken": "Eo8CS2s1Tk...",
  "audioResponse": "//NExAASWK...",
  "debugInfo": {
    "assistantToAgentDebug": {
      "curlCommand": "curl -v 'https://api.api.ai/api/integrations/google?token=903697cd96b346e5b626c4d25a9f55fa' -H 'Content-Type: application/json;charset=UTF-8' -H 'Google-Actions-API-Version: 2' -H 'Authorization: eyJhbGciOiJSUzI1NiIsImtpZCI6IjZmYjA1Zjc0MjM2NmVlNGNmNGJjZjQ5Zjk4NGM0ODdlNDVjOGM4M2QiLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiJodHRwczovL2FjY291bnRzLmdvb2dsZS5jb20iLCJhdWQiOiJsYWtlbGFic3ZvaWNlIiwibmJmIjoxNTQ5MzMyNDU3LCJpYXQiOjE1NDkzMzI3NTcsImV4cCI6MTU0OTMzMjg3NywianRpIjoiOTFmMTliNjE5MGI1ZTc4NTU4NjkzNGQzZDYxNzVlMzQ2YzVlNTEwMCJ9.TmL0YGyPCrFJrnMEvGLZHiyj6dtz4m2iyJ_b1MpBj4N1kMtCW_sOzNYJ4KZAS_Sde7Y_-NfjpKFvZ9VCrnzuYU3WvZFBZ1ZUceOBEvMJ3geL8pSeLqtTOyI8C9DET55IU6aeaxyKswaa9mfOSf4wjWKLqi5TX8Nle1wCcb1jZc0H2JrHB2VMVr0Vw9gg_d_UyQXTdapMqbRLG-Weud6AZgPbH0dzgjxHJMOklG9bUdUfrqtPIWwCd3i4NTGOuIkzb2VB5Skr7NaEW5Q4IzrTeyMfhvBLElcO_AZx3-OFG_EW85Bbaw-5K5xJfAZAzGBxlJM5MPG1KLEJvHFytOfzkA'  -A 'Mozilla/5.0 (compatible; Google-Cloud-Functions/2.1; +http://www.google.com/bot.html)' -X POST -d '{\"user\":{\"userId\":\"ABwppHFptFALNqLXxqWSOHQ9V9o9TOgeEkPNOU1akvPC2900EAFvalF7ANlRUiQHh1k1pvWmCo4UO0yDfQ\",\"locale\":\"en-US\",\"lastSeen\":\"2019-02-04T22:56:44Z\"},\"conversation\":{\"conversationId\":\"ABwppHFkNV1WPWYYfituxrV-Lm5zUFYQXmqmzC9-iO5MdbIMl6xVkuBa1fpQa23BX9yMrsU_hvWH8rn6YQ\",\"type\":\"ACTIVE\",\"conversationToken\":\"[]\"},\"inputs\":[{\"intent\":\"actions.intent.TEXT\",\"rawInputs\":[{\"inputType\":\"TOUCH\",\"query\":\"Send Updates\"}],\"arguments\":[{\"name\":\"text\",\"rawText\":\"Send Updates\",\"textValue\":\"Send Updates\"}]}],\"surface\":{\"capabilities\":[{\"name\":\"actions.capability.SCREEN_OUTPUT\"},{\"name\":\"actions.capability.MEDIA_RESPONSE_AUDIO\"},{\"name\":\"actions.capability.WEB_BROWSER\"},{\"name\":\"actions.capability.AUDIO_OUTPUT\"}]},\"isInSandbox\":true,\"availableSurfaces\":[{\"capabilities\":[{\"name\":\"actions.capability.SCREEN_OUTPUT\"},{\"name\":\"actions.capability.WEB_BROWSER\"},{\"name\":\"actions.capability.AUDIO_OUTPUT\"}]}],\"requestType\":\"SIMULATOR\"}'",
      "assistantToAgentJson": "{\"user\":{\"userId\":\"ABwppHFptFALNqLXxqWSOHQ9V9o9TOgeEkPNOU1akvPC2900EAFvalF7ANlRUiQHh1k1pvWmCo4UO0yDfQ\",\"locale\":\"en-US\",\"lastSeen\":\"2019-02-04T22:56:44Z\"},\"conversation\":{\"conversationId\":\"ABwppHFkNV1WPWYYfituxrV-Lm5zUFYQXmqmzC9-iO5MdbIMl6xVkuBa1fpQa23BX9yMrsU_hvWH8rn6YQ\",\"type\":\"ACTIVE\",\"conversationToken\":\"[]\"},\"inputs\":[{\"intent\":\"actions.intent.TEXT\",\"rawInputs\":[{\"inputType\":\"TOUCH\",\"query\":\"Send Updates\"}],\"arguments\":[{\"name\":\"text\",\"rawText\":\"Send Updates\",\"textValue\":\"Send Updates\"}]}],\"surface\":{\"capabilities\":[{\"name\":\"actions.capability.SCREEN_OUTPUT\"},{\"name\":\"actions.capability.MEDIA_RESPONSE_AUDIO\"},{\"name\":\"actions.capability.WEB_BROWSER\"},{\"name\":\"actions.capability.AUDIO_OUTPUT\"}]},\"isInSandbox\":true,\"availableSurfaces\":[{\"capabilities\":[{\"name\":\"actions.capability.SCREEN_OUTPUT\"},{\"name\":\"actions.capability.WEB_BROWSER\"},{\"name\":\"actions.capability.AUDIO_OUTPUT\"}]}],\"requestType\":\"SIMULATOR\"}",
      "delegatedRequest": {
        "delegatedRequest": ""
      }
    },
    "agentToAssistantDebug": {
      "agentToAssistantJson": "{\"conversationToken\":\"[\\\"requestinnercirclenotifications\\\"]\",\"expectUserResponse\":true,\"expectedInputs\":[{\"inputPrompt\":{},\"possibleIntents\":[{\"intent\":\"actions.intent.PERMISSION\",\"inputValueData\":{\"@type\":\"type.googleapis.com/google.actions.v2.PermissionValueSpec\",\"permissions\":[\"UPDATE\"],\"updatePermissionValueSpec\":{\"intent\":\"inner_circle_notification\"}}}],\"speechBiasingHints\":[\"$fish\",\"$lunar-event\",\"$log-type\",\"$lure\",\"$username\",\"$weather\",\"$lure-color\"]}],\"responseMetadata\":{\"status\":{\"message\":\"Success (200)\"},\"queryMatchInfo\":{\"queryMatched\":true,\"intent\":\"a89ed259-dc99-4ded-9567-5bf85b1a93ee\"},\"delegatedRequest\":{\"delegatedRequest\":\"{\\n  \\\"responseId\\\": \\\"5a1f3c7a-96cd-4ea2-91b0-04b232e916a0\\\",\\n  \\\"queryResult\\\": {\\n    \\\"queryText\\\": \\\"Send Updates\\\",\\n    \\\"action\\\": \\\"innercircle_notification_request\\\",\\n    \\\"parameters\\\": {\\n    },\\n    \\\"allRequiredParamsPresent\\\": true,\\n    \\\"fulfillmentMessages\\\": [{\\n      \\\"text\\\": {\\n        \\\"text\\\": [\\\"\\\"]\\n      }\\n    }],\\n    \\\"outputContexts\\\": [{\\n      \\\"name\\\": \\\"projects/lakelabsvoice/agent/sessions/ABwppHFkNV1WPWYYfituxrV-Lm5zUFYQXmqmzC9-iO5MdbIMl6xVkuBa1fpQa23BX9yMrsU_hvWH8rn6YQ/contexts/google_assistant_input_type_touch\\\"\\n    }, {\\n      \\\"name\\\": \\\"projects/lakelabsvoice/agent/sessions/ABwppHFkNV1WPWYYfituxrV-Lm5zUFYQXmqmzC9-iO5MdbIMl6xVkuBa1fpQa23BX9yMrsU_hvWH8rn6YQ/contexts/actions_capability_screen_output\\\"\\n    }, {\\n      \\\"name\\\": \\\"projects/lakelabsvoice/agent/sessions/ABwppHFkNV1WPWYYfituxrV-Lm5zUFYQXmqmzC9-iO5MdbIMl6xVkuBa1fpQa23BX9yMrsU_hvWH8rn6YQ/contexts/requestinnercirclenotifications\\\",\\n      \\\"lifespanCount\\\": 5\\n    }, {\\n      \\\"name\\\": \\\"projects/lakelabsvoice/agent/sessions/ABwppHFkNV1WPWYYfituxrV-Lm5zUFYQXmqmzC9-iO5MdbIMl6xVkuBa1fpQa23BX9yMrsU_hvWH8rn6YQ/contexts/actions_capability_audio_output\\\"\\n    }, {\\n      \\\"name\\\": \\\"projects/lakelabsvoice/agent/sessions/ABwppHFkNV1WPWYYfituxrV-Lm5zUFYQXmqmzC9-iO5MdbIMl6xVkuBa1fpQa23BX9yMrsU_hvWH8rn6YQ/contexts/actions_capability_web_browser\\\"\\n    }, {\\n      \\\"name\\\": \\\"projects/lakelabsvoice/agent/sessions/ABwppHFkNV1WPWYYfituxrV-Lm5zUFYQXmqmzC9-iO5MdbIMl6xVkuBa1fpQa23BX9yMrsU_hvWH8rn6YQ/contexts/actions_capability_media_response_audio\\\"\\n    }],\\n    \\\"intent\\\": {\\n      \\\"name\\\": \\\"projects/lakelabsvoice/agent/intents/a89ed259-dc99-4ded-9567-5bf85b1a93ee\\\",\\n      \\\"displayName\\\": \\\"innercircle_notification_request\\\"\\n    },\\n    \\\"intentDetectionConfidence\\\": 1.0,\\n    \\\"languageCode\\\": \\\"en-us\\\"\\n  },\\n  \\\"originalDetectIntentRequest\\\": {\\n    \\\"source\\\": \\\"google\\\",\\n    \\\"version\\\": \\\"2\\\",\\n    \\\"payload\\\": {\\n      \\\"isInSandbox\\\": true,\\n      \\\"surface\\\": {\\n        \\\"capabilities\\\": [{\\n          \\\"name\\\": \\\"actions.capability.SCREEN_OUTPUT\\\"\\n        }, {\\n          \\\"name\\\": \\\"actions.capability.MEDIA_RESPONSE_AUDIO\\\"\\n        }, {\\n          \\\"name\\\": \\\"actions.capability.WEB_BROWSER\\\"\\n        }, {\\n          \\\"name\\\": \\\"actions.capability.AUDIO_OUTPUT\\\"\\n        }]\\n      },\\n      \\\"requestType\\\": \\\"SIMULATOR\\\",\\n      \\\"inputs\\\": [{\\n        \\\"rawInputs\\\": [{\\n          \\\"query\\\": \\\"Send Updates\\\",\\n          \\\"inputType\\\": \\\"TOUCH\\\"\\n        }],\\n        \\\"arguments\\\": [{\\n          \\\"rawText\\\": \\\"Send Updates\\\",\\n          \\\"textValue\\\": \\\"Send Updates\\\",\\n          \\\"name\\\": \\\"text\\\"\\n        }],\\n        \\\"intent\\\": \\\"actions.intent.TEXT\\\"\\n      }],\\n      \\\"user\\\": {\\n        \\\"lastSeen\\\": \\\"2019-02-04T22:56:44Z\\\",\\n        \\\"locale\\\": \\\"en-US\\\",\\n        \\\"userId\\\": \\\"ABwppHFptFALNqLXxqWSOHQ9V9o9TOgeEkPNOU1akvPC2900EAFvalF7ANlRUiQHh1k1pvWmCo4UO0yDfQ\\\"\\n      },\\n      \\\"conversation\\\": {\\n        \\\"conversationId\\\": \\\"ABwppHFkNV1WPWYYfituxrV-Lm5zUFYQXmqmzC9-iO5MdbIMl6xVkuBa1fpQa23BX9yMrsU_hvWH8rn6YQ\\\",\\n        \\\"type\\\": \\\"ACTIVE\\\",\\n        \\\"conversationToken\\\": \\\"[]\\\"\\n      },\\n      \\\"availableSurfaces\\\": [{\\n        \\\"capabilities\\\": [{\\n          \\\"name\\\": \\\"actions.capability.SCREEN_OUTPUT\\\"\\n        }, {\\n          \\\"name\\\": \\\"actions.capability.WEB_BROWSER\\\"\\n        }, {\\n          \\\"name\\\": \\\"actions.capability.AUDIO_OUTPUT\\\"\\n        }]\\n      }]\\n    }\\n  },\\n  \\\"session\\\": \\\"projects/lakelabsvoice/agent/sessions/ABwppHFkNV1WPWYYfituxrV-Lm5zUFYQXmqmzC9-iO5MdbIMl6xVkuBa1fpQa23BX9yMrsU_hvWH8rn6YQ\\\"\\n}\"},\"delegatedResponse\":{\"delegatedResponse\":\"{\\\"payload\\\":{\\\"google\\\":{\\\"expectUserResponse\\\":true,\\\"systemIntent\\\":{\\\"intent\\\":\\\"actions.intent.PERMISSION\\\",\\\"data\\\":{\\\"@type\\\":\\\"type.googleapis.com/google.actions.v2.PermissionValueSpec\\\",\\\"permissions\\\":[\\\"UPDATE\\\"],\\\"updatePermissionValueSpec\\\":{\\\"intent\\\":\\\"inner_circle_notification\\\"}}}}}}\"}}}",
      "delegatedResponse": {
        "delegatedResponse": ""
      }
    },
    "sharedDebugInfoList": [
      {
        "name": "ResponseValidation",
        "debugInfo": "",
        "subDebugEntryList": [
          {
            "name": "MalformedResponse",
            "debugInfo": "expected_inputs[0].possible_intents[0].input_value_data: The intent the app is asking for permission to send updates for is not found..",
            "subDebugEntryList": []
          }
        ]
      }
    ]
  },
  "visualResponse": {
    "visualElementsList": [
      {
        "displayText": {
          "content": "Lake Labs isn't responding right now. Try again soon."
        }
      }
    ],
    "suggestionsList": [],
    "agentLogoUrl": ""
  },
  "clientError": 0,
  "is3pResponse": 1,
  "clientOperationList": [],
  "projectName": ""
}

Снимок экрана симулятора: enter image description here

1 Ответ

0 голосов
/ 12 февраля 2019

У меня есть действие с черновой версией и альфа-версией - текущий черновик работает правильно, но сохраненная альфа-версия дает те же expected_inputs[0].possible_intents[0].input_value_data: The intent the app is asking for permission to send updates for is not found.., с которыми вы работаете.

Вы включилина переключатель «Предварительный просмотр автоматически» в разделе «Интеграции» диалогового окна?Диалоговое окно> Интеграции> Google Assistant> Прокрутите вниз: Переключатель автоматического предварительного просмотра изменений

После этого (если вы этого еще не сделали) вы все еще получаете сообщение об ошибке, если попытаетесь выполнить следующее?

  1. Повторно выберите версию ПРОЕКТА вашего действия в Симуляторе (нажмите «ИЗМЕНИТЬ ВЕРСИЮ» и повторно выберите «ВЕРСИЯ - Черновик»), затем обновите Симулятор
  2. Еслиэто не работает, повторно сохраните намерение в Dialogflow, затем попробуйте выполнить шаги в # 1
  3. Если это не работает, повторно разверните functions, затем попробуйте выполнить шаги в # 1

Кроме того, это работает на физическом телефоне (это просто симулятор, который плохо себя ведет)?

Сделал бы это комментарий, так как это не полностью ответ, ноУ меня пока недостаточно репутации, поэтому ответьте:

...