Beginner, Trigger a flow

#1

Hello all,

I’ve looked at this tutorial but I’m not sure how to use the “trigger a flow” action. I want to create a chatbot that that can accept user input, store it in a variable and be used later.

(Karen Barker) #2

Hi @laurent,

To create a flow like this you’ll need to use either a “New Message” trigger or the catch-all trigger. The “New Message” trigger will trigger the flow whenever a user sends a specific message (specified in the set up of the trigger) to the bot, whereas the Catch all flow will trigger no matter what message is sent to the bot by the user.

You could then use the Ask a Question action to accept the users input you want to store. You’ll then need to Set an Attribute to the value of the answer of the question. Attributes are available as an output of any flow trigger or if you’re using the attribute later in the same flow you can reference the output value of the Set Attribute action.

There’s a flow here which you can install which will hopefully help. :slight_smile:

#3

Thanks second Karen in my life that make everything better. I understand how to store attributes values but I was hoping to trigger the 2nd flow in a nested way. I want the trigger to activate when I response with “yes” to a question leading into a new flow which welcomes with “Here are your options.”

(Daniel Beckett) #4

To trigger another flow you can use the Flow service. You’d ask the question in your flow and then use that answer with a Filter to decide whether to pass the user into the other flow.

#5

Thanks for the help my problem has been solved. I’m unsure how to close/ or mark the thread as resolved.

[[RESOLVED]]