Skip to main content

Gmail

Actions use a linked Google account with Gmail scopes requested on each node.

Search Messages

Inputs
  • Query — Same syntax as the Gmail search box (from:, label:, is:unread, etc.).
  • Max results — 1–100 (default 10).
  • Include spam & trash — Broadens the search space.
  • After date / Before date — Optional bounds on message time.
Output: messageIds — repeatable list of ids to pass to Get Message by ID or other actions.

Get Message by ID

Inputs
  • Message ID — Gmail or RFC822 id string.
  • Download attachments — When on, exposes attachments outputs as files; when off, no attachment list.
Outputs: gmailMessageId, threadId, senderName, senderAddress, subject, plainText, html; optional attachments (repeatable files).

Send Email

Sends a new message from the account. Inputs
  • Google account (send scope).
  • Recipients — At least one To address.
  • CC — Optional list of CC addresses.
  • Subject / Body — Message content. Body type (plain/HTML, etc.) comes from Body Type options on the node.
  • Attachments — Optional list of files.
Outputs
  • messageId — Gmail message ID of the sent mail.
  • threadId — Thread ID (useful for Send Reply to Thread or later lookups).

Draft Email

Inputs: Account (compose scope); To and optional CC lists; optional subject / body; body type; optional attachments. Output: messageId of the draft (not sent).

Send Reply

Inputs: Account (send); messageId to reply to; reply all; body; body type; optional attachments. Output: replyMessageId of the sent message.

Draft Reply

Inputs: Same as Send Reply (messageId, reply all, optional body, body type, attachments) but uses compose scope. Output: replyMessageId — id of the draft reply.

Send Reply to Thread

Inputs: Account (send + read metadata); threadId; reply all; body; body type; attachments. Replies in the thread (targets the latest message in that thread). Output: replyMessageId — id of the sent reply. Use threadId from Get Message by ID, Send Email, or triggers.

Forward

Forwards a message to new recipients.

Star Message / Unstar Message

Toggle starred state.

Mark as Read / Mark as Unread

Read state.

Mark as Important / Unmark as Important

Importance flag.

Trash Message / Untrash Message

Moves to or restores from trash.

Delete Draft

Removes a draft.

Add Label / Remove Label

Label management on a message. (Remove Label removes a label from the message.)

Has Label?

Whether a label is applied.

Is Unread? / Is Starred? / Is Important?

Boolean state checks.

Remove Reply Text

Strips quoted reply lines from plain-text email content (best-effort).