Multiple choice answer not triggering flow

(Donovan) #1

I have a situation where I’d like the presented choice to trigger one of three flows. When I type the text of the answer manually it does trigger the flow - but when I select the answer from the presented options, the trigger doesn’t work.

The text in the option is exactly the same as the text I enter manually yet the manual entry only triggers the flow.

I’ve added a “Flow triggered by keyword” thing to the flow with value “{{persona_question.parsed_answer}}” but it doesn’t seem to work. Any tips?

(Kellsey Shaw) #2

Hi Donovan,

You’ve almost there but you just need to make a slight change to your flows. When a bot asks a question the next thing that is sent is taken as the answer and won’t trigger a flow or do anything outside the question so you need to use the Flow service.

All you need to do is change the trigger of the flow you are trying to start to the Flow trigger. And in the flow where you asking the question, add a Flow task after the question. You can use the answer as the input for the keyword of the Flow task.

Hopefully, this all makes sense

(John Jackson) #3

Kellsey’s right here - I think part of the problem is that Flow > Trigger by Keyword is confusing, as the keyword mentioned is not one set up for Bot > New Message, but actually a keyword defined under Flow > New Keyword.

We’re got plans to rename the Flow trigger and action so the naming doesn’t cause confusion.

(Tim) #4

I’m struggling with with as well and I’m not much clearer from your description. I’m using this approach to loop through a list of questions (do you have a loop within a flow option?). But I can’t get Math Part 1 to trigger Math Part 2 when I get to the end of Math Part 1, the trigger is the word ‘another’. When I select from a question, it doesn’t work. When I type it, it does. Any ideas?

(Kellsey Shaw) #5

Hi Tim,

Just a bit of a mix up with the triggers. The Flow keyword will only trigger a flow using the Flow trigger. So in your Maths part 2 flow, you just need to swap out your New Message trigger for a Flow trigger.

You’ll need to update any actions that use the response path in the flow after you’ve changed the trigger. They’ll be highlighted in red so you know which ones they are.

Should only take a couple of minutes to fix :thumbsup: