GoTo Label Loop firing too early

(JI) #1

Hi All

I followed this superb article https://medium.com/flowxo/using-label-and-goto-a-label-in-flow-xo-b6fc8e2b6086 to create 2 GoTo Label loops in a conversational flow to handle date input by users. For each loop I set up 1) Label Action, 2) Send a Message Action, 3) Ask a Question Action, 4)Parse Date Action, and 5) Goto Label Action in that order. Once the flow enters the loop, it performs smoothly doing exactly what is expected.

However, before the flow enters the loop, the Send a Message Action created in 2) above fires on the Ask a Question Action immediately before the loop, basically sending a redundant “I was expecting a date after…, could we try again?” message but continuing the flow anyway. This is happening for both loops.

Any ideas? Thanks in advance!

(Karen Barker) #2

Hi,

The flow will always run in a linear fashion, the label doesn’t stop that section running - it just means that if a GoTo label is hit either earlier or later in the flow it will jump forward/back to that location.

If you only want action 2 to run after an incorrect date is received then you’ll need to place this after action 4 with a filter on to check if the Parse Date Action is correct or not.

I hope this helps. If not please do email us at support@flowxo.com and include a share link for your flow and we’ll happily help further.