Automations are currently in private alpha and only available to a limited
number of users. APIs might change before GA.To use the methods on this page, you must upgrade your Resend SDK:
npm install resend@6.10.0-preview-workflows.3
Contact us if you’re interested in testing
this feature.
A trigger is the first step in every Automation. It defines which event will start the Automation when received.When your application sends an event to Resend, every active Automation with a matching trigger will execute its workflow for that contact.
You can include a payload object with your event to pass data into the Automation. This data becomes available as variables in subsequent steps in the Automation using the event.* namespace.
In this example, event.amount, event.currency, and event.retryDate would be available in email templates, conditions, and other steps.View the Send Event API reference for the full endpoint specification.