Skip to main content
gmail.getDraft returns a draft with its parsed message for review, update, or sending.

Example

automations/load-draft.automation.ts

Inputs

Inputs accept compatible signals. Pass the draftId returned by gmail.draftEmail, gmail.draftReply, gmail.searchDrafts, or gmail.updateDraft. A draft’s messageId isn’t accepted here. The action fails if Gmail returns an incomplete draft or message.

Output

Returns Signal<Draft>:

Message

Mailbox is { address: string; name?: string }. MessageHeader is { name: string; value: string }. Each GmailAttachment contains: