https://api.us.nylas.com/v3/workflowsCreate a workflow
Creates an application-level workflow.
Create workflow request
trigger_event*The event which triggers the workflow.
grant.expired and grant.deleted require a from sender address, because the grant that
triggered them can no longer send email. Every other trigger accepts a workflow without one.
Workflows have no condition or filter field, so an enabled workflow sends for every matching
event in its scope. High-volume triggers such as message.created fire for every message in
every mailbox the workflow covers.
fromDetails of the sender if the workflow should use transactional send. If not provided, the sender will be the grant associated with the trigger event.
A workflow with from.email must use an application-level template. If template_id points
to a grant-level template, the request returns 400 with the message
a Workflow with a from email must use an application-level template.