Connect Gmail to Agaro ERP
Connect Gmail to Agaro so your team and the AGARO Assistant can read emails, search your inbox, draft messages, manage labels, and organize threads, with the same permissions and audit trail as everything else in your workspace.
Supported tools
Every Gmail action Agaro can use out of the box.
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).
Batch delete Gmail messages
Tool to permanently delete multiple Gmail messages in bulk, bypassing Trash with no recovery possible.
Batch modify Gmail messages
Modify labels on multiple Gmail messages in one efficient API call. Supports up to 1,000 messages per request for bulk operations like archiving, marking as read/unread, or applying custom labels.
Create email draft
Creates a Gmail email draft. While all fields are optional per the Gmail API, practical validation requires at least one of recipient_email, cc, or bcc and at least one of subject or body.
Create Gmail filter
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.
Create label
Creates a new label with a unique name in the specified user's Gmail account.
Create Prompt Post
Send a one-shot prompt to the Sanity Content Agent. Stateless one-shot prompt endpoint.
Delete Draft
Permanently deletes a specific Gmail draft using its ID with no recovery possible; verify the correct draft_id and obtain explicit user confirmation before calling.
Delete Gmail filter
Tool to permanently delete a Gmail filter by its ID. Use when you need to remove an existing email filtering rule.
Delete label from account (permanent)
Permanently DELETES a user-created Gmail label from the account (not from a message). WARNING: This action DELETES the label definition itself, removing it from all messages.
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 access.
Delete thread
Tool to immediately and permanently delete a specified thread and all its messages. This operation cannot be undone.
Fetch emails
Fetches a list of email messages from a Gmail account, supporting filtering, pagination, and optional full content retrieval.
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.
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.
Forward email message
Forward an existing Gmail message to specified recipients, preserving original body and attachments.
Get Gmail attachment
Retrieves a specific attachment by ID from a message in a user's Gmail mailbox, requiring valid message and attachment IDs.
Get Auto-Forwarding Settings
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.
Get contacts
Fetches contacts (connections) for the authenticated Google account, allowing selection of specific data fields and pagination.
Get Draft
Retrieves a single Gmail draft by its ID. Use this to fetch and inspect draft content before sending via GMAIL_SEND_DRAFT.
Get Gmail filter
Tool to retrieve a specific Gmail filter by its ID. Use when you need to inspect the criteria and actions of an existing filter.
Get label details
Gets details for a specified Gmail label. Use this to retrieve label information including name, type, visibility settings, message/thread counts, and color.
Get Language Settings
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.
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.
Get Profile
Retrieves Gmail profile information (email address, aggregate messagesTotal/threadsTotal, historyId) for a user.
Get Vacation Settings
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.
Import message
Tool to import a message into the user's mailbox with standard email delivery scanning and classification.
Insert message into mailbox
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.
List CSE identities
Tool to list client-side encrypted identities for an authenticated user. Use when you need to retrieve CSE identity configurations including key pair associations.
List CSE key pairs
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.
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.
List Gmail filters
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.
List forwarding addresses
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.
List Gmail history
Tool to list Gmail mailbox change history since a known startHistoryId. Use for incremental mailbox syncs.
List Gmail labels
Retrieves all system and user-created labels for a Gmail account in a single unpaginated response.
List send-as aliases
Lists the send-as aliases for a Gmail account, including the primary address and custom 'from' aliases.
List S/MIME configs
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.
List threads
Retrieves a list of email threads from a Gmail account, identified by user_id (email address or 'me'), supporting filtering and pagination.
Modify thread labels
Adds or removes specified existing label IDs from a Gmail thread, affecting all its messages; ensure the thread ID is valid.
Trash thread
Moves the specified thread to the trash. Any messages that belong to the thread are also moved to the trash.
Move to Trash
Moves an existing, non-deleted email message to the trash for the specified user. Trashed messages are recoverable and still count toward storage quota until purged.
Patch Label
Patches the specified user-created label. System labels (e.g., INBOX, SENT, SPAM) cannot be modified and will be rejected.
Patch send-as alias
Tool to patch the specified send-as alias for a Gmail user.
Reply to email thread
Sends a reply within a specific Gmail thread using the original thread's subject; do not provide a custom subject as it will start a new conversation instead of replying in-thread.
Search People
Searches contacts by matching the query against names, nicknames, emails, phone numbers, and organizations, optionally including 'Other Contacts'.
Send Draft
Sends an existing draft email AS-IS to recipients already defined within the draft. IMPORTANT: This action does NOT accept recipient parameters (to, cc, bcc).
Send Email
Sends an email via Gmail API using the authenticated user's Google profile display name. Sends immediately and is irreversible — confirm recipients, subject, body, and attachments before calling.
Get IMAP Settings
Retrieves the IMAP settings for a Gmail user account, including whether IMAP is enabled, auto-expunge behavior, expunge behavior, and maximum folder size.
Get POP settings
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.
Get send-as alias
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.
Stop watch notifications
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.
Untrash Message
Tool to remove a message from trash in Gmail. Use when you need to restore a previously trashed email message.
Untrash thread
Tool to remove a thread from trash in Gmail. Use when you need to restore a deleted thread and its messages.
Update draft
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.
Update IMAP settings
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.
Update Label
Tool to update the properties of an existing Gmail label. Use when you need to modify label name, visibility settings, or color.
Update Language Settings
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.
Update POP settings
Tool to update POP settings for a Gmail account. Use when you need to configure POP access window or message disposition behavior.
Update send-as alias
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.
Update User Attributes Values
Update user attribute values for a resource. Use this action to set or update custom attributes for a user within an organization or project.
Update Vacation Settings
Tool to update vacation responder settings for a Gmail user. Use when you need to configure out-of-office auto-replies.
Nothing matches that search.
Put Gmail to work inside Agaro.
Tell us how your team uses Gmail today and we will show you how it connects.