# Gmail automation consultant: from inbox to records, with nothing lost.

> SBD builds Gmail automations that turn inbound mail into records, tickets and tasks, read invoices and documents from attachments, and send follow-ups that are logged against the right contact, for teams of 1 to 1,000 people. Workflow automation builds start at $1,000, with the fixed price set after a $500 Automation Audit that is credited to the build.

- Canonical: https://smallbaydigital.com/integrations/tools/gmail/
- Publisher: SmallBay Digital

## What a Gmail automation from SBD does

In most small and mid-sized companies, work still starts in an inbox. An enquiry, an invoice, a purchase order or a complaint arrives by email, and someone copies it into another system. The automation we build reads that mail, decides what it is, puts the useful parts in the right place and leaves a trail.

Typical builds fall into four groups. Intake: enquiries become CRM leads, support mail becomes tickets, and orders become draft orders, with a model classifying and extracting fields and a person checking anything uncertain. Documents: invoices and statements read from attachments and passed to accounting with the original file linked. Follow-up: personalised emails sent from a system event, from the right person's mailbox, and logged. Shared inbox triage: mail labelled, assigned and chased when nobody replies.

In our [lead enrichment and sales automation](https://smallbaydigital.com/case-studies/lead-enrichment-sales-automation/) case study, qualified leads receive a personalised follow-up through the Gmail API after AI qualification and CRM sync, with n8n, Notion, Cal.com and Slack in the stack. Two concept demos, [lead capture for an agency](https://smallbaydigital.com/portfolio/demos/agency-lead-capture/) and a multi-agent lead qualification flow, also use Gmail.

## When the Gmail API beats a connector, and when it does not

Zapier, Make and n8n all have Gmail modules, and for a low-volume "new email with this label" trigger they are fine. Most of them poll on a schedule. We build directly on the Gmail API, with push notifications, when:

- Mail must be processed within seconds, or volume makes polling expensive in tasks or operations.
- Several mailboxes or a shared inbox must be watched consistently, with one place to see what was processed.
- Attachments need careful handling: large files, multiple invoices per email, or forwarding chains.
- You need to prove what was read, what was extracted and what a person approved.

## Gmail API quotas, push notifications and history

Google's quota page in October 2026 gives the Gmail API 1,200,000 quota units a minute per project and 6,000 a minute per user per project. Methods cost different amounts: sending a message costs 100 units, fetching one costs 20, or 60 in full or raw format, listing costs 5 and reading history costs 2. A mailbox automation that fetches every message in full can reach the per-user ceiling sooner than people expect, so we fetch metadata first and the full message only when it is needed.

Push works through Google Cloud Pub/Sub. You call watch on the mailbox with a topic, and Gmail publishes a notification with the mailbox and a history ID when something changes; your receiver then calls history.list from the last ID it saw. The watch must be renewed at least every seven days, and Google recommends daily. Each watched user is limited to one notification a second and extra notifications are dropped, and Google notes that notifications can occasionally be delayed or dropped. We renew daily, store the last history ID per mailbox, and run a periodic history sweep so nothing depends on a single notification arriving.

## OAuth scopes, verification and sending limits

Google classes gmail.send as a sensitive scope and gmail.readonly, gmail.modify and full mail access as restricted. Restricted scopes need Google's restricted scope verification, and if the data is stored or transmitted on servers, a security assessment. Google also says apps marked Internal, used only by people in your own Workspace organisation, are not subject to the unverified app screen or the 100-user cap. For client builds we register the app in your Google Cloud project as Internal and request the narrowest scopes the workflow needs.

Sending limits matter for follow-up workflows. Google's Workspace help page lists 2,000 messages a day per user, 500 on trial accounts, 10,000 total recipients a day and 3,000 external recipients a day, measured over a rolling 24 hours. Gmail is a mailbox and has no bulk sending features: follow-ups to known contacts belong here; newsletters and cold sequences belong on a dedicated sending platform.

## Threads, labels and extraction that do not double-process

Email is messier than it looks. One thread can hold an enquiry, a forwarded invoice and three replies; one message can carry four PDFs, or an invoice pasted into the body; a supplier can send the same invoice twice. Our intake design handles each case on purpose rather than by accident.

We treat the Gmail message ID as the key. Every processed message gets a label, such as processed or needs review, and the workflow skips anything already labelled, so a replayed notification or a manual re-run does no harm. Labels also give your team a view inside Gmail of what the automation has done, without opening another tool.

Extraction runs once per attachment, and each extracted document is checked against what already exists, such as the same supplier, number and amount, before anything is created. Low-confidence extractions go to a review queue with the original attached. We store the extracted fields and a link back to the message, and we do not keep a copy of the mailbox.

Replies matter too. When an automation sends a follow-up, it sends from the owner's mailbox in the existing thread where there is one, so the customer sees one conversation and the owner sees the reply arrive in the normal place. The sent message ID is written to the CRM record, so anyone can trace what was sent and when without asking for access to someone else's inbox.

## How a Gmail engagement with SBD works

Every engagement starts with an [Automation Audit](https://smallbaydigital.com/services/audit/) at $500, credited in full to your build. We look at which mailboxes receive which kinds of work, how many messages a day, what is extracted by hand today and where it goes next.

Workflow automation builds start at $1,000, internal tools at $3,000 and multi-module systems at $5,000. Work runs in two-week sprints with sixty days of hypercare, and care plans start at $50 a month, which covers the daily watch renewal and alerting. See the [pricing page](https://smallbaydigital.com/pricing/).

## What you own when we finish

The Google Cloud project, the OAuth client, the Pub/Sub topic and the workflow platform are in your organisation. You receive a list of watched mailboxes and labels, the scopes granted and why, the extraction rules, and a runbook that says what happens when a watch lapses or a message fails to parse. Messages that move money or reach a customer for the first time are held for a person to approve.

## At enterprise scale

Gmail is the mail system for organisations on Google Workspace, from small firms to large companies. Shared inboxes for sales, accounts payable, support and operations are where most email automation happens, and Workspace administrators control which apps may read mail.

- **Admin-approved access** We register an Internal app in your own Google Cloud project, request only the scopes needed, and walk your Workspace admin through what each scope allows before it is approved.
- **Mailbox scope** Automations watch named mailboxes and labels only. Where a service account with domain-wide delegation is used, it is limited to the scopes and users agreed in writing.
- **No missed mail** Watches are renewed daily, the last history ID is stored per mailbox, and a periodic history sweep catches anything a notification missed. A lapsed watch raises an alert.
- **Data handling** We store extracted fields and a link to the message, and keep no full copies of mailboxes. Retention for processed attachments is agreed with you and documented.
- **Sending within limits** Follow-up volumes are checked against Workspace per-user sending limits, and bulk or cold sending is routed to a dedicated platform instead of staff mailboxes.

### Engagements

- **Already on Workspace, invoices arriving in a shared inbox.** Accounts payable forwards PDFs by hand. We read each invoice from the attachment, match the supplier, draft the bill in accounting and hold it for approval with the original linked.
- **Already on Workspace, enquiries lost in personal inboxes.** We watch the enquiry addresses, create or update the lead in the CRM, assign an owner and chase if nobody replies within the agreed time.
- **Already on Workspace, a polling Zap hitting its limits.** We replace a polling trigger with Gmail push and history sync, so mail is processed in seconds and task counts stop growing with volume.

## Related

- [Case study: lead enrichment and sales automation](https://smallbaydigital.com/case-studies/lead-enrichment-sales-automation/)
- [Gmail portfolio](https://smallbaydigital.com/portfolio/tools/gmail/)
- [Invoice intake with an agent: a 30-day log](https://smallbaydigital.com/blog/invoice-intake-with-an-agent-30-day-log/)
- [Invoice processing](https://smallbaydigital.com/solutions/use-case/invoice-processing/)
- [Microsoft 365 integrations](https://smallbaydigital.com/integrations/tools/microsoft-365/)
- [Google Drive integrations](https://smallbaydigital.com/integrations/tools/google-drive/)

## Sources

- Google for Developers: Gmail API usage limits (quota units per project and user, method costs), checked 29 October 2026 <https://developers.google.com/workspace/gmail/api/reference/quota>
- Google for Developers: Gmail push notifications (Pub/Sub, watch renewal, notification rate), checked 29 October 2026 <https://developers.google.com/workspace/gmail/api/guides/push>
- Google for Developers: Choose Gmail API scopes (sensitive and restricted scopes), checked 29 October 2026 <https://developers.google.com/workspace/gmail/api/auth/scopes>
- Google Workspace Admin Help: Gmail sending limits in Google Workspace, checked 29 October 2026 <https://knowledge.workspace.google.com/admin/gmail/gmail-sending-limits-in-google-workspace>
- Google Cloud Help: OAuth app verification exceptions (internal apps), checked 29 October 2026 <https://support.google.com/cloud/answer/13464323>
