Actions26
Draft → Create
AI-generatedSummary
Create a Gmail draft with the given subject, message type, and body, optionally adding recipients, CC/BCC, reply-to, from alias, thread ID, and attachments.
Inputs
- subject (required) — Subject line of the draft email.
- emailType (required) — Whether the message body is plain text or HTML.
- message (required) — Body of the email; treated as plain text or HTML based on Email Type.
- sendTo — Comma‑separated list of recipient email addresses (To field).
- ccList — Comma‑separated list of CC recipient email addresses.
- bccList — Comma‑separated list of BCC recipient email addresses.
- fromAlias — Gmail alias to send from; select from list or provide an ID via expression.
- replyTo — Email address for replies (Reply‑To header).
- threadId — ID of an existing thread to which the draft will be attached.
- options.attachmentsUi — Attachments to include; each entry specifies the input binary property name (multiple values allowed, comma‑separated).
Output shape
object
Returns the created Gmail draft resource containing at least the draft ID, message ID, and thread ID.
Examples
Example 1: Create a simple text draft
Set Email Type to Text, provide Subject and Message, optionally fill To/CC/BCC.