gmail.replyToMessage replies to a message in its conversation, using that message’s recipient and conversation headers.
Example
automations/acknowledge-email.automation.ts
Reply-To address when present, otherwise to its From address. The action preserves the source subject and standard conversation headers 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".
Inputs accept compatible signals.
The action fails when the source message lacks a Gmail thread ID, subject, standard Message-ID, or both Reply-To and From headers.
The reply carries an authenticated automation origin. Gmail triggers don’t wake the automation that sent it, while other automations watching the mailbox still receive the event.
Output
ReturnsSignal<MessageMetadata>: