Solution

Email to Google Sheets automation for enquiries, orders and reports

If someone on your team opens notification emails and types the details into a spreadsheet, that job can run on its own. A script reads the right emails, pulls out the fields you need and adds a clean row, every few minutes, with a link back to the original message.

Common emails worth automating

These are the emails we are most often asked to turn into rows:

  • Website enquiry notifications from WordPress, Elementor or custom forms.
  • Leads forwarded by property portals, marketplaces and ad platforms.
  • Order confirmations from payment gateways or a small online shop.
  • Supplier invoices and delivery notes where only a few fields matter.
  • Daily reports from other systems that arrive as email bodies instead of files.
  • Replies to a quotation, where the date of the reply is the number you need.

How parsing works, in plain terms

Each kind of email has a pattern. A portal lead always says “Name:” followed by the name, and “Mobile:” followed by the number. A script running in Google Apps Script or Python finds emails that match a search, such as a sender address or a Gmail label, reads the body, and picks out each field using those patterns.

The script then writes a row to a Google Sheet with the fields in fixed columns, the time the email arrived, and a link back to the message. It labels the email as processed so it is never added twice. Anything it cannot read cleanly goes to a separate “check” tab with the reason, instead of being guessed.

Once the data is in a sheet, everything else gets easier: a daily summary email, a dashboard, an import into a CRM, or a reminder when an enquiry has not been answered. Most of these follow-on steps are small additions once the first parser is reliable.

Volume and frequency shape the design. A few dozen emails a day can be processed every few minutes with ease. Thousands a day need batching, careful use of quotas and perhaps a different tool. Most small and mid-size businesses sit comfortably in the first group, which is why a simple script often outperforms an expensive integration platform for this job.

Designing the sheet so it stays useful

The sheet that receives parsed emails becomes a small database, and it pays to treat it like one. Each row should be one record, each column one field, and the first row a fixed header that nobody renames. Calculations, notes and colour coding belong on other tabs that read from the raw data, so the script never overwrites someone's work.

A unique key for every row prevents duplicates. Often the email's own message ID works; for leads, a combination of phone number and date is useful. The script checks the key before adding a row, so running it twice, or recovering after an error, never creates copies.

Finally, the sheet needs an owner. Someone should glance at the check tab once a day, confirm the latest rows look right, and know who to call when a sender changes their format. That takes a minute, and it is what keeps an automation trusted a year after it was built.

From the work

We built email parsing for sales teams across several brands; these are the details that decide whether it keeps working:

  1. We test against at least 30 real emails per pattern before switching it on. Templates change slightly between senders, and the edge cases show up fast.
  2. We never trust a sender's formatting forever. When a portal changes its email layout, the “check” tab fills up, and that is the alarm we want, not silent wrong data.
  3. Phone numbers and dates are normalised on the way in. “09/10” means different things to different senders, so we read dates from the email headers where we can.
  4. A Gmail label per source keeps the script fast and the search simple. We add the filters that apply the labels as part of setup.
  5. We keep the message link in every row. When a number looks wrong, anyone can open the original in one click.
  6. Apps Script has execution time limits, so large backfills run in batches over a few runs rather than all at once.

Before you start

  • Identify every sender whose emails you want captured.
  • Agree which fields matter and which can be ignored.
  • Decide what counts as a duplicate.
  • Name one person who checks the sheet daily.
  • Confirm whether the account is consumer Gmail or Google Workspace.

Steps

Collect samples

You forward 20–40 recent examples of each email type, or give read access to a label.

Agree the columns

One sheet design: which fields, in which order, and what counts as a duplicate.

Build and backfill

The parser is built, tested on the samples, then run over past emails to fill history.

Schedule and hand over

A time trigger runs it every 5–15 minutes. You get the code, a short guide, and an alert if it stops.

When a script is the wrong answer

If the emails come from a tool that already offers an export, an API or a direct integration with your CRM, that route is usually more reliable than reading emails, and we will say so. Parsing is the right choice when the email is the only output a system gives you, which is more common than it should be. Scoping that honestly is part of the automation work we take on: the cheapest reliable route wins, even if it means a smaller job.

Not included (optional)

  • Reading attachments such as PDFs or scanned invoices (possible, quoted separately).
  • Outlook and Microsoft 365 mailboxes (possible with a different connection).
  • Writing into a CRM instead of a sheet.
  • Monthly maintenance when senders change their templates.

Questions people ask us

Is our email data safe?

The script runs inside your own Google account with permissions you approve. Nothing is copied to an outside server, and you can revoke access at any time.

What happens if the email format changes?

Rows that no longer match go to the check tab with the reason, and you get an alert. A small fix to the pattern usually takes less than an hour.

Can it handle several kinds of email?

Yes. Each source gets its own pattern and label, and they can all write to one sheet with a source column.

Do we need Google Workspace?

No, a regular Gmail account works. Workspace gives higher daily limits, which matters only at larger volumes.

Can the same script send a daily summary?

Yes. Once rows are reliable, a short summary email each morning (new rows by source, anything unanswered) is a small addition.

Can it run on emails we already received?

Yes. After testing, the script can backfill past emails in batches, so your sheet starts with history rather than empty.

What if two people label emails differently?

We set up Gmail filters that apply labels automatically, so the script does not depend on anyone's habits.

Want this for your business?

Send a few lines about where you are now. You get a reply within one working day, with questions or a fixed-price quote.