Track expiring documents and ask for the renewal before they lapse
Published 2026-10-06
Plenty of things you depend on have an end date: a license, a certificate, a contract, a domain, a subscription. Nobody watches those dates until the day something stops working. The fix is simple in principle. Know the date, ask for the renewal early, and keep the answer. In practice it falls between chats and calendars.
What a chat cannot do alone
Your assistant can read a document and tell you when it expires. It cannot keep that date for six months and speak up at the right moment, because it is not running between your conversations. It also cannot send the request from your mailbox, wait for the reply, and file the new document where you will find it.
A calendar reminder helps with the first part, but then you do the rest by hand, each time, for every document.
What your assistant builds with Sails
Sails is a coding agent you connect over MCP, with cloud deployment built in. Your assistant writes the code and Sails runs it in the cloud. For this job it builds four things.
A table of documents. Each row holds who the document is from, what it is, the expiry date, a contact address, and a status such as current, requested, or renewed.
A file store. When a renewed document arrives, it is saved next to its row, and the old version is kept so you have the history.
A mailbox. Requests go out from an address you own, so replies come back to the same place and can be tied to the right row.
A scheduled job. It is ordinary shell code that runs every morning. It finds documents expiring within, say, thirty days that have not been requested yet, sends the renewal request, and marks the row requested. A second pass a week later nudges anything still open. No model runs in the job. It compares dates and sends mail.
When a reply arrives with an attachment, your assistant can read the thread, save the file, update the expiry date, and set the row to renewed. That step is where a model earns its place, because replies are messy and the date has to be read from the document.
Why it works
The schedule is deterministic and cheap, and the judgment is saved for the one step that needs it. You also end up with something a chat never gives you: a single list that answers what expires soon, what has been requested, and what is still waiting on someone.
Because the table and files persist, a new person on your team can open them and see the state without asking you what happened.
Hand it off
Copy this into your assistant:
Add Sails from https://sails.app/start. Build me an expiring documents tracker: a table with the document, who it is from, the expiry date, a contact email, and a status. Store files for each renewal. Add a mailbox and a scheduled job that runs each morning, emails a renewal request for anything expiring in thirty days, and sends one reminder a week later if it is still open. The job should be plain shell code with no model involved. Start with these documents: [list]. Ask me anything you need before you start.