draftReply creates an unsent reply to a specific Gmail message. It derives
the recipient, subject, and conversation headers from that message, which keeps
the draft attached to the original thread.
Example
automations/draft-inbox-reply.automation.ts
messageId must identify the message being answered, not merely another
message in the same thread.
Inputs
Recipient is an email string or { address: string; name?: string }.
Attachment is a File or an object containing file with optional
filename, contentId, and disposition: "attachment" | "inline".
Every input, including account, also accepts a compatible Signal.
Gmail must return the source message’s thread ID, subject, RFC Message-ID, and
either Reply-To or From header. The action fails if those reply headers are
missing.
Output
Returns aSignal<DraftIdentifier> with: