Catchall triger is looping

(Jeffrey Red) #1

Hello there!
So I’ve created a flow and used “catchall” trigger. The bot is asking few questions and then I’ve set “Wait for 1 day” action. I assume that bot should wait for 1 day. That’s how I want my bot to behave, but in my case when I send a new message to the bot it starts running the flow again.
How do I prevent this ?

Filtering users
(Daniel Beckett) #2

Hi @jeff

The wait action only delays the following actions inside that flow rather than the flow itself from triggering.

One way to handle your scenario is to set an Attribute just before your wait action, e.g. Started = True and then after the wait action set the attribute back to Started = False so that your trigger can have a Filter to only run if Started = False.

So it would look something like

Trigger Catchall (IF Attribute ‘Started’ Is Not Equal to True)
Send Message
Ask Questions etc…
Set Attribute ‘Started’ to True
Wait 1 day
Set Attribute ‘Started’ to False