Skip to main content

Gmail Reply To Email

Controlled node

Overview

The Gmail Reply To Email node sends a reply to an existing email thread using a connected Gmail account. It requires the messageId of the original email and supports adding recipients, modifying the subject, attaching files, and providing both plain text and HTML body content.

This node is useful for automated email responses, follow-up sequences, or threading conversations programmatically within your workflows.

Inputs

InputTypeDescriptionDefault
RunEventTriggers the node to send the email reply.-
ConnectionsDataThe Gmail connection to use for sending the reply. Configure this in the properties panel.-
Message IDTextThe ID of the message being replied to. Required to thread the reply correctly.-
Thread IDTextOptional. The thread ID of the conversation. If not provided, the system will attempt to infer it from the Message ID.-
ToTextPrimary recipient email address(es). Accepts a single email string or an array of email strings.-
CCTextCarbon copy recipient email address(es). Accepts a single email string or an array of email strings.-
BCCTextBlind carbon copy recipient email address(es). Accepts a single email string or an array of email strings.-
SubjectTextThe subject line for the reply.-
Body TextPlainTextThe plain text content of the email body.-
Body HTMLPlainTextThe HTML content of the email body (for rich formatting).-
AttachmentsDataFiles to attach to the reply. Accepts a single file object or an array of file objects. Each object must contain id and name properties.-

Outputs

OutputTypeDescription
DoneEventFires when the email reply has been successfully sent or if an error occurs during sending.
StatusDataContains a status string indicating success (success) or failure (failed: [error message]).

Runtime Behavior and Defaults

  • Email Validation: The node validates all email addresses provided in the To, CC, and BCC fields. If any email is invalid, the node will output a failure status and trigger the Done event.
  • Attachment Handling: Attachments must be file objects from the Intellectible library containing id and name properties. If a single attachment object is provided, it is automatically wrapped into an array.
  • Threading: If threadId is not provided, the node defaults to an empty string, allowing the Gmail API to infer the thread from the messageId.
  • Error Handling: If the send operation fails, the node catches the error and outputs failed: [error message] in the Status output, then triggers the Done event.

Example Usage

Scenario: Automatically reply to incoming emails with a standard acknowledgment.

  1. Use a Gmail Get Inbox node to fetch recent messages.
  2. Connect the messages output to extract the messageId and threadId from the email you want to reply to.
  3. Connect the Gmail Reply To Email node:
    • Set Message ID from the inbox results.
    • Set To to the original sender's email address.
    • Set Subject to "Re: [Original Subject]".
    • Set Body Text to your acknowledgment message.
    • Configure the Connections property with your Gmail connection.
  4. When the Run event fires (e.g., from a Start node or conditional logic), the reply will be sent to the same thread, and the Done event will trigger when complete.