Gmail nodes
The 6 workflow nodes in Gmail: what each does, its inputs and outputs, and its settings.
Nodes marked Needs a connected account run only after you connect that service.
| Node | Does |
|---|---|
| Create Draft Email | Transforms or writes data |
| Get Gmail Attachments | Transforms or writes data |
| Modify Gmail Labels | Transforms or writes data |
| Read Email | Reads data |
| Read Emails | Reads data |
| Send Email (Gmail) | Ends a branch |
Create Draft Email
Transforms or writes data · Needs a connected account · Type in the API: gmail/createDraft
Leave a message in the user's Drafts folder for a human to send, instead of sending it.
| Inputs | Outputs |
|---|---|
| 1 | 1 |
| Setting | Type | Default | Description |
|---|---|---|---|
| Bcc | string | — | — |
| Body | string | — | — |
| Cc | string | — | — |
| Body is HTML | boolean | false | — |
| Subject | string | — | — |
| Reply inside thread | string | — | A Gmail thread ID. Blank starts a new thread. |
| To | string | — | Comma-separated. May be blank on a draft. |
Get Gmail Attachments
Transforms or writes data · Needs a connected account · Type in the API: gmail/getAttachments
Download the attachments of the connected messages — one row per file, with the bytes, in the same shape as an uploaded file. Send the rows to PDF Extract or Image Analysis. Needs a Google Workspace connection with Gmail read access.
| Inputs | Outputs |
|---|---|
| 1 | 1 |
| Setting | Type | Default | Description |
|---|---|---|---|
| Max size per file (bytes) | number | 20971520 | Attachments larger than this are skipped |
| Max messages | number | 200 | Upstream rows to process |
| Message ID | string | — | Leave blank to use the id column of the connected rows |
| File types | string | "pdf,image" | Comma list of groups (pdf, image, document, spreadsheet, text, email, all) or MIME types |
Modify Gmail Labels
Transforms or writes data · Needs a connected account · Type in the API: gmail/modifyLabels
Mark the connected messages read or unread, archive or star them, or add and remove labels — the "processed" marker for an inbox workflow. Needs a Google Workspace connection with Gmail modify access.
| Inputs | Outputs |
|---|---|
| 1 | 1 |
| Setting | Type | Default | Description |
|---|---|---|---|
| Action | One of: markRead, markUnread, archive, star, unstar, label | "markRead" | — |
| Add labels | string | — | Label IDs to add, comma-separated (for Add / remove labels) |
| Continue on error | boolean | false | Keep going and mark failed rows instead of stopping the run |
| Message ID | string | — | Leave blank to use the id column of the connected rows |
| Remove labels | string | — | Label IDs to remove, comma-separated |
Read Email
Reads data · Needs a connected account · Type in the API: gmail/readEmail
Fetch one email in full — body and attachment details. Picks the message ID up automatically from a connected Read Emails node.
| Inputs | Outputs |
|---|---|
| 1 | 1 |
| Setting | Type | Default | Description |
|---|---|---|---|
| Trim body to (characters) | number | 0 | 0 keeps the whole body. |
| Include attachment details | boolean | true | — |
| Message ID | string | — | Leave blank to use the id column from the connected node. |
| Which upstream row | number | 0 | 0 = first row, -1 = last row. |
Read Emails
Reads data · Needs a connected account · Type in the API: gmail/readEmails
Search a Gmail mailbox — by sender, subject, keywords, labels, attachments and date range — and output one row per email.
| Inputs | Outputs |
|---|---|
| 1 | 1 |
| Setting | Type | Default | Description |
|---|---|---|---|
| Trim body to (characters) | number | 0 | — |
| Received | string | "last_30_days" | Gmail searches by calendar day in the timezone below. |
| Custom end | string | — | — |
| Skip chat messages | boolean | true | — |
| Exclude words | string | — | — |
| Attachment filename contains | string | — | — |
| From | string | — | Comma-separated senders; any match. |
| Has an attachment | boolean | false | — |
| Marked important only | boolean | false | — |
| List attachment details | boolean | false | — |
| Include the message body | boolean | false | — |
| Keywords | string | — | Matches subject and body. |
| Labels | array | — | Emails must carry every label selected. |
| How many emails | number | 25 | 1–500. |
| Larger than (MB) | number | 0 | — |
| Gmail query | string | — | Exactly what you'd type in Gmail's search box. |
| Read state | One of: any, unread, read | "any" | — |
| Search mode | One of: simple, advanced | "simple" | — |
| Order rows | One of: newest, oldest | "newest" | — |
| Starred only | boolean | false | — |
| Custom start | string | — | — |
| Subject contains | string | — | — |
| Timezone | string | — | IANA name, e.g. America/Chicago. Blank = UTC. |
| To | string | — | — |
Send Email (Gmail)
Ends a branch · Needs a connected account · Type in the API: gmail/sendEmail
Send an email from the connected Gmail account. Compose messages with a recipient, subject, and body.
| Inputs | Outputs |
|---|---|
| 1 | 1 |
| Setting | Type | Default | Description |
|---|---|---|---|
| BCC | string | — | BCC recipients, comma-separated (optional) |
| Body | string | — | Email body text or HTML |
| CC | string | — | CC recipients, comma-separated (optional) |
| HTML Body | boolean | false | Treat the body as HTML instead of plain text |
| Subject | string | — | Email subject line |
| To | string | — | Recipient email address(es), comma-separated |