Working examplesLead follow-up
Lead follow-up for a plumber
Northfield Plumbing Co. is made up for this example. The code is real and open: read it or run it.
The problem
A plumber on a job can’t answer email or the website form. Inquiries sit for hours, and the customer books the next plumber on Google.
What it does
- An instant reply to every inquiry: when you’ll call back, and what to do in an emergency
- An alert to the owner with the name, phone number and message, ready to call back
- A friendly follow-up after 1 day and after 3 days, stopping the moment the customer replies or books
- The same person sending the form twice is one conversation, not two replies
The messy parts it handles
- MARIA GONZALEZ typed in capitals becomes Maria Gonzalez
- A typo like @gmial.com is fixed; phones in any format become +1 507 numbers
- No usable email or phone: straight to the owner, never into a void
- A follow-up that falls due at night waits for 9 a.m.
The week, line by line
Northfield Plumbing Co.
- Mon 09:10formMaria Gonzalez, Maria.Gonzalez@Gmial.com: “Kitchen sink drains slowly”
- Mon 09:10ownerNew inquiry: Maria Gonzalez, with her phone number
- Mon 09:10customerInstant reply to maria.gonzalez@gmail.com (the typo fixed)
- Mon 09:40ownerMaria wrote again: one conversation, no second reply
- Tue 10:00ownerBob left no usable email or phone: passed to you
- Tue 10:00customerFollow-up to Maria
- Tue 15:00stoppedMaria replied: her follow-ups stop
- Wed 09:00customerFollow-up to Wei: waited for 9 a.m., not 9:15 p.m.
- Fri 09:00customerLast follow-up to Wei, then no more
npm run demo), word for word.- 4form submissions
- 2instant replies
- 1repeat merged
- 1passed to the owner
- 3follow-ups
- 0sent at night or twice
Speed: 5,000 form submissions, repeats and typos included, in 0.14 seconds on a desktop PC (npm run bench). A small business’s whole year fits in under a second.
For your business
Your website form (any form tool) sends each inquiry in, or the same steps are switched on in a tool you already use. Built in your account and tested on your real inquiries first.