Connect Gmail to Siftree.

Gmail offers private and secure email by Google at no cost, for business and consumer accounts.

Connect

Read from your Gmail account

Sign in once. Siftree reads your records and reacts to new events as they happen.

  • Download Attachment

    Download a Gmail message attachment to /tmp and return its path + metadata. File Stash syncs the file and exposes a presigned download URL so the caller can retrieve it. Call Find Emails (with format: "full" ) or Get…

  • Find Emails

    Search the user's Gmail mailbox with Gmail's native query syntax and return matching messages (headers + snippet by default; full bodies when requested). Use this tool for every "find", "search", "list my", or "show…

  • Get Current User

    Returns the authenticated Gmail user's name, email address, and mailbox stats (total messages and threads). Call this first when the user says 'my emails', 'my inbox', or needs identity context. Use the returned…

  • Get Send As Alias

    Get a send as alias for the authenticated user.

  • Get Thread

    Fetch an entire Gmail thread (conversation) by thread ID — returns every message in order with headers, decoded body text, and attachment metadata. Use this after Find Emails when the user wants the full conversation…

  • List Filters

    Includes each filter's id, criteria (what it matches) and action (what it does to matching mail). Call this before Delete Filter to find the id of the filter to remove, or before Create Filter to check whether an equivalent filter already exists. Returns an empty filter list (or no filter key) when the user has no filters, and more

  • List Labels

    List every label in the authenticated user's mailbox (system labels like INBOX , SENT , TRASH , STARRED , UNREAD and user-created labels). Call this before Modify Labels or Find Emails when you need to target a label…

  • List Send As Aliases

    List all send as aliases for the authenticated user.

  • New Attachment Received(Trigger)

    Emit new event for each attachment in a message received. This source is capped at 100 max new messages per run.

  • New Email Matching Search(Trigger)

    Emit new event when an email matching the search criteria is received. This source is capped at 100 max new messages per run.

Show all 13
  • New Email Received(Trigger)

    Emit new event when a new email is received.

  • New Labeled Email(Trigger)

    Emit new event when a new email is labeled.

  • New Sent Email(Trigger)

    Emit new event for each new email sent. (Maximum of 100 events emited per execution)

Act

Take action in Gmail

Agents update records and send messages for you, automatically, as drafts, or after you approve.

  • Add Label to Email

    Add label(s) to an email message.

  • Archive Email

    Archive an email message.

  • Bulk Archive Emails

    Archive multiple emails at once.

  • Create Draft

    Create an unsent draft in the authenticated Gmail account. Same parameter shape as Send Email — the difference is the message is saved to Drafts instead of being sent. For a reply-draft, pass inReplyToMessageId (from…

  • Create Filter

    Create a Gmail filter that automatically acts on incoming mail matching the given criteria. Provide at least one criterion and at least one action. Criteria are combined with AND: a message must match every criterion…

  • Create Label

    Create a new user label in the authenticated Gmail mailbox and return its ID. Call this before Modify Labels whenever the label the user wants to apply doesn't yet exist — List Labels will tell you what's already…

  • Delete Email

    Moves the specified message to the trash.

  • Delete Filter

    Permanently delete a Gmail filter from the authenticated user's settings. Mail already processed by the filter is not changed; the filter simply stops applying to future incoming mail. The Gmail API deletes by filter…

  • Delete Label

    Immediately and permanently delete a user-created label from the authenticated Gmail mailbox, removing it from every message and thread it was applied to. Only user-created labels can be deleted — Gmail's built-in…

  • Modify Labels

    Add and/or remove labels on one or more Gmail messages in a single call. In Gmail, most inbox-state operations are label mutations under the hood, so this one tool covers archive / trash / untrash / star / unstar /…

Show all 14
  • Remove Label from Email

    Remove label(s) from an email message.

  • Send Email

    Send a new email OR reply to an existing thread from the authenticated Gmail account. For a fresh message, set to / subject / body ; leave inReplyToMessageId blank. To reply to a thread, pass the id of any message in…

  • Update Signature for Email in Organization

    Update the signature for a specific email address in an organization. A Google Cloud service account with delegated domain-wide authority is required for this action.

  • Update Signature for Primary Email Address

    Update the signature for the primary email address.

Need something from Gmail that isn't listed? Siftree can also collect from any public web page, or tell us what you need.