Gmail AI Employee

Leina connects to Gmail to help you summarize email threads, prepare replies, and organize your inbox. Ask in your team chat. Leina does the work and brings back the result.

Connect Gmail, choose what to share, and hand off your first task.

Leina + Gmail Example Result

You

Find the delivery email from Maya at Northstar. Draft a reply confirming delivery next Wednesday and asking her to confirm the receiving address. Save it in Gmail.

Leina

I saved a reply draft for Maya. It confirms next Wednesday’s delivery and asks her to verify the address.

Gmail · Reply draft

Re: Northstar delivery

Ready to review in Gmail.

To
Maya at Northstar
Reply
Delivery next Wednesday; please confirm the receiving address.
A reply ready in Gmail drafts.

What Is a Gmail AI Agent?

A Gmail AI agent can read the messages you choose, extract decisions from email threads, and prepare a reply in your drafts. Tell it who to contact and whether to draft or send.

You specify the source and the destination. Leina uses the content available to your connection and returns the result for you to review.

Gmail

Gmail is Google’s email service, with conversations, labels, and drafts.

  1. Give the delivery details

    Specify the sender, delivery date, and address question.

  2. Prepare the reply

    Read the delivery request and write the requested response.

  3. Save the reply draft

    Keep the response in Gmail for review before sending.

  4. Check the draft in Gmail

    Review the recipient and wording before sending.

What to Ask Leina to Do with Gmail

Copy a prompt, add your details, and send it to Leina in your connected team chat.

Summarize Email Conversations

Find emails about the launch this week and summarize the decisions and outstanding questions.

Gmail

Prepare Reply Drafts

Find the email asking about delivery and draft a reply confirming next Wednesday. Save it as a draft.

Gmail

Organize Messages with Labels

Find this week’s invoices and apply my existing Invoices label.

Gmail

Send a Clear Follow-up

Send an email to [recipient] with subject [subject]: thank them for the meeting, confirm [decision], and ask for [next step] by [date].

Gmail

Save Email Decisions in Notion

Find Gmail messages about [project] from [date range]. Summarize confirmed decisions and open questions, then create a note under this Notion page: [page link].

Gmail + Notion

Share Customer Email Decisions in Feishu

Find Gmail messages about [customer or project] from [date range]. Summarize confirmed decisions and open questions, then send the brief to Feishu chat [chat ID].

Gmail + Lark

Your next Gmail task can start with a message.

Connect. Ask. Get the Result.

Tell Leina what you need in your team chat. Include the source, destination, and expected result.

  1. Connect Your Account

    Connect the tools involved and give Leina access to the content it needs.

  2. Try a Task

    Share the source material, say where the result belongs, and describe what you need.

  3. Check the Result

    Review the result and any changes in the connected app.

Put Leina to Work in Gmail

Hand off these everyday tasks to your AI employee.

Search Threads

Search Gmail threads by query and return lightweight thread summaries. Spam and trash stay excluded unless you explicitly target them in the query.

List Threads

List Gmail threads with optional query filtering and pagination. Spam and trash stay excluded unless you explicitly target them in the query.

Fetch Emails

List Gmail messages with optional query, label, and pagination filters. Use `detail` to choose between identifiers only, lightweight summaries, or full normalized messages.

Get Message

Get a Gmail message by message ID with a simplified normalized output. Use this when you only need subject, from, to, date, and body.

Fetch Message By Message Id

Fetch a Gmail message by message ID with a controllable response format. Use this when you need the normalized full message payload instead of the simplified `get_message` output.

Download Attachment

Download a Gmail message attachment using metadata returned by a message action and upload it to Connector file transit storage.

Fetch Message By Thread Id

Fetch all messages in a Gmail thread. Use this to inspect the full conversation payload for a known `threadId`.

Get Profile

Get the connected Gmail profile, including mailbox totals and the current `historyId`. Use the returned `historyId` as the checkpoint for incremental sync via `list_history`.

Send Email

Send an email from the connected Gmail account. At least one recipient and one of subject or body are required.

Reply Email

Reply to an existing Gmail thread using the original message's reply headers. Supply to to override the original Reply-To or From recipient.

Reply To Thread

Reply to an existing Gmail thread while preserving Gmail threading. Use this when you want the reply to stay in the same conversation and optionally override recipients.

Create Draft

Create a Gmail draft with a simplified input and output shape. Returns the stable draft ID and current message and thread IDs.

Create Email Draft

Create a Gmail draft with recipients, subject, body, and optional threading. Supply replyToMessageId or threadId to draft a reply; this requires mailbox read access. Omitted subject and recipients are inherited from the reply target.

List Drafts

List Gmail drafts with pagination, and optionally hydrate each draft into full message details when `verbose` is true.

Get Draft

Get a Gmail draft by draft ID. Use the `format` parameter to control how much message detail is returned.

Update Draft

