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

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

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”.

All integrations