Selecting between flows

(Joe) #1

Hi, I’m just starting with flowxo. I’m trying to write a bot that will selectively switch between two different flows. For example suppose i have a parent flow:

“What do you want for lunch?”

and two child flows:

“Pizza” and “Hamburger”.

Now in the “lunch” flow I ask a question “what do you want for lunch” and have two choices: pizza or hamburger. After selecting either I want to route to the associated child flow.

I tried to use “trigger a flow” but I can’t figure out how to route things.

(Joe) #2

I think I found the answer but hopefully someone can confirm my method is correct.
I have two triggers at the end of my parent flow and I use filters on each so they’re activated for only one of the selections each.

Then on the two child flows I start them with matching triggers to the parent triggers.

(Daniel Beckett) #3

Hi Joe,

What you described sounds right :smile:

You use trigger a flow with a matching keyword for the flow that you want to run. You’d have two trigger a flow actions that both use filters and run the relevant one based on the answer the user gave tot he question.