Send each customer a notice before their plan renews, and keep a record of every notice and reply
Published 2026-12-01
A renewal notice tells a customer that their plan is about to renew, what it will cost, and how to change or cancel before the date. People on annual plans rarely remember when they signed up, and a clear notice a month ahead and again a week ahead heads off surprise charges and the refund requests that follow them.
ChatGPT handles a good part of this today. It can write a notice for each plan and, with Gmail or Outlook connected, send it from your account. A scheduled task can run every morning and draft the notices due that day, and ChatGPT Sites can keep a renewals table in its D1 database. For a handful of customers a year, that can be enough.
Where ChatGPT stops
The scheduled task wakes a model on every run, so a model decides again each morning who gets a notice. A send through your connected inbox may pause for your approval and goes out from your personal address, where billing replies land among the rest of your mail. Nothing records which customers already got the 30-day notice, so a missed day or a rerun can skip someone or mail them twice. Sites has no background jobs, so a renewals table there cannot send anything on its own.
What your assistant builds with Sails
Sails is a coding agent you connect over MCP, with cloud deployment built in. Your AI assistant writes the code, and Sails runs it in the cloud.
A renewals table holds one row per customer with name, email, plan, price, renewal date, and status. A second table, notices, gets a row for every message sent: the customer, the notice type, the send time, and the mail thread.
A mailbox on inbox.sails.app belongs to your assistant, so notices go out from an address such as yourcompany-billing@inbox.sails.app and replies come back there.
A daily job runs at 8am as ordinary shell code with no model in the loop. It selects every active row renewing in 30 or 7 days with no matching row in notices, sends the notice, and writes the notice row right after. A rerun that day finds those rows and sends nothing.
Another job checks the mailbox every 15 minutes, matches each reply to a customer by sender address, and marks the row as replied so later notices hold until you look. At 4pm it emails you the day's replies with a link to each thread. A private page on your domain, behind sign-in, lists the next 60 days of renewals with each notice and reply.
A worked example
A customer on a $480 annual plan renews on January 15. On December 16 the 8am job sends the 30-day notice and adds a row to notices. On December 18 the customer replies to ask about monthly billing, the mailbox job marks the row within 15 minutes, and the 4pm summary puts the reply in front of you. The 7-day notice due January 8 stays on hold until you update the plan or clear the hold, while every other customer gets notices on their own dates.
Why it works
The renewal dates, the send record, and each reply sit in the same tables, so the page you open matches what each customer received. The rule for who gets a notice is code your assistant writes once and you can read, and Sails runs it at 8am whether or not anyone opens a chat.
Hand it off
Copy this into your AI assistant:
Add Sails from https://sails.app/start. I want to send each customer a notice before their plan renews. Keep a renewals table with name, email, plan, price, renewal date, and status, and a notices table with customer, notice type, send time, and thread. Create a Sails inbox for billing mail. Every day at 8am, run a plain shell job with no model involved that sends a 30-day and a 7-day notice to each active customer who has not had that notice yet, and records each send. Every 15 minutes, match replies in the inbox to customers, mark them as replied, and hold their later notices. Email me a 4pm summary of the day's replies. Put a private page on my domain that lists renewals in the next 60 days with each notice and reply. Ask me anything you need before you start.