【问题标题】:Conversation always ending after the welcome message from the action对话总是在动作的欢迎信息之后结束
【发布时间】:2016-12-08 16:37:47
【问题描述】:

我正在使用 Node.js 客户端库来编写我的操作,但是在第一条消息之后麦克风就关闭了,我从来没有从用户那里得到答案。 这是我正在使用的代码:

let intent = assistant.getIntent();
switch (intent) {
  case WELCOME_INTENT:
    assistant.tell(‘Hi! Tell me something and I’ll repeat it.');
    break;
}

【问题讨论】:

    标签: actions-on-google


    【解决方案1】:

    当您期望用户回复时,您应该使用assistant.ask()assistant.tell() 方法向用户朗读文本并通过关闭麦克风结束对话。

    更多详情请访问https://developers.google.com/actions/develop/sdk/dialogs-and-fulfillment

    【讨论】:

      猜你喜欢
      • 2012-10-16
      • 2021-09-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-26
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多