What you get
A receipt in your mail is lifted out into a folder in your own Drive without your asking. You say whether it is yours or the company’s. Yours goes to the tax year’s folder. The company’s goes to its books as a draft bill, waiting for you to approve.
Accounts, tax letters, contracts and minutes are filed the same way, under their company and period.
What they will not do
| Reach your other files | The agents can open only the files they themselves put in your Drive. |
| Delete a company record | Company records are kept for as long as the law requires, and no agent deletes one. |
| Decide whose it is | Yours or the company’s is your call, on your press. |
Personal receipts are deleted two years after the mail arrived. Company records are kept at least six years.
How it is built
A receipt is a small thing that matters once a year. The work is getting it out of your inbox and into the right place without an agent gaining the run of your files.
Two ideas do that. The agents ask Google for its narrowest permission, which lets them open only files they created. And lifting a receipt out of mail is one thing; deciding whether it is yours or the company’s is another, and that one is yours.
One receipt
The mail reader recognises a receipt, an invoice or a company record.
A ticket outranks a record, and a record outranks a receipt
An attachment is copied into a holding folder in your Drive.
Up to 10 MB, with Google’s narrowest file permission ·
drive.fileA receipt that is the mail itself is printed to a PDF.
A real browser, run by Cloudflare, with every outside request refused, so the sender never learns it was opened
You are asked whose it is.
Yours or the company’s
Yours is moved to the tax year’s folder.
The year runs from 6 April
The company’s is emailed to its bills address.
It waits there as a draft bill for you to approve
After two years, your personal copies are removed.
Company records are never removed by an agent
The parts
| Google Drive API | With the permission that reaches only files the agents made. |
| Cloudflare Browser Rendering | A real browser run for a moment to print one mail, with the network cut off. |
| Xero’s bills inbox | An email address that turns an attached receipt into a draft bill. |
| Resend | The service that sends that email. |
The words, in plain English
| Holding folder | Where a lifted file waits until you say where it belongs. |
| Headless browser | A browser with no window, used by software to render a page. |
| Draft bill | A bill in your books that nobody has approved yet. |
What is not finished
| On their own | Filing is on your press. Doing it without asking waits on more work. |
| Kinds of file | The books accept PDFs and common pictures only. |
| A missed lift | If permission was not there when a mail was read, that mail’s receipt is not retried. |