This connector enables AI agents and RAG systems to retrieve context from Gmail through Airweave’s unified search layer.
Gmail source connector integrates with the Gmail API to extract and synchronize email data.
Connects to your Gmail account.
It supports syncing email threads, individual messages, and file attachments.
This connector uses OAuth 2.0 with custom credentials. You need to provide your OAuth application’s Client ID and Client Secret, then complete the OAuth consent flow.
This connector does not have any additional configuration options.
The following data models are available for this connector:
Schema for Gmail thread entities.
Reference: https://developers.google.com/gmail/api/reference/rest/v1/users.threads
Schema for Gmail message entities.
Reference: https://developers.google.com/gmail/api/reference/rest/v1/users.messages
Schema for Gmail attachment entities.
Reference: https://developers.google.com/gmail/api/reference/rest/v1/users.messages.attachments
Deletion signal for a Gmail message.
Emitted when the Gmail History API reports a messageDeleted. The entity_id matches the message entity’s ID format (msg_{message_id}) so downstream deletion removes the correct parent/children.
This guide will walk you through connecting Google Workspace APIs to Airweave when running locally. Google provides extensive documentation on setting up your workspace. Below is a streamlined process for connecting Google APIs to Airweave.
Audience, select Make external and add test usersData Access, add the following scopes:Under “Authorized redirect URIs,” click ”+ Add URI” and add the Redirect URI. Use the appropriate URL for your environment:
Production (Airweave Cloud):
Local:
Locate the client ID and client secret from your newly created OAuth client. Add these credentials to the dev.integrations.yml file to enable Google API integration.