Skip to main content
MindStudio
Pricing
Blog About
My Workspace
Google Suite

[Gmail] Get Email

The [Gmail] Get Email block fetches a single email from a Gmail account using a Gmail message ID.

Retrieve a specific Gmail email by message ID

The [Gmail] Get Email block fetches a single email from a Gmail account using a Gmail message ID. It connects to Gmail through a Google OAuth connection and retrieves the full details of the specified message, storing the result in a variable you define for use later in the workflow.

The block takes three configuration inputs: the Gmail message ID (required), a Google OAuth connection ID to authenticate with the account, and a destination variable name where the retrieved email data will be stored. The message ID must correspond to an existing message in the connected Gmail account.

When the block runs, it returns a structured object containing the message ID, subject line, sender address, recipient address, date, body text, and labels associated with the email. This makes it useful in workflows that process incoming emails, route messages based on content or metadata, log email activity, or trigger downstream actions based on specific messages retrieved by ID.

What you can build

Real-world workflows powered by the [Gmail] Get Email block.

Support Ticket Processing

Retrieve a specific customer support email by ID and extract its subject and body to create or update a support ticket in another system.

Email Content Extraction

Fetch an email by message ID and pass its body text to an AI block for summarization, classification, or data extraction.

Automated Email Logging

Pull specific emails from Gmail and log their sender, date, subject, and labels into a database or spreadsheet for record-keeping.

Approval Workflow Trigger

Retrieve an approval request email by ID and parse its body to determine next steps in a multi-stage approval workflow.

Label-Based Email Routing

Read the labels field from a retrieved email to route it to different workflow branches based on how it has been categorized in Gmail.

Notification Monitoring

Fetch a specific notification email by message ID to extract sender and date information and trigger follow-up actions in connected tools.

Ready to add [Gmail] Get Email to your workflow?

Get Started Free

Common questions about [Gmail] Get Email

What parameters does this block require?

The block requires a Gmail message ID (a string identifying the specific email to retrieve). Optionally, you can provide a Google OAuth connection ID to specify which Gmail account to authenticate with, and a destination variable name to store the returned email data.

What data does the block return?

The block returns an object with the following fields: messageId, subject, from, to, date, body, and labels. These correspond to the core metadata and content of the retrieved Gmail message.

How does authentication work for this block?

The block uses a Google OAuth connection, referenced by a connection ID in the block's configuration. This connection must be set up in MindStudio with access to the Gmail account you want to retrieve messages from.

What kinds of workflows commonly use this block?

This block fits into workflows that process, route, or log emails — for example, support ticket automation, approval pipelines, email content classification, or any workflow where a message ID is known and the full email details are needed for downstream steps.

Where does the retrieved email get stored in the workflow?

The block stores the returned email object in the variable specified by the destinationVar field. That variable can then be referenced by subsequent blocks in the workflow.

Add [Gmail] Get Email to your workflow

Build powerful AI workflows with drag-and-drop blocks. No coding required.