Update a Gmail draft. Supply replyToMessageId or a different threadId to rebuild its reply association; this requires mailbox read access. The subject must match the reply target. Header-only edits preserve the MIME body. Omit attachments to preserve them, supply a list to replace them, or [] to remove them. Empty strings clear fields. Content edits of unsupported MIME structures are rejected.

Send Draft

Send an existing Gmail draft as-is using the recipients already stored in the draft. Sending is immediate and cannot be scheduled by this action.

Delete Draft

Permanently delete a Gmail draft by draft ID instead of sending it.

List Labels

List all system and user-created Gmail labels. Use this to discover the internal label IDs required by label mutation actions.

Get Label

Get details for a Gmail label, including its name, type, visibility settings, counts, and optional color.

Create Label

Create a new Gmail label and return its internal label ID. Use the returned ID in downstream label modification actions.

Patch Label

Patch a user-created Gmail label. Use this for partial updates to the label name, visibility settings, or color.

Update Label

Update an existing Gmail label's properties, including name, visibility settings, or color.

Delete Label

Permanently delete a user-created Gmail label from the mailbox. This removes the label definition itself rather than just detaching it from one message.

Add Label To Email

Add and/or remove labels on a single Gmail message. Provide at least one label mutation and use label IDs from `list_labels`.

Batch Modify Messages

Add and/or remove labels on up to 1,000 Gmail messages in one request. Use this for bulk archive, mark-as-read, or custom label workflows.

Move To Trash

Move a Gmail message to trash. The message remains recoverable until it is permanently deleted by Gmail.

Untrash Message

Restore a previously trashed Gmail message back to the mailbox.

Modify Thread Labels

Add and/or remove labels on every message in a Gmail thread. Use this when the label change should apply to the whole conversation.

Move Thread To Trash

Move an entire Gmail thread to trash, including all messages in that conversation.

Untrash Thread

Restore a previously trashed Gmail thread and its messages.

List History

List Gmail mailbox change history after a known `startHistoryId`. Use this for incremental sync and checkpoint the latest returned `historyId`.

List Filters

List Gmail filters for the mailbox. Use this to audit existing rules or avoid creating duplicates.

Get Filter

Get a Gmail filter by filter ID so you can inspect its criteria and actions.

Create Filter

Create a Gmail filter with matching criteria and resulting actions. Use this to automatically organize incoming mail.

Delete Filter

Permanently delete a Gmail filter by filter ID.

Get Language Settings

Get the Gmail display language settings for the connected account.

Update Language Settings

Update the Gmail display language settings for the connected account.

Get Vacation Settings

Get the Gmail vacation responder settings, including whether auto-replies are enabled and their current content.

Update Vacation Settings

Update the Gmail vacation responder settings. Use this to configure out-of-office auto-replies and their active time window.

Get Auto Forwarding

Get the current Gmail auto-forwarding configuration, including enabled status, forwarding address, and disposition.

List Forwarding Addresses

List the forwarding addresses that are registered on the Gmail account.

Settings Get Imap

Get the Gmail IMAP settings, including whether IMAP is enabled and how expunge or folder size settings are configured.

Update Imap Settings

Update the Gmail IMAP settings, including enablement, auto-expunge behavior, expunge behavior, or max folder size.

Settings Get Pop

Get the Gmail POP settings, including access window and message disposition.

Update Pop Settings

Update the Gmail POP settings, including access window and disposition behavior.

Stop Watch

Stop Gmail push watch notifications for the mailbox. Use this to disable notifications that were previously created via the watch endpoint.

Let Gmail Work with Your Other Tools

Tell Leina which sources to use and where the result belongs.

More Tools for Your AI Employee

Connect the Apps your work depends on, and give Leina the context to carry the task forward.

Keep the Conversation Moving. Let Leina Pick Up the Work.

Hand off a task while your team is discussing it. Leina uses your connected tools and brings the result back to the conversation.

See How Leina Works in Slack
LeinaExample Result

I saved a reply draft for Maya. It confirms next Wednesday’s delivery and asks her to verify the address.

Re: Northstar delivery

Gmail + Leina: Your Questions, Answered

What Gmail tasks can I ask an AI assistant to do?

Ask it to summarize a conversation, prepare a reply draft, or label matching messages. Include the sender, topic, or date range so it can find the right email.

Can I save a draft without sending it?

Yes. Gmail provides separate draft and send operations. Ask the assistant to save a draft and review it in Gmail.

Do I need to supply a Gmail API key?

This integration uses Google OAuth authorization rather than a Gmail API key.

Can I save email summaries in Notion?

Yes, with authorized Gmail and Notion connections. Specify the emails to summarize and the parent page where the summary should be created.

Make Leina Your Gmail AI Employee

Start with one task you already need to do. Tell Leina what a finished result should look like.

Connect Gmail, choose what to share, and hand off your first task.