nlp - How to pass on multiple intents output to one single intent to execute
问题描述
Consider I want to build a system which plays audio and video
Intents I will have are
- Ask user what he/she wants (Audio or video)
- Play audio or video depending on previous intent.
I want to reuse the intent 2 (player for audio or video) without having two intents one for each audio and video.
I'm planning my intents and contexts like below
Bot: What you want to play
User: Play me audio
Bot: plays audio (using same player intent)
User: Play me video
Bot: plays video (using same player intent)
Is it possible? if so how do I do it?
解决方案
处理这个问题的最好方法不是通过不同的 Intent - 而是通过 Fulfillment。
意图是处理用户所说的,而不是如何回应他们所说的。Fulfillment 可让您查看已设置的参数并发送适当的响应。
推荐阅读
- java - SQLite 数据库未向数据库添加信息且未在 Java 中返回错误
- java - 使用 jmx prometheus javaagent 运行 Wildfly 16 实例并登录到 graylog 服务器
- logging - 通过 .NET Core 中 HttpClient 中的 DelegatingHandler 记录所有标头
- swift - 将选定的 indexpath.row 分配给另一个类中的变量
- sql - 在没有多个连接的情况下查找两个表中的差异
- python - Python 检查文件中的服务器并验证 dns 注册
- javascript - 与 reactjs 导航路由不匹配
- android - 从 PreferenceFragmentCompat 片段导航时查看故障
- python - 如何在 scikit-learn 中执行随机森林模型的交叉验证?
- variables - 由于全局变量,构建方法不会立即在颤振中调用