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
Hi @ginger_lemon! You can override the delay unit and amount this way: https://docs.novu.co/workflows/delay-action#time-interval
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
This is exactly what I need. Thank you