Skip to main content

Gmail Connector

Siesta AI - Gmail Connector allows secure work with a Gmail account through the official Gmail API. The integration provides reading, creating, and sending emails, which can be combined with GPT models and corporate workflows.

Quick Connection

To create, simply click on Add Connection, select Gmail, and the page will automatically redirect to Google login. After logging in, the account is linked.

Add Connection

Available Operations

1. CreateDraft

Creates a new email draft in the Gmail inbox.

ParameterTypeRequiredDescription
bodyStringYesEmail text (plain)
subjectStringYesEmail subject
toStringYesEmail address

Use cases: automated email generation by AI models, preparation for approval, templates/proposals.

2. SendEmailAsync

Sends an email directly from the Gmail account.

ParameterTypeRequiredDescription
bodyStringYesEmail text
subjectStringYesEmail subject
toStringYesRecipient address

Use cases: automatic notifications, sales/marketing sequences, follow-ups, AI-generated reports.

3. ListInboxAsync

Retrieves a list of the latest messages in the inbox.

ParameterTypeRequiredDescription
includeSpamTrashBoolNoInclude spam and trash
maxResultsIntNoNumber of returned messages

Use cases: AI assistants for email, inbox summarization, categorization and routing, detection of priority messages.

4. GetMessageAsync

Retrieves the complete content of a specific message including metadata.

ParameterTypeRequiredDescription
messageIdStringYesMessage ID in Gmail API

Use cases: content analysis using GPT, data extraction (orders, contacts, SLAs), thread reconstruction, context for automatic replies.

Capabilities Enabled by Gmail Connector

  • AI-enhanced drafting: generating email drafts from context and corporate data.
  • AI inbox assistant: automatic replies, labeling, prioritization, summarization of threads.
  • Automation workflows: follow-ups, escalations, onboarding sequences, client communication.
  • Data extraction: structured data from emails, conversion to ticketing/CRM/ERP, links to internal systems.

Requirements for Integration

  1. Google Cloud Project: Gmail API enabled, OAuth 2.0 Client ID created, authorized redirect URL for Siesta AI.
  2. OAuth 2.0 Authorization: user grants access; typical scopes:
  3. Secure token storage: tokens are encrypted, with automatic refresh token rotation.
  4. Google API quotas & rate limits: minimize GetMessageAsync calls, batch inbox operations, cache metadata.
  5. Governance & controls: validation of emails before sending, whitelisting addresses/domains, audit logs, approval workflows.

Security Considerations

  • Emails and metadata are not stored without explicit purpose.
  • Access tokens are encrypted and regularly refreshed.
  • Each operation is auditable; Siesta AI does not send emails without approval or organizational policy.

How to Connect (OAuth)

  1. Add Connection -> select Gmail (same selection for Gmail/Google Calendar/Google Search).
    Select Connector

  2. Login with Google (OAuth login).
    Google Login

  3. Confirm integration name (internal name in Siesta AI).
    Confirm Integration Name

  4. Consent to permissions (scopes according to Gmail connector).
    Google Consent Screen

Conclusion

The Gmail Connector provides Siesta AI with a reliable and secure way to automate corporate communication. The combination of the Gmail API and AI orchestration speeds up email handling, enables analysis of incoming information, and automates routine tasks.