dialogflow-es - 如何使用 facebook 循环在 Dialogflow 中制作自定义有效负载,返回到先前的意图?
问题描述
我有一个对话流程设置为使用 Dialogflow 作为聊天机器人工作,当您到达对话结束时,您可以循环回到流程的开头或结束对话。在环回阶段,我们目前在有效载荷中有这个:
{
"type": "backTo",
"intent": "hello"
}
我认为打招呼会触发更早的意图并再次开始流程。
解决方案
Remember that Intents are based on what the user does. So it doesn't really make sense to say that your code is triggering an earlier Intent.
Instead, just send back a reply indicating you're starting over and don't end the conversation. If appropriate, you can also set the context so an earlier Intent that has this as the Input Context matches.
推荐阅读
- javascript - 基于第一个下拉菜单的多选动态选项
- amazon-web-services - AWS QuickSight 编程访问
- pandas - GroupBy 功能不适用
- java - 在正则表达式中转义与号
- r - 如何将分组变量转换为 R 中的列?
- ios - 具有动态高度和宽度的 UITableView Cell 未正确重用
- node.js - 我如何阅读嵌入数据 discord.js
- javascript - 如果 firebase 规则设置为 auth !=null,如何检索 AngularList
- php - 用户付款后如何更新订单状态
- oracle-cloud-infrastructure - 使用 python-sdk 时出现 oci.exceptions.ServiceError