1

I want to create a DialogFlow Response based on the parameter given

Example:

Intent:
Training:
    I want support as a $supporttype

where $supporttype is an entity. The desired answer should be dependend of the value of $supporttype

Response: (if $supporttype=="Gold")
        Yes, your question will be answered in 5 minutes.

or if $supporttype is not "Gold"

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

Is there any easy way to achieve this? Or do I have to make a web hook for such a feature?

Thanks!

Defarine
  • 293
  • 5
  • 13

2 Answers2

1

You need to use a webhook to create conditional responses.

There is a built-in code editor that can assist with this.

Prisoner
  • 49,922
  • 7
  • 53
  • 105
0

Late response, but maybe someone will find this answer useful if you prefer not having to use fulfillment webhooks and you only need to utilize one parameter.

https://stackoverflow.com/a/55926775/1011956

corylulu
  • 3,449
  • 1
  • 19
  • 35