Using DialogFlow to trigger flows based on intention

(Michael Shillingford) #1

Hey everyone!

I’ve got my integration with Dialogflow working (Thanks Daniel!). The next step for me, after Dialogflow has discovered the user’s intention, is to trigger a flow based on that intention.

For example, if Dialogflow issues a response along the lines of “OK - so you want to book an appointment. Let’s get started!”, what would be the best method of triggering the appointment booking flow?

I’ve thought about detecting a keyword, setting an attribute etc but not sure what best practise is.

Thanks!

Michael

(Daniel Beckett) #2

Hi @Michael_Shillingford

You could use the Flow service to trigger another flow that uses a Flow trigger or New Message trigger. You’d Filter the flow action based on the returned intent from Dialogflow.