Skip to main content
reply answers one Gmail message and keeps the response in its conversation. Use it when you know exactly which message should determine the reply recipient and conversation headers.

Example

automations/acknowledge-email.automation.ts
Gmail sends the reply to the source message’s Reply-To address when present, otherwise to its From address. The source subject and RFC conversation headers are preserved automatically.

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.
replyAll: true may notify every original To and Cc recipient. Leave it off for a private reply.
The action fails when the source message lacks a Gmail thread ID, subject, RFC Message-ID, or both Reply-To and From headers.

Output

Returns a Signal<MessageMetadata> with: