This is part 9 of the series "Running a Small Business with AI Employees, and Keeping the Cost Down." At the end of the series, I plan to give away the Paperclip settings, instructions and setups I use, for free.
Series contents
- I connected ChatGPT dots to Gmail, Calendar, Slack and Notion
- What "AI companies" really are
- Which AI agent tool does what
- The top 15 jobs people hand to AI
- Free vs. paid AI, and how to pick a plan
- ChatGPT: morning news and social posts
- Before Gemini Gems Stop Working, Take Stock of Them
- Five mock invoices, one odd layout, one image-only PDF (coming soon)
- Deadlines vanish from an AI's morning email report (this article)
- Count What Matches, Not What Came Back (coming soon)
- We tested a public Google Sheets logging sample (coming soon)
- Handing an Excel handover to an AI employee (coming soon)
- Profit plus depreciation is not cash in hand (coming soon)
- Catching every case sent 10 of 12 to a person (coming soon)
- Letting AI clear out old tasks (coming soon)
- Before you accept a page AI built, test one change (coming soon)
- We compared reactions across our 10 channels (coming soon)
- Run an AI office on your own computer (coming soon)
- Reading the AI Office (coming soon)
- Talk to your AI secretary (coming soon)
- Add an AI employee from a template (coming soon)
Two emails. One needs a reply by day 4. On the morning of day 4, a report of new mail lists 0 items, and the program that made it has no bug. The email was reported once, on an earlier day, and from then on it counted as done. Nothing recorded whether anyone had dealt with it.
That is what you get when the AI that reads your mail only checks what is new. Checking new mail answers "what arrived since last time". Task management answers "what is not finished yet". An AI worker in our own AI office (the setup where we hand company tasks to AI workers) reproduced the gap with a short program and two made-up emails, and compared it with a list that gives each email needing action an ID and turns it into a task, in effect a small task board.
In short
- Checking new mail is not task management. A new-mail report tells you what arrived, not what is still open.
- Check only new mail, and an email reported once counts as done. Once it has been listed, it drops out of the next report whether or not anyone dealt with it, and it is missing on the day it is due.
- Give each email an ID and turn it into a task. Record each email that needs action as a task and show it every morning until it is marked done. Set this up yourself before you rely on the AI.
Two emails, zero items on the due date
The program used no real inbox, and no AI read the mail. The point was to find what has to be on record so a deadline cannot disappear, before asking which AI to trust with email.
- Email 1 (m1): arrives on day 1, needs a reply, due on day 4.
- Email 2 (m2): arrives on day 2, a notice, nothing to do.
Everything up to day 3 counts as already reported. On the morning of day 4, the program picks mail that arrived after the last report. Email 1 was already reported, so it is left out, exactly as designed. Email 2 was reported too. The list is empty on the very day Email 1 is due.
Nothing in that setup says Email 1 was answered. It only says Email 1 was reported. Catching every new email and keeping track of work that still needs doing are two different jobs, and the new-mail list only does the first.
The fix: turn each email into a task with an ID
The same two emails also went into an open-items list, a small task board. Each email that needs action gets an ID and becomes a task; here the email ID serves as the task ID. The list goes by whether a task is done and when it is due, not when the email arrived. On day 4, that list held Email 1. After Email 1 was marked done, the same run gave 0.
This is the output of that program, run again on our company Mac. It is the email part of the AI office's test code, taken out and run on its own.
-
day4_new_only, new mail on day 4: empty. -
day4_open_due, open tasks that are due:m1. -
after_explicit_completion, after marking it done: empty.
The last line, overlap_window_after_dedup, checks one more thing: what happens when a re-read includes mail already seen. Of three made-up emails, the one already seen was dropped by its ID and the two new ones stayed. Re-read mail is not reported twice as long as seen IDs are dropped.
"Done" was marked by hand in this test. Telling automatically whether a reply went out was not part of it.
It happened in a real report
The trigger for this test was a post by Aoshima on note, a Japanese blogging platform. Aoshima had Grok Bot send a summary of email and calendar at 8:30 every weekday morning for a week, and read every report.
In a section titled "the deadline that vanished", Tuesday's report listed an RSVP to a networking event as needing a reply, with the reply deadline. On Friday, the deadline itself, the report did not mention it. The bot had been told to report mail that arrived since the last report, so an email reported once never came back. One mention on Tuesday, and the item counted as done. The bot did what it was told; whether Tuesday's item was actually done was in neither the instructions nor any record. Aoshima wrote that the morning report only ever held each morning's new mail, not the list of things to handle.
Records kept by date, not by ID, copy an email twice
Handling records by date instead of by ID can also make an email that was already copied get copied again. The second case is a Google Apps Script by Shohei Terada, also published on note, that copies Gmail messages into a spreadsheet. It records the ID of every message it copies so it never copies one twice. To keep that record small, it deletes IDs of messages received more than 7 days ago.
Gmail search returns threads, not single messages. Google's own reference says search returns a list of threads, and the script walks through every message in each thread it gets back.
Our AI office worker ran this script with Gmail and the spreadsheet replaced by in-memory stand-ins, so no real mail was read. One thread held a message from over a month earlier (old) and one from the day before (new). The script ran twice in a row. This is the output, run again on our company Mac.
In the first block (injectedFailure: false), two normal runs left two rows, then three. The copied IDs are old, new, old: the old message went in again.
The date the script keeps with each ID is the date the message was received, not the date it was copied. So at the end of the first run, the record for old is deleted right after it is copied, because old was received more than 7 days ago. When the second run gets the same thread back, old looks like something never copied. Any time search returns a thread with a fresh reply in it, this can happen.
The second block forces one failure when the script saves its record of IDs, so the next run copies both messages again: four rows.
In both runs, the spreadsheet and the record of what was copied are kept apart, and a drift between them means a second copy. In the first block, an email that had already been copied turned back into one not yet copied, depending on a date.
Give each email an ID and turn it into a task
The morning report used "older than the last report", and the script used "older than 7 days", as a stand-in for "already handled". Whether mail is new depends on when it arrived. Whether work is done does not.
- Morning report: send two lists. New mail is what arrived since last time. Open items, the task board, are what is not finished: each email that needs action gets an ID and becomes a task, recorded with its task ID (here, the email ID), the original email, the deadline and its status, and shown every morning until marked done.
- Copy-to-spreadsheet script: check the sheet itself, by ID, before copying. This script already writes each message ID into column F, inside the link to the email. Compare the new message's ID with the IDs in those column F links first. Looking at where the messages actually went means a separate record that drifts cannot cause a second copy.
What is left is deciding what "done" means. Some requests end when you send a reply. Others end only when the other side agrees. Closing a task the moment a person sends one reply repeats the same miss as the new-mail report. A person sets that rule for each kind of task, and anything a machine cannot settle stays on the list as something to check.
Letting an AI check your new mail does not, on its own, keep track of your work. The AI reads and summarizes what is new. Turning each email that needs action into a task with an ID, and keeping whether it is done on record task by task, is something you set up before you hand the work over.
Terms
- ID: a unique string of letters and digits, one per email. Two emails with the same subject and date still have different IDs.
- Task, task ID, task board: a task is one piece of work that needs action, and its task ID is a unique name for it. A task board lists tasks by ID and keeps each one until it is marked done. Here, each email ID served as the task ID.
- Thread: a back-and-forth on one subject, grouped together. Gmail search returns threads, not single emails.
- Google Apps Script: Google's way to run small programs that work with Gmail, Sheets and other Google apps on a set schedule or on demand.
Sources
- Aoshima, "Grok Botに毎朝8時30分のメール番を1週間任せてみた" (I left Grok Bot on morning email duty at 8:30 for a week), note: https://note.com/bright_dietes994/n/nc37b2343c5f4
- Shohei Terada, "【組織のAI活用#229】Gmailのメール内容をGASでスプレッドシートへ自動転記することで、元データとしてAI活用しやすくなる。" (copying Gmail into a spreadsheet with Apps Script), note: https://note.com/green_ai/n/nf8957f645077
- GmailApp, Google Apps Script reference: https://developers.google.com/apps-script/reference/gmail/gmail-app
In this series, I show how a sole proprietor or a small company can split everyday work among AI workers ("AI employees") while people only check and approve. We start within ordinary subscriptions and estimate the cost with simple formulas. Coordinating AI workers with approvals in a tool like Paperclip costs more than using the AI directly, so I also show how to bring that cost close to the direct price. At the end of the series, I plan to give away the Paperclip settings, instructions and setups I use, for free. If you are interested, please like and follow.
Our products are listed at https://www.eln.ne.jp/products
EarthLink Network builds its own products to run the whole company on AI — each one born from a need along the way. See the full index of what we build:
→ The 18 products EarthLink Network builds in-house
For more about the company and each product, visit www.eln.ne.jp.



Top comments (0)