Dialogflow es DialogFlow:根据输入的参数给出答案?

Dialogflow es DialogFlow:根据输入的参数给出答案?,dialogflow-es,Dialogflow Es,我想根据给定的参数创建DialogFlow响应 例如: Intent: Training: I want support as a $supporttype 其中$supporttype是一个实体。所需答案应取决于$supporttype的值 Response: (if $supporttype=="Gold") Yes, your question will be answered in 5 minutes. 或者如果$supporttype不是“黄金” 有什么简单

我想根据给定的参数创建DialogFlow响应

例如:

Intent:
Training:
    I want support as a $supporttype
其中$supporttype是一个实体。所需答案应取决于$supporttype的值

Response: (if $supporttype=="Gold")
        Yes, your question will be answered in 5 minutes.
或者如果$supporttype不是“黄金”

有什么简单的方法可以做到这一点吗?或者我必须为这样一个特性制作一个web钩子吗


谢谢

您需要使用webhook来创建条件响应


有一个内置的代码编辑器可以对此提供帮助。

延迟响应,但是如果您不想使用fulfillment Webhook,并且只需要使用一个参数,可能有人会发现这个答案很有用

Response: (if $supporttype!="Gold")
        Your question will be put in the queue.