CLAUDE | Email Case Management System | Google Workspace & Google Apps Scripts
The Problem
As international tax pros, we juggle complex cases with hundreds of emails per client—Form 1120-F correspondence, ITIN applications, K-1 questions, treaty benefit discussions. Gmail search is a nightmare. Searching "K-1" returns 847 results. Which email had the NOL carryforward calculation? What did the client say about their Dutch BV structure? Critical information gets buried, and we waste billable hours hunting through threads.
My Story
I was drowning in multi-party litigation regarding FIRPTA gone bad. After 20 minutes of Gmail archaeology, I thought: there has to be a better way.
So I built one.
Design principle: use the tools I have without middleware like Zapier
The Solution
With Claude, I created a Google Sheets email case management system that:
Automatically imports emails from selected addresses into organized tables—no copy/paste, just run the script
Prevents duplicates with Gmail labels and message ID tracking
Lets you annotate by adding Topics ("1120-F Q1", "ITIN App", "K-3 FTC") and Comments for next actions
Works like a database—filter by topic, sort by date, find everything instantly
Updates periodically—run it weekly and only new emails get added
It's basically a CRM for email, built in 30 minutes with Claude. Each case gets its own sheet. Click the subject to jump to Gmail. Filter to see only emails about a topic or only what you sent last quarter.
The script and full instructions are ready to use. If you handle complex cases with long email trails, this might save you hours every week. Attached in PDF is the description written by Claude (in one shot). If you would like the code, let me know.
What I asked Claude to build:
let's see if we can design an email case management sheet + script + instructions for using this.
set up the table
collect the "client hub" -> emails to be collected
periodic update
add Logged label to prevent duplications Add these - fields extracted from the email
DirectionDateSubject (click to view in Gmail)Body Preview
I want to add these columns for me to annotate
topic COMMENTS
Best is if we can do this in gsheets table format to allow me to validate the data, group, etc.