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
| Input | Type | Description | Default |
|---|---|---|---|
| Run | Event | Triggers the node to send the email reply. | - |
| Connections | Data | The Gmail connection to use for sending the reply. Configure this in the properties panel. | - |
| Message ID | Text | The ID of the message being replied to. Required to thread the reply correctly. | - |
| Thread ID | Text | Optional. The thread ID of the conversation. If not provided, the system will attempt to infer it from the Message ID. | - |
| To | Text | Primary recipient email address(es). Accepts a single email string or an array of email strings. | - |
| CC | Text | Carbon copy recipient email address(es). Accepts a single email string or an array of email strings. | - |
| BCC | Text | Blind carbon copy recipient email address(es). Accepts a single email string or an array of email strings. | - |
| Subject | Text | The subject line for the reply. | - |
| Body Text | PlainText | The plain text content of the email body. | - |
| Body HTML | PlainText | The HTML content of the email body (for rich formatting). | - |
| Attachments | Data | Files 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
| Output | Type | Description |
|---|---|---|
| Done | Event | Fires when the email reply has been successfully sent or if an error occurs during sending. |
| Status | Data | Contains 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
idandnameproperties. If a single attachment object is provided, it is automatically wrapped into an array. - Threading: If
threadIdis not provided, the node defaults to an empty string, allowing the Gmail API to infer the thread from themessageId. - 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.
- Use a Gmail Get Inbox node to fetch recent messages.
- Connect the
messagesoutput to extract themessageIdandthreadIdfrom the email you want to reply to. - 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.
- 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.