create_draft
Create an email draft for any connected account. For replies, pass replyToMessageId to auto-fill recipients and subject.
Instructions
Create a draft. For a reply draft, pass replyToMessageId (recipients/subject are derived; replyAll for reply-all).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | Recipients, each "Name <a@x.com>" or "a@x.com" | |
| to | No | Recipients, each "Name <a@x.com>" or "a@x.com" | |
| bcc | No | Recipients, each "Name <a@x.com>" or "a@x.com" | |
| from | No | Connected address or an available send-as address | |
| subject | No | Defaults to "Re: ..." when replying | |
| bodyHtml | No | HTML body | |
| bodyText | No | Plain-text body. Line breaks appear in the sent email. Keep each prose paragraph on one continuous line and separate paragraphs with blank lines. | |
| replyAll | No | With replyToMessageId: reply to all original recipients | |
| accountId | No | Account to operate on. Optional when exactly one account is connected. | |
| attachments | No | ||
| replyToMessageId | No | Message being replied to; threads correctly and computes recipients if "to" is omitted |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes |