create_draft
Draft a new email without sending it. Optionally reply to an existing message to keep the draft in the same thread, auto-filling recipients and subject.
Instructions
Create a draft email (not sent). Returns the draft id. Give reply_to_message_id to draft a reply that sits inside the original's thread: recipient, subject, In-Reply-To, References and the thread id are taken from that message, so 'to' and 'subject' become optional overrides. Without it, 'to' and 'subject' are required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | ||
| to | No | ||
| bcc | No | ||
| body | Yes | ||
| html | No | ||
| account | Yes | Email address of the authorized Gmail account to act on. | |
| subject | No | ||
| from_addr | No | From address for the draft, e.g. a shared alias like support@yourcompany.com. Must be a verified send-as alias on this account, otherwise Gmail rewrites it to the account address when the draft is sent. Defaults to the account address. | |
| reply_all | No | With reply_to_message_id: put the original's other recipients in Cc. | |
| reply_to_message_id | No | Gmail id of the message being answered; the draft joins its thread. |