Available now

23 things your agent can do in Gmail

Gmail is Google’s email service, featuring spam protection, search functions, and seamless integration with other G Suite apps for productivity

Email & Comms2 triggersSign in with your account (OAuth)

Every action, grouped by what it does

You do not pick these by hand. Describe what the agent should do and Squidgy grants the matching ones — an agent told to draft replies gets the drafting action and not the sending one.

Read

9
  • Fetch emails

    Fetches a list of email messages from a gmail account, supporting filtering, pagination, and optional full content retrieval.

    GMAIL_FETCH_EMAILS
  • Get Gmail attachment

    Retrieves a specific attachment by id from a message in a user's gmail mailbox, requiring valid message and attachment ids.

    GMAIL_GET_ATTACHMENT
  • Get contacts

    Fetches contacts (connections) for the authenticated google account, allowing selection of specific data fields and pagination.

    GMAIL_GET_CONTACTS
  • Get People

    Retrieves either a specific person's details (using `resource name`) or lists 'other contacts' (if `other contacts` is true), with `person fields` specifying the data to return.

    GMAIL_GET_PEOPLE
  • Get Profile

    Retrieves key gmail profile information (email address, message/thread totals, history id) for a user.

    GMAIL_GET_PROFILE
  • List drafts

    Retrieves a paginated list of email drafts from a user's gmail account. use verbose=true to get full draft details including subject, body, sender, and timestamp.

    GMAIL_LIST_DRAFTS
  • List Gmail labels

    Retrieves a list of all system and user-created labels for the specified gmail account.

    GMAIL_LIST_LABELS
  • List threads

    Retrieves a list of email threads from a gmail account, identified by `user id` (email address or 'me'), supporting filtering and pagination.

    GMAIL_LIST_THREADS
  • Search People

    Searches contacts by matching the query against names, nicknames, emails, phone numbers, and organizations, optionally including 'other contacts'.

    GMAIL_SEARCH_PEOPLE

Create & update

5
  • Create label

    Creates a new label with a unique name in the specified user's gmail account.

    GMAIL_CREATE_LABEL
  • Delete Draft

    Permanently deletes a specific gmail draft using its id; ensure the draft exists and the user has necessary permissions for the given `user id`.

    GMAIL_DELETE_DRAFT
  • Move to Trash

    Moves an existing, non-deleted email message to the trash for the specified user.

    GMAIL_MOVE_TO_TRASH
  • Patch Label

    Patches the specified label.

    GMAIL_PATCH_LABEL
  • Remove label

    Permanently deletes a specific, existing user-created gmail label by its id for a user; cannot delete system labels.

    GMAIL_REMOVE_LABEL

Send & publish

8
  • Modify email labels

    Adds and/or removes specified gmail labels for a message; ensure `message id` and all `label ids` are valid (use 'listlabels' for custom label ids).

    GMAIL_ADD_LABEL_TO_EMAIL
  • Create email draft

    Creates a gmail email draft, supporting to/cc/bcc, subject, plain/html body (ensure `is html=true` for html), attachments, and threading.

    GMAIL_CREATE_EMAIL_DRAFT
  • Delete message

    Permanently deletes a specific email message by its id from a gmail mailbox; for `user id`, use 'me' for the authenticated user or an email address to which the authenticated user has delegated acces…

    GMAIL_DELETE_MESSAGE
  • Fetch message by message ID

    Fetches a specific email message by its id, provided the `message id` exists and is accessible to the authenticated `user id`.

    GMAIL_FETCH_MESSAGE_BY_MESSAGE_ID
  • Fetch Message by Thread ID

    Retrieves messages from a gmail thread using its `thread id`, where the thread must be accessible by the specified `user id`.

    GMAIL_FETCH_MESSAGE_BY_THREAD_ID
  • Reply to email thread

    Sends a reply within a specific gmail thread using the original thread's subject, requiring a valid `thread id` and correctly formatted email addresses. supports attachments via the `attachment` para…

    GMAIL_REPLY_TO_THREAD
  • Send Draft

    Sends the specified, existing draft to the recipients in the to, cc, and bcc headers.

    GMAIL_SEND_DRAFT
  • Send Email

    Sends an email via gmail api using the authenticated user's google profile display name, requiring `is html=true` if the body contains html and valid `s3key`, `mimetype`, `name` for any attachment.

    GMAIL_SEND_EMAIL

Manage

1
  • Modify thread labels

    Adds or removes specified existing label ids from a gmail thread, affecting all its messages; ensure the thread id is valid.

    GMAIL_MODIFY_THREAD_LABELS

About connecting Gmail

What can an AI agent do in Gmail?

23 distinct actions, listed in full on this page — 9 to read, 5 to create & update, 8 to send & publish, 1 to manage. An agent gets the ones that match what you described it doing, not all of them at once.

How do I connect Gmail?

Once, in Settings → Integrations. Sign in with your account (OAuth). The connection is yours, shared by every agent you build — you are not re-authorising per agent, and the agent never sees your credentials.

Can an agent react to something happening in Gmail?

Yes — Gmail exposes 2 triggers, so an agent can start work when something changes rather than waiting to be asked.

Others in Email & Comms

The Gmail integration guide · All 58 connectable apps · The agent builder

Chat with Squidgy