create_automation
Create a draft automation that runs only after activation. Define trigger and up to 20 email, wait, or stop steps.
Instructions
Create an automation DRAFT (it runs nothing until activate_automation). trigger is one of {type:"contact_created"} | {type:"event", eventName} | {type:"inbound_received", inboxAddress?}. steps is 1-20 of {type:"email", fromEmail, templateId? XOR subject+html/text} | {type:"wait", minutes} | {type:"stop_if", condition}. A contact enters each automation at most once. Drafting is free on every plan.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Internal automation name. | |
| steps | Yes | The program, e.g. [{"type":"email","subject":"Welcome","html":"<p>hi</p>","fromEmail":"hi@acme.com"},{"type":"wait","minutes":1440}]. | |
| sender | No | Product/sender externalId sent as X-Drin-Sender. Required only for account-wide API keys; overrides the server's default sender. | |
| topicId | No | Preference topic gate for the email steps. | |
| trigger | Yes | What starts a run, e.g. {"type":"event","eventName":"order_placed"}. | |
| approvalRequired | No | Default true — activation parks behind an approval email the owner answers by replying APPROVE. Set false ONLY when the human has explicitly waived approval. |