AI agents that work in Google Workspace
Much of a company's daily work happens in Gmail, Drive, Docs, Sheets and Calendar: shared inboxes, contracts, reports and meetings. A lot of it is repetitive, such as sorting email, filing attachments, updating trackers and scheduling. Gepton builds custom AI agents that work across Google Workspace through Google's official APIs and, where it fits, Google's Workspace MCP servers. They read what a task needs, draft the next step and connect Workspace to your CRM, ERP or helpdesk, under your admin's controls.
What we build in Google Workspace
Agents designed around how your team already works in Google Workspace, built and tested in a sandbox first.
Shared inbox triage
Reads a shared Gmail inbox, labels messages by type and urgency, extracts key details and drafts replies or creates tickets for a person to confirm.
Attachment filing and extraction
Saves invoices, purchase orders and contracts from email into the right Drive folders and extracts fields into a Sheet or your accounting system.
Report building in Sheets
Pulls data from your CRM, ERP or database into Google Sheets on a schedule and writes a short summary of what changed.
Document drafting from templates
Drafts proposals, offer letters or statements of work in Google Docs from a template and data in your systems, for review before sending.
Scheduling and meeting prep
Finds slots across calendars, sends invites, and prepares a brief for each meeting from past email, documents and CRM records.
Drive knowledge answers
Answers staff questions from approved Drive folders with links to the source files, respecting each file's sharing permissions.
How it connects. Official APIs, the narrowest access.
Workspace admins control which third-party apps can access data and which scopes they may use. We design so that agents run as an internal app where possible, request the narrowest scopes, avoid domain-wide delegation unless there is a clear reason, and log every action. Agents respect Drive sharing permissions and do not widen them. Only the content a task needs is sent to a model. This page describes independent integration work on Google's public APIs and does not imply a partnership with or endorsement by Google.
- Google WorkspaceShared inbox triage
- HubSpotUsed by the inbound lead qualifier agent
- OutlookUsed by the meeting prep and follow-up agent
- SharePointUsed by the RFP and security questionnaire responder agent
From sandbox to your live Google Workspace
A fixed-scope plan first, then weekly releases you can test.
-
1
Choose the app type and scopes
We create a Google Cloud project and OAuth client, mark it internal to your organization where possible, and request only the scopes needed, such as read-only Gmail or a single Drive folder.
-
2
Connect through APIs, MCP and push
Agents use the Gmail, Drive, Calendar, Docs, Sheets and Chat APIs, Workspace MCP servers where they fit, and Pub/Sub or push notifications to react to changes.
-
3
Test with test users
We test with a small set of test accounts and folders, run evaluation cases, and check quota use per user and per project.
-
4
Roll out with admin approval
Your Workspace admin approves the app in the Admin console, limits which users and scopes it may use, and can revoke access at any time.
Agents that often connect to Google Workspace
Examples from our agent catalog, each built for one team's process.
Browse the agent catalog-
Inbound Lead Qualifier
Replies to new web and form leads within minutes, asks a few qualifying questions, scores fit against your criteria and books a meeting with the right rep.
See inbound lead qualifier -
Meeting Prep and Follow-Up Agent
Builds a one-page brief before each sales call and drafts the follow-up email, next steps and CRM notes from the call transcript afterward.
See meeting prep and follow-up agent -
RFP and Security Questionnaire Responder
Drafts answers to RFPs and security questionnaires from your approved answer library and past responses, citing the source for each answer.
See RFP and security questionnaire responder -
Tally Data Sync Agent
Moves approved sales, purchase and receipt entries between your CRM, store or ERP and TallyPrime, and reports what did not sync and why.
See Tally data sync agent -
Resume Screening Assistant
Compares applications with the job's stated requirements, writes a short evidence-based summary per candidate and schedules screening calls.
See resume screening assistant
How agents connect to Google Workspace
Google provides separate REST APIs for Gmail, Drive, Calendar, Docs, Sheets, Slides, Chat and the Admin SDK, with client libraries in common languages. Each API has OAuth scopes at different levels, for example read-only Gmail access versus full mailbox control. Gmail can push change notifications through Cloud Pub/Sub, and Drive and Calendar support push notifications, so agents can react to new messages or files without polling.
In May 2026 Google began a developer preview of Workspace MCP servers for Gmail, Drive, Calendar, Chat and People, which let MCP-compatible clients call Workspace tools after the user signs in. We use them where the preview covers the task and the client accepts preview terms, and use the stable APIs for production workloads.
Scopes, verification and quotas
Google classifies some scopes as sensitive or restricted. Apps that are external to your organization and request restricted scopes, including most Gmail and full Drive access, must pass Google's verification and an annual security assessment. An app marked internal to your Workspace organization is not subject to that process, which is one reason we build most agents as internal apps. Domain-wide delegation lets an app act for any user and should be used rarely. Each API has per-project and per-user quotas, so we batch requests and use exponential backoff.
What stays read-only
By default agents read mail, files and calendars within their scopes and write drafts, labels, new files and new Sheet rows. Sending email, sharing files outside the company, deleting content and changing permissions stay with people unless you approve a narrow automatic case.
How this fits with Gemini
Google's own AI in Workspace includes Gemini in Gmail, Docs, Sheets and Meet, Workspace Studio for building agentic automations and skills, and Gemini Enterprise for agents across company data. For individual productivity and simple automations, these are often the right tools. A custom agent adds value when a process runs across Workspace and non-Google systems, needs specific extraction or business rules, or must be tested and governed as a production workflow. Extraction work is covered in data extraction and analysis agents.
How we deliver it
The services our engineers use to build it.
-
Workflow Automation Agents
Agents that carry out multi-step workflows within rules you set, and pass decisions that need judgment to your team.
See workflow automation agents -
Data Extraction & Analysis Agents
Agents that pull data from documents, websites and systems, analyze it and report the insights your team needs.
See data extraction & analysis agents -
Automated Reporting
Reports and plain-language insights generated automatically from your existing data.
See automated reporting -
Agent Access Governance
Control what your AI agents can reach and do: an inventory of every agent, its own identity, least-privilege OAuth scopes, secrets in a vault, human approval for sensitive actions, a kill switch and full audit trails.
See agent access governance
AI agents and Google Workspace in depth
How a Workspace agent is structured
A Google Workspace agent usually runs as a service in a Google Cloud project you own. The project holds the OAuth client, enabled APIs, a Pub/Sub topic for Gmail notifications, the agent's code, its secrets and its logs. The agent reacts to change signals, such as a new message in a shared inbox or a new file in a Drive folder, reads the content through the relevant API, reasons over it, and writes a result: a draft, a label, a new Sheet row, a file in the right folder, or a record in another system such as your CRM or accounting tool.
Gmail notifications through Pub/Sub tell the agent that a mailbox changed and give a history ID; the agent then asks the Gmail API for the changes since the last ID it processed. Drive works similarly with its changes feed and page tokens. Both kinds of watch expire, so the agent renews them on a schedule and can catch up from its last saved position after downtime.
Choosing scopes and identity
Workspace scopes range from narrow to very broad, and the choice decides both risk and review effort.
| Need | Narrower option | Broader option to avoid |
|---|---|---|
| Read a shared inbox | Read-only Gmail on that mailbox | Full mailbox control across users |
| Create reply drafts | Gmail compose scope on that mailbox | Send scope with automatic sending |
| File attachments | Drive access to files the app creates or is given | Full Drive access |
| Update a tracker | Access to a single shared spreadsheet | All spreadsheets |
When an agent works on a shared inbox, the cleanest identity is often a dedicated account for that inbox, authorized once through the OAuth flow by an admin. Service accounts with domain-wide delegation can impersonate any user, so we use them only when a task truly spans many mailboxes, and we ask your admin to restrict the delegation to the exact scopes listed. In the Admin console, your admin can mark the app as trusted, limit it to an organizational unit and block it later.
A worked example: invoices from a shared inbox
Example: suppliers send invoices to accounts@ your domain.
- A Gmail notification arrives. The agent fetches new messages and filters those with PDF or image attachments from known supplier domains.
- It extracts supplier name, GSTIN, invoice number, date, tax and totals, and checks whether this invoice number was already received.
- It saves the file to the supplier's Drive folder with a consistent name and adds a row to the invoice register Sheet with the extracted fields and a confidence note.
- It labels the email as processed, or as needing review when fields are unclear, and drafts an acknowledgment reply for a person to send.
- The accounts team checks the register and approves entries before they go to your accounting system.
The agent does not forward invoices outside the company or change Drive sharing. Duplicate invoice numbers are flagged, not overwritten.
Approvals, logs and Workspace audit
Drafts and review labels act as the approval step for email: nothing leaves the mailbox until a person sends it. For Sheets and Drive, a "status" column or a review folder plays the same role. The agent's log records each message or file it handled, what it extracted, where it wrote and who approved downstream actions. Workspace's own audit logs in the Admin console record Drive file activity, OAuth token grants and Gmail events, depending on your edition, so your admin can confirm the app touched only what it should. Logs from the agent service go to Cloud Logging in your project.
Quotas and reliability
Each Workspace API has per-project and per-user quotas. An agent that reacts to notifications and reads only new items stays well inside them; one that rescans a whole mailbox every hour does not. When Google returns a rate limit error, the agent retries with exponential backoff and jitter. Batch requests reduce round trips when reading many small items. Because notifications can repeat and arrive late, every step checks whether its work is already done, for example whether a file with that invoice number already exists, before writing.
Testing and rollout
We test with dedicated test accounts, a test inbox and test folders, using sample documents with personal details removed. The evaluation set includes scanned invoices, password-protected PDFs, emails with several attachments, forwarded threads and messages in Hindi where relevant. We check how the agent behaves when a file is moved, a label is removed or a notification is missed.
Before the pilot, we baseline the current process: how long an invoice or request waits in the inbox before someone handles it, how many are filed in the wrong place, and how much time people spend on data entry each week. The same measures, taken from the agent's log and the register, show whether the agent is actually helping.
Rollout starts on one inbox or one folder, with a named reviewer, then widens to related processes once accuracy holds. Have ready: a Workspace super admin for app approval, the inboxes, folders and Sheets in scope, and the downstream system the data should reach. Related pages: document processing, finance and accounts agents and automated reporting.
Questions about AI agents and Google Workspace
Something else? Send us your question and an engineer replies with next steps.
Why not just use Gemini in Workspace?
Gemini is well suited to helping individuals write, summarize and search. A custom agent suits repeatable processes that connect Workspace to your CRM, ERP or helpdesk and need defined rules, testing and logs. They work well together.
Will our app need Google's security assessment?
Not if it is an internal app used only within your Workspace organization, which is how we build most agents. External apps that request restricted scopes do need verification and an annual assessment.
Can the agent read everyone's email?
Only if your admin grants domain-wide delegation, which we avoid unless there is a clear need. Most agents work on one shared inbox or specific folders.
Can it send emails on its own?
By default it writes drafts for a person to send. Automatic sending is enabled only for narrow cases, such as acknowledgements, after a pilot.
Do you use the Workspace MCP servers?
Where they fit. They were in developer preview as of mid-2026, so for production workflows we usually rely on the stable REST APIs and revisit MCP as it matures.
Should the agent use a service account or a user account?
For one shared inbox or a few folders, a dedicated user account authorized through OAuth is usually simpler and narrower. A service account with domain-wide delegation can act as any user, which suits tasks that span many mailboxes but carries more risk. If we use one, your admin restricts it to the exact scopes listed and we document why it is needed.
What happens if the agent misses a Gmail notification?
The agent does not rely on each notification. It saves the last mailbox history ID it processed, and every time it runs it asks Gmail for all changes since that point. If notifications were missed during downtime, the next run catches up. Watches are renewed on a schedule because they expire, and an alert fires if renewal fails.
Can the agent work with files shared from outside our organization?
It can read files that the agent's account has been given access to, including files shared by suppliers or clients. We treat external files with extra care: they are scanned for type and size, processed only for the defined task, and never re-shared. Whether the agent may handle external files at all is a decision we make with you during scoping.
Can an agent write into Google Sheets that people are editing?
Yes. The agent appends rows or updates specific cells through the Sheets API while people work in the same file. We give the agent its own columns or tab where possible, protect ranges people should not change, and avoid rewriting whole sheets. A status column lets reviewers mark rows as approved, which the agent reads before passing data on.
Other tools we connect agents to
All integrations-
Salesforce
Custom AI agents that read and update Salesforce through its official APIs: lead research, account briefs, case triage and data hygiene, with scoped access, sandbox testing and human approval for writes.
See Salesforce -
HubSpot
Custom AI agents for HubSpot that qualify inbound leads, log activity, summarize deals and clean CRM data through HubSpot's APIs and MCP server, with scoped access and a review step before writes.
See HubSpot -
Zoho CRM
Custom AI agents for Zoho CRM that qualify leads, summarize deals, log activity and connect Zoho to your other systems, using the Zoho CRM API with scoped OAuth, data-center aware setup and human review.
See Zoho CRM -
Slack
Custom AI agents that work in Slack: answer questions from your systems, run approvals, triage requests and post summaries, built on Slack's APIs and MCP server with narrow scopes and clear audit trails.
See Slack -
Microsoft Teams
Custom AI agents that work in Microsoft Teams: internal help desks, approvals, request intake and meeting follow-ups, built with the Teams SDK and Microsoft Graph, with Entra ID permissions and admin control.
See Microsoft Teams -
WhatsApp
Custom AI agents on the WhatsApp Business Platform for order status, bookings, lead capture and support in English and Indian languages, built on the Cloud API with approved templates, opt-in and human handoff.
See WhatsApp