Dialogflow es 是否可以基于DialogFlow中的实体创建上下文?
我想通过以下方式使用DialogFlow创建一个对话框: 比如说,我有以下实体:Dialogflow es 是否可以基于DialogFlow中的实体创建上下文?,dialogflow-es,Dialogflow Es,我想通过以下方式使用DialogFlow创建一个对话框: 比如说,我有以下实体: Entity loginType facebook google a.目的如下: Intent: Training: I want to sign in using facebook Output: Okay, I'm remebering that you want sign in using $loginType Output Context: $loginType 接下来,我想对输入上下文“
Entity loginType
facebook
google
a.目的如下:
Intent:
Training: I want to sign in using facebook
Output: Okay, I'm remebering that you want sign in using $loginType
Output Context: $loginType
接下来,我想对输入上下文“facebook”有一个意向,这样对话框就是关于通过facebook登录的。
这意味着:
Intent:
Input Context: facebook
Training: I see an error while logging in.
Output: ...
但是我看不到在意图期间基于参数/实体设置输出的方式。这可能吗
谢谢 问得好,语境运用得好。 您不能通过Intent editor直接执行此操作,但可以使用fulfillment来执行此操作。在webhook中,您可以获取
loginType
的参数,然后使用该名称创建输出上下文