---
title: "Gmail integration for AI agents | Langdock"
description: "Connect Gmail to Langdock. Agents and workflows can use 11 actions, such as “Add label to email” and “Create draft reply”."
url: "https://langdock.com/integrations/gmail"
language: "en"
---

[Integrations](https://langdock.com/products/integrations)

# Gmail integration for AI agents

Draft, send, forward, and search emails, and manage labels

Connect Gmail to Langdock and use it in chat, in agents and in workflows.

11 actions · 3 triggers

[Start free trial](https://app.langdock.com/signup) [Talk to sales](https://langdock.com/talk-to-sales)

## Gmail actions

Each action is one step an agent or workflow can run in Gmail.

- Add label to email · Adds a label to an email. Creates the label if it does not already exist.
- Create draft reply · Creates a draft reply for an email.
- Create email draft · Creates a draft email in your Gmail account without sending it.
- Forward email · Forwards an email to another recipient including original attachments.
- Get email with attachments

  Retrieves a single email thread or message with full content including attachments. Returns all messages in the thread and their attachment files.
- List labels

  Lists all labels in the user's mailbox. Agents can call this to find the correct label ID when a user mentions a label name that can't be resolved.
- Reply to email · Creates and immediately sends an email from your Gmail account.
- Search emails

  Searches through your Gmail inbox and returns email summaries (subject, sender, date, snippet) matching your search criteria. Returns up to 50 results. Use 'Get email with attachments' to retrieve full email content and attachments.
- Send email · Creates and immediately sends an email from your Gmail account.
- Update draft

  Updates an existing draft email in place. Provide the message ID of the draft and the fields to change — unspecified fields keep their current values.
- Update label

  Add/remove labels on a message or a thread. First call 'Get email with attachments' to resolve messageId and/or threadId.

## Gmail triggers

A trigger starts a workflow when something happens in Gmail.

- Label changed on email · Triggers when labels are added to or removed from an email.
- New email · Triggers when a new email is received in your inbox (sent emails are excluded).
- New email matching search

  Triggers when new emails matching your search query are received (sent emails excluded unless you add 'in:sent').

## Agent templates that use Gmail

- [Collect Customer Info Looks at Slack, HubSpot, and Gmail to find context about a customer and then gives you a summary.](https://langdock.com/templates/collect-customer-info)
- [Google Meeting Scheduler Schedules a meeting with a list of people based on their availabilities.](https://langdock.com/templates/google-meeting-scheduler)
- [Google Meet Meeting Transcription Automates meeting summaries, highlights actions, and emails concise executive recaps.](https://langdock.com/templates/google-meet-meeting-transcription)
- [Documentation Q&A Example for an Agent that answers user questions based on Documentation shared via knowledge folders and sends the response via email.](https://langdock.com/templates/documentation-q-a)

## Setup and permissions

An action can ask for your confirmation before it runs. In an agent, each action is set to “Always allow” or “Needs approval”.

### Documentation

- [Using integrations](https://docs.langdock.com/en/using-langdock/guides/integrations/using-integrations)
- [How connections work](https://docs.langdock.com/en/using-langdock/integrations/connections)
- [Manage access to actions](https://docs.langdock.com/en/admin/manage-integrations/manage-action-access)

[All integrations](https://langdock.com/products/integrations)
