【问题标题】:how to make intent configured for updates(push notfications) in google actions?如何在谷歌操作中为更新(推送通知)配置意图?
【发布时间】:2018-07-18 19:49:33
【问题描述】:

我已按照https://developers.google.com/actions/assistant/updates 上给出的所有步骤进行操作

但是当我尝试测试对话时发送 api https://actions.googleapis.com/v2/conversations:send?access_token="My_Access_Token"

我遇到以下错误:

{ “错误”: { “代码”:400, "message": "目标意图 Intent_name 不可更新。请检查意图是否已配置更新。", “状态”:“INVALID_ARGUMENT” } }

【问题讨论】:

  • 您是否检查过 Intent 已配置为进行更新?

标签: actions-on-google dialogflow-es google-assistant-sdk api-ai


【解决方案1】:

我遇到了同样的问题。

对我来说,解决方案是在目标中添加“语言环境”字段。

let notification = {
    userNotification: {
        title: 'titolo',
    },
    target: {
        userId: userId,
        intent: intent,
        locale: 'it',
    }
};

来源:Target

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-09-16
    • 2018-03-06
    • 1970-01-01
    • 2021-06-27
    • 1970-01-01
    • 1970-01-01
    • 2013-03-03
    相关资源
    最近更新 更多