Email Actions
Sending an Email (from Decoder)
What it does: Sends email from Decoder’s system address (AWS SES). Best for automated notifications and system-generated emails.
Inputs
- To (required) — Recipient email address(es). Comma-separated or list for multiple.
- Subject (required) — Email subject line. Can include variables.
- Body (required) — Email body (plain text or HTML). Can include variables.
- CC (optional) — Carbon copy recipients.
- BCC (optional) — Blind carbon copy recipients.
- Attachments (optional) — Files to attach (from variables or file steps). Check product limits for size and count.
Outputs
Confirmation that the email was sent and identifiers for tracking or logging.
Output schema
- messageId — Unique ID assigned by the sending system (e.g. SES message ID).
- sentAt — Timestamp when the email was sent (ISO or epoch).
- recipients — List or string of recipient addresses that were sent to.
Send Gmail Email / Send Office365 Email
What it does: Sends email from your authenticated Gmail or Office365 account. Keeps your email identity.
Inputs
- To (required) — Recipient email address(es).
- Subject (required) — Subject line. Can include variables.
- Body (required) — Email body (plain or HTML). Can include variables.
- CC (optional) — Carbon copy recipients.
- BCC (optional) — Blind carbon copy recipients.
- Display Name (optional) — Sender display name (e.g. “Jane <jane@company.com>”). Overrides default from the connected account if supported.
- Attachments (optional) — Files to attach (from variables or file steps).
Outputs
Message ID and (for Gmail) thread ID so you can reference the sent message or thread in later steps.
Output schema
- messageId — Unique ID of the sent message.
- threadId (Gmail) — ID of the thread this message belongs to. Use for “reply in thread” or follow-up steps.
Using an Email Assistant
What it does: Uses AI to compose an email (draft or send).
Inputs
- Instructions / Prompt (required) — What the email should say (e.g. “Thank the customer for their feedback and offer a call”). Can reference context variables.
- Recipient context (optional) — Who the email is for (name, company, previous thread) so the AI can personalize.
- Tone (optional) — Desired tone (e.g. professional, friendly, concise).
- Length (optional) — Short, medium, or long. Affects how much the AI writes.
Outputs
The composed subject and body (and optionally sent confirmation if the step sends the email). Use for review or to pass to a “Send Email” step.
Output schema
- subject — Composed subject line.
- body — Composed email body (plain or HTML).
- sent (if step sends) — Boolean or confirmation (e.g. messageId) when the step is configured to send.
Email Approval
What it does: Sends an approval request by email and pauses the automation until the recipient approves or rejects. Use for human-in-the-loop approvals when the approver is reached by email. Inputs typically include recipient(s), message body, and approve/reject options; output includes the decision and optionally the responder. See your step configuration for the exact schema.
Gmail – Create Draft, Retrieve Emails, Set Label
What it does: Gmail-specific operations: create a draft, retrieve emails from inbox/labels, or apply a label to messages.
Inputs
- Operation — Which action: Create Draft, Retrieve Emails, or Set Label (dropdown or step variant).
- Create Draft: To, Subject, Body (required). Optional: CC, BCC. Body can use variables.
- Retrieve Emails: Inbox or Label (optional) — which folder/label to read. Max results (optional). Query (optional) — Gmail search query (e.g. “is:unread from:boss@company.com”).
- Set Label: Message IDs (required) — which messages to label (from a previous step). Label (required) — Gmail label name or ID to apply.
Outputs
For Create Draft: draft ID and optional link. For Retrieve: list of email objects. For Set Label: success or per-message result.
Output schema
- Create Draft: draftId — Gmail draft ID; url (if exposed) — link to open the draft.
- Retrieve Emails: emails (array) — each with id, from, to, subject, body/ snippet, date, labels.
- Set Label: success — boolean or count; messageIds — list of affected message IDs (if exposed).
Office365 – Create Draft, Retrieve Emails, Categorize
What it does: Office365/Outlook operations: create a draft, retrieve emails from a folder, or set category on messages.
Inputs
- Operation — Which action: Create Draft, Retrieve Emails, or Categorize (dropdown or step variant).
- Create Draft: To, Subject, Body (required). Optional: CC, BCC.
- Retrieve Emails: Folder (optional) — e.g. Inbox, Sent. Filters (optional) — by from, subject, date. Max results (optional).
- Categorize: Message IDs (required) — from a previous step. Category (required) — Outlook category name or ID to apply.
Outputs
For Create Draft: draft ID. For Retrieve: list of messages. For Categorize: success or per-message result.
Output schema
- Create Draft: draftId — Outlook draft item ID.
- Retrieve Emails: emails (array) — each with id, from, to, subject, body, date, folder.
- Categorize: success — boolean or count; messageIds (if exposed) — list of affected IDs.