How can I set dynamically set delays based on the trigger payload?

I want to trigger a delayed notification, but the delay needs to be set dynamically instead of a constant in the workflow. Should I just create multiple workflows or is there a way to dynamically do this? Thanks
3 Replies
Gali Baum
Gali Baum9mo ago
Hi @ginger_lemon! You can override the delay unit and amount this way: https://docs.novu.co/workflows/delay-action#time-interval
Novu
Delay Action - Novu
More on how Delay Action Node works
Gali Baum
Gali Baum9mo ago
Depending on your usecase, you can also use scheduled delay with a path in the payload for a specific future date https://docs.novu.co/workflows/delay-action#scheduled-delay
Novu
Delay Action - Novu
More on how Delay Action Node works
ginger_lemon
ginger_lemon9mo ago
This is exactly what I need. Thank you