Team
Shared credential for production and unattended runs.
Gmail is Google’s email service, featuring spam protection, search functions, and seamless integration with other G Suite apps for productivity
Tools and triggers
Available tools and events after Gmail is connected.
This action allows you to delete multiple Gmail messages at once by specifying their IDs. It's useful for managing email clutter and enforcing retention policies.
This action allows users to modify labels on multiple Gmail messages simultaneously. It supports adding or removing labels for up to 1,000 messages in a single request.
This action creates a draft email in Gmail. It allows specifying recipients, subject, body content, and attachments, enabling users to prepare emails for sending at a later time.
Tool to create a new Gmail filter with specified criteria and actions. Use when the user wants to automatically organize incoming messages based on sender, subject, size, or other criteria. Note: you can only create a…
This action creates a new label in the user's Gmail account with the specified properties. It ensures that the label name is unique and validates the color selections for the label.
Send a one-shot prompt to the Sanity Content Agent. Stateless one-shot prompt endpoint. No thread management or message persistence. Ideal for simple, single-turn interactions. Use when you need to send a single prompt…
This action deletes a specified Gmail draft by its ID. It requires the user's permissions to perform this operation on the specified draft.
Tool to permanently delete a Gmail filter by its ID. Use when you need to remove an existing email filtering rule.
This action permanently DELETES a custom label from your Gmail account. The label will be removed from all messages that had it. System labels (INBOX, SENT, DRAFT, UNREAD, STARRED, etc.) cannot be deleted. WARNING: If…
This action deletes a specified email message from a Gmail mailbox. You can use it to remove messages either for the authenticated user or another user with delegated access.
Tool to immediately and permanently delete a specified thread and all its messages. This operation cannot be undone. Use threads.trash instead for reversible deletion.
This action retrieves a list of email messages from a specified Gmail account. It allows for filtering the messages based on various parameters such as label IDs and search queries, as well as controlling the level of…
This action retrieves an email message from Gmail using its unique message ID. It allows users to access information about the email content based on the provided user ID.
This action retrieves messages from a specific Gmail thread. It requires the thread's ID and the user's ID to access the messages within that thread.
This action allows users to forward an existing Gmail message to one or more specified recipients. It retains the original message body and attachments while allowing for optional additional text to be included in the…
Tool to get the auto-forwarding setting for the specified account. Use when you need to retrieve the current auto-forwarding configuration including enabled status, forwarding email address, and message disposition.
This action retrieves the list of contacts associated with the authenticated user's Google account. It allows for filtering the fields that are returned and supports pagination for large sets of contacts.
Retrieves a single Gmail draft by its ID. Use this to fetch and inspect draft content before sending via GMAIL_SEND_DRAFT. The format parameter controls the level of detail returned.
This action fetches a specific attachment from a user's Gmail messages using the provided message and attachment IDs. It ensures that the returned attachment is valid and is appropriately decoded for the user.
Tool to retrieve a specific Gmail filter by its ID. Use when you need to inspect the criteria and actions of an existing filter.
This action retrieves the IMAP settings configured for a Gmail user account. It provides information about IMAP configuration, such as whether IMAP is enabled and how messages are handled when deleted.
Gets details for a specified Gmail label. Use this to retrieve label information including name, type, visibility settings, message/thread counts, and color.
Tool to retrieve the language settings for a Gmail user. Use when you need to determine the display language preference for the authenticated user or a specific Gmail account.
This action fetches details about a specific person identified by the resource name or retrieves a list of 'Other Contacts' if requested. You can specify which person-related fields you want to return.
Tool to retrieve POP settings for a Gmail account. Use when you need to check the current POP configuration including access window and message disposition.
This action retrieves the Gmail profile information for a specified user. You can obtain details such as the user's primary email address and message totals.
Tool to retrieve a specific send-as alias configuration for a Gmail user. Use when you need to get details about a send-as email address including display name, signature, SMTP settings, and verification status. Fails…
Tool to retrieve vacation responder settings for a Gmail user. Use when you need to check if out-of-office auto-replies are configured and view their content.
Tool to import a message into the user's mailbox with standard email delivery scanning and classification. Use when you need to add an existing email to a Gmail account without sending it through SMTP. This method…
Tool to insert a message into the user's mailbox similar to IMAP APPEND. Use when you need to add an email directly to a mailbox bypassing most scanning and classification. This does not send a message.
Tool to list client-side encrypted identities for an authenticated user. Use when you need to retrieve CSE identity configurations including key pair associations.
Tool to list client-side encryption key pairs for an authenticated user. Use when you need to retrieve CSE keypair configurations including public keys and enablement states. Supports pagination for large result sets.
This action retrieves a list of email drafts for the authenticated user's Gmail account. It allows the user to specify the number of drafts to return and whether to fetch detailed information for each draft.
Tool to list all forwarding addresses for the specified Gmail account. Use when you need to retrieve the email addresses that are allowed to be used for forwarding messages.
Tool to list all Gmail filters (rules) in the mailbox. Use for security audits to detect malicious filter rules or before creating new filters to avoid duplicates.
This action retrieves the change history of a Gmail mailbox, starting from a specified history ID. It is useful for syncing mailbox changes incrementally and providing updated history records.
This action retrieves all labels associated with a specified Gmail account. It is useful for understanding the organization of emails for the user by categorizing them into different labels.
Lists S/MIME configs for the specified send-as alias. Use when you need to retrieve all S/MIME certificate configurations associated with a specific send-as email address.
Lists the send-as aliases for a Gmail account, including the primary address and custom 'from' aliases. Use when you need to retrieve available sending addresses for composing emails.
This action fetches a list of email threads associated with a specific user. It provides options to filter results and paginate through them based on the specified parameters.
This action allows you to add or remove labels from a specific email message in Gmail. By providing the user's ID and the message ID, you can modify the labels associated with that email, helping to organize or…
This action modifies the labels of a specified Gmail thread by adding or removing existing label IDs. It allows for organization of the thread's messages based on the user's input labels.
This action allows the user to move a specified email message to the trash. It requires the message ID and the user's email address or 'me' to identify the user.
This action modifies the properties of an existing Gmail label. It allows the user to update attributes such as the label's name, visibility, and color.
Tool to patch the specified send-as alias for a Gmail user. Use when you need to update properties of an existing send-as email address such as display name, reply-to address, signature, default status, or SMTP…
This action allows users to reply to an existing email thread in Gmail. Users must provide the thread ID and at least one recipient's email address to successfully send their reply.
This action searches your Google Contacts by name, email, phone number, or organization. You can choose to include 'Other Contacts' (people you've interacted with but haven't explicitly saved) for a more comprehensive…
This action sends an existing Gmail draft to the recipients already defined in it. The draft is sent as-is with its pre-configured recipients, subject, and body.
This action sends an email using the Gmail API from the authenticated user's email account. It requires at least one recipient and either a subject or body for the email to be sent.
Tool to stop receiving push notifications for a Gmail mailbox. Use when you need to disable watch notifications previously set up via the watch endpoint.
Moves the specified thread to the trash. Any messages that belong to the thread are also moved to the trash.
Tool to remove a message from trash in Gmail. Use when you need to restore a previously trashed email message.
Tool to remove a thread from trash in Gmail. Use when you need to restore a deleted thread and its messages.
Updates (replaces) an existing Gmail draft's content in-place by draft ID. This action replaces the entire draft content with the new message - it does not patch individual fields. All fields are optional; if not…
Tool to update IMAP settings for a Gmail account. Use when you need to modify IMAP configuration such as enabling/disabling IMAP, setting auto-expunge behavior, or configuring folder size limits.
Tool to update the properties of an existing Gmail label. Use when you need to modify label name, visibility settings, or color.
Tool to update the language settings for a Gmail user. Use when you need to change the display language preference for the authenticated user or a specific Gmail account. The returned displayLanguage may differ from…
Tool to update POP settings for a Gmail account. Use when you need to configure POP access window or message disposition behavior.
Tool to update a send-as alias for a Gmail user. Use when you need to modify display name, signature, reply-to address, or SMTP settings for a send-as email address. Gmail sanitizes HTML signatures before saving…
Update user attribute values for a resource. Use this action to set or update custom attributes for a user within an organization or project. When setting a value for an attribute key that also exists in SAML, the…
Tool to update vacation responder settings for a Gmail user. Use when you need to configure out-of-office auto-replies.
Triggers when a Gmail message is sent by the authenticated user. It polls the 'SENT' label and emits metadata including sender, recipients, subject, timestamp, and thread ID.
Triggers when a new message is received in Gmail.
Setup
Pick a scope, then confirm what can start a Protege and what it can do.
What can start a Protege from this app.
What a Protege can do after it starts.
Prefer team for production.
Shared credential for production and unattended runs.
Tied to one user—only when the workflow needs their account.
Team-scoped for supported chat surfaces.
Build with us
Request early access or book a live walkthrough with the team.