Triggered Flows are a special sort of Flow executed based on recipient activity. For example, if a recipient signs up for a newsletter and their Person Data changes to 'SUBSCRIBED', you could set up a Trigger Flow to execute and send them a welcome email.
When a Flow should trigger, it's set in the Event as a Side Effect. You can read more about working with side effects here and how to add a trigger to a Flow here.
While you're testing the set up of a triggered Flow, you might see that your Flow isn't executed as planned.
In this article, you'll find information about:
How to Investigate a Failed Triggered Flow
Normally, a triggered Flow is set up with the Event set to 1. This means that when an Event occurs for the first time and every time after, the Flow is triggered. Therefore, you should first check that:
- The correct Event is set as the trigger on your Flow.
- The Event is set to '1'. In special cases, you might have set a different number here.
Missing Reset
If you want recipients to be able to trigger the Flow multiple times, you'll need to apply a reset to the Event. This is usually done by setting 'After a number of times triggered' to 1, which ensures that the counter resets as soon as the Flow has been executed. You should, therefore:
- Verify the Event has a reset if needed
- Verify that the reset settings are correct
Incorrect Event Name
Events can trigger your Flow from different sources. For example, that could be by a recipient clicking a link in an email or by an API call. You can read more about Agillic's API calls in the Developers Portal. As the name of the Event is an essential identifier of the Event, make sure to:
- Verify that the triggered Event is using the correct name. You can do this by checking that the API is using the correct Event name or that the Event attached in your email is using the correct Event.
Re-using a Test Recipient
A common reason for a Flow not executing is if you test the Flow multiple times with the same recipient in a Flow. This Flow may not be set up to allow the same recipient to trigger the same action multiple times. Therefore, you should:
- Verify that the Event doesn't have a reset
- Check if the Event counter for the recipient is higher than 0. Learn how to investigate a recipient here.
To clear a recipient's Event counter, you will need to clear the recipient's Activity Data. You can learn more about how to clear Activity Data here.