Skip to main content
gmail.sendDraft sends a draft created by gmail.draftEmail, gmail.draftReply, or a person.

Example

automations/send-approved-draft.automation.ts

Inputs

Inputs accept compatible signals. Pass the draftId returned by gmail.draftEmail, gmail.draftReply, gmail.getDraft, gmail.searchDrafts, or gmail.updateDraft. A draft’s messageId isn’t accepted here. After Gmail sends the draft, that draft no longer exists as an editable draft. The sent draft carries an authenticated automation origin, including drafts originally created by a person. Gmail triggers don’t wake the automation that sent it, while other automations watching the mailbox still receive the event.

Output

Returns Signal<MessageMetadata>: The output describes the sent message, not the now-consumed draft.