Suger

Google Mail

Overview

Gmail, Google’s email service, offers a comprehensive platform for communication and productivity. With features like advanced search capabilities, powerful filters, and seamless integration with other Google Workspace tools, Gmail is a cornerstone of modern email management.

By integrating Suger with Gmail, users can leverage automation workflows to enhance email productivity. Tasks such as sending emails, applying labels for organization, and managing threads can be automated, improving efficiency and enabling customized email workflows tailored to specific needs.

You can connect Gmail at two levels:

  • Org-Level: Connect once for your organization using OAuth 2.0 (individual and small teams) or a Service Account with domain-wide delegation (enterprise automation).
  • User-Level: Each user connects their own Gmail account via OAuth 2.0, so automated emails are sent from that person’s own inbox.

Create Integration (Org-Level)

Choose the authentication method that fits your organization’s scale and security requirements.

Option 1: OAuth 2.0 (Individual & Small Team)

This is the recommended method for most users. It uses a standard secure handshake to grant Suger permission to send emails as you.

  1. In the Suger Console, go to Settings > Integrations.

  2. Locate the Google Mail card and click Connect Now.

  3. Select OAuth 2.0 as your method and click Create. You will be redirected to the Google sign-in page.

    Google sign-in page

  4. Review the permissions and click Allow.

    Grant Suger access to Gmail

  5. Once you are returned to Suger, click Verify. A status of Verified confirms the connection is live.

Option 2: Service Account (Enterprise Automation)

This method is designed for company-wide automation where Suger sends email by impersonating a specific corporate address (for example, sales@company.com) without a user manually signing in.

  1. Create a service account in your target GCP project for Google Mail integration.
  2. Enable the Gmail API in the same Google project.
  3. Create the service account key, and download the associated JSON file. It is required for the following integration.
  4. Enable G-Suite Domain-wide Delegation for the service account.
  5. Specify the impersonated email address, select the appropriate scopes configured in the previous step, and store the JSON key file contents within the Suger console integration page.

Google Mail Org Integration

Create User Integration

User-Level integration is personal and precise. It lets Suger send emails that look like they came from you, while automation handles the repetitive work.

  • OAuth 2.0 Security: Suger never sees, asks for, or stores your Google password. The connection is a secure, token-based handshake.
  • Responsive automation: Send automated private offer links and follow-up sequences the moment a buyer hits a milestone.
  • Thread management: Keep your deal discussions organized without jumping between tabs.
  1. In the Suger Console, go to the User Integrations section (under your profile settings). Locate the Google Mail card and click Connect Now.

    Google Mail Connect Now

  2. You will be redirected to the Google sign-in page. Select the account you want to use for your marketplace deals.

  3. Review the request and click Allow. This grants Suger the permissions needed to read and send emails related to your marketplace workflows.

    Google Mail User Consent

  4. Once you are redirected back to the Suger Console, find your new integration and click Verify. A Verified status confirms Suger is ready to send on your behalf.

Suger AI Tools

Suger AI uses a middleware strategy — wrapping the Gmail API directly.

Profile & Labels

ToolDescription
googlemail_get_profileGet the authenticated user’s Gmail profile
googlemail_list_labelsList all Gmail labels (system and user-created)

Messages

ToolDescription
googlemail_list_messagesList messages using Gmail search syntax
googlemail_get_messageGet a message (headers by default)
googlemail_get_message_bodyGet a message with fully decoded body (plain text + HTML)
googlemail_send_mailSend an email (plain text, HTML, or threaded reply)
googlemail_reply_to_messageReply to a message, preserving thread
googlemail_modify_message_labelsAdd or remove labels on a message
googlemail_batch_modify_messagesApply label changes to up to 1,000 messages at once
googlemail_get_attachmentDownload a message attachment
googlemail_trash_messageMove a message to Trash
googlemail_untrash_messageRestore a trashed message

Threads

ToolDescription
googlemail_list_threadsList conversation threads
googlemail_get_threadGet all messages in a thread
googlemail_modify_thread_labelsAdd or remove labels on an entire thread
googlemail_trash_threadTrash an entire thread
googlemail_untrash_threadRestore a trashed thread

Drafts

ToolDescription
googlemail_list_draftsList drafts
googlemail_create_draftSave an email as a draft
googlemail_get_draftGet a draft
googlemail_update_draftReplace a draft’s content
googlemail_send_draftSend a previously saved draft
googlemail_delete_draftPermanently delete a draft

Edit Integration

Editing is not supported for security reasons. To change configuration, delete the integration and create a new one.

Delete Integration

The Google Mail integration can be deleted like all other integrations. Once the deletion is triggered, all integration info including the service account key and access tokens will be deleted immediately & permanently from Suger. No time window or methods to recover.