Skip to content

Two automations that run my own business: hot leads into a sheet every hour, and tasks given by voice that an AI agent carries out.

Client
Kuraib Ali (in-house build)
Sector
Own business · workflow automation
Timeframe
October 2026 onward
Engagement
In-house: built and run for my own business, not a client project

Diagram

The hourly hot-leads sync

An hourly job that moves new hot leads into a Google Sheet, each stored once.

  1. Every hourThe scheduler calls the job
    Then: Asks
  2. Outreach platformLeads that turned hot since the last run
    Then: New leads
  3. StoreEach lead stored once, oldest first
    Then: Stored
  4. Google SheetOne formula imports them; new rows land at the bottom
    Then: Read
  5. MeI follow up from the sheet

The voice desk: a spoken task, a PIN check, then an AI agent routine that emails me a report.

In short

In my own business, a scheduled job pulls new hot leads from my outreach platform every hour and stores each once, and a Google Sheet imports them with one formula. A voice desk lets me give a task by speaking: after a PIN check it goes to an AI agent, which does the work and emails a report. Both are in-house builds.

The situation

Two jobs in my own business kept needing my hands.

Leads that replied warmly to my outreach would sit in one platform, and I did not want to copy them into a sheet by hand to follow them up. And ideas for work on my site came to me away from the desk, where I could not start them. I built one automation for each, with the checks a client system would need: secrets kept on the server, a lock on wrong attempts, and a record of what ran. This is in-house work for my own business, not a client project.

The move

  1. 01

    Hot leads into a sheet, every hour. A scheduled job on Vercel asks my outreach platform for leads that turned hot since its last run, keeps those from this site’s project, and stores each one once in Redis, oldest first. The Google Sheet holds a single IMPORTDATA formula that returns every stored lead as a table, so new rows only ever land at the bottom and my own notes in the columns beside them stay in line. The job answers only to the scheduler’s secret or the sheet’s key.

  2. 02

    Tasks by voice. I talk to an ElevenLabs voice agent from my phone. It reads the task back and asks for a PIN, then calls a small bridge on my site. The bridge checks a shared secret, the PIN and, when set, the caller’s number, and hands the task to a Claude Code routine, which does the work and emails me a report. The routine is told whether I confirmed risky steps, such as publishing or sending to new people, with a clear yes on the call; without that yes it prepares the work and does not publish.

  3. 03

    Guard the doors. Five wrong PINs in 15 minutes lock both voice endpoints, and every attempt is counted before it is checked, so a burst of parallel calls cannot slip past the limit. Secrets live only in the hosting environment, never in the code. The voice desk’s two check scripts run with every test run.

What changed

States of the system, not metrics. These are things that either were or were not true, so they can be stated without claiming a result.

Before and after states for the Kuraib Ali (in-house build) engagement.
BeforeAfter
A lead that replies warmly to outreachWould have meant copying into a sheet by handStored within the hour, shown at the sheet’s next refresh
My notes beside each leadWould shift if rows were pasted inStay in line: new rows land at the bottom
A task idea away from the deskWaited until I was back at the laptopSpoken to the voice desk and started
A wrong PINNot applicableCounted; five in 15 minutes lock the desk
Publishing or sending from a voice taskNot applicableOnly after a clear yes on the call

Scroll sideways to compare

What shipped

  • Hourly hot-leads sync from my outreach platform into Redis, each lead stored once
  • Google Sheet fed by one IMPORTDATA formula, new rows only at the bottom
  • Voice desk bridge: shared secret, spoken PIN and optional caller check
  • Hand-off of spoken tasks to an AI agent routine that emails a report
  • Risky steps held unless confirmed on the call
  • Wrong-PIN lock: five tries, then 15 minutes
  • Notes-only voice endpoint that emails a task list without running anything

The scorecard

What this build was held to, and how each item was checked.

Hot-leads sync schedule
Hourly
Cron in vercel.json, every hour on the hour; every 10 minutes until 22 Oct 2026
Copies of one lead in the sheet
One
A Redis set check runs before a row is added (api/hot-leads-sync.js)
Wrong-PIN lock
5 tries, 15 min
Server-side rule in api/voice.js and api/voice-notes.js
Voice desk checks
All passing
scripts/voice-api-test.mjs and scripts/voice-notes-test.mjs, part of npm test, run 29 Nov 2026
First voice task
Ran end to end
Work log, 12 Oct 2026: a homepage audit task given by voice ran end to end, and two of its fixes went live
Automated tests for the sheet sync
None yet
No test file covers api/hot-leads-sync.js yet

Each row is a property of the system, read from the code, its config, its tests or a dated work-log entry. These are in-house builds for my own business, not client projects: no time-saved figure is published.

Questions about the workflow automation

Is this a client project?

No. Both automations run my own business.

How does the hot-leads sync work?

A scheduled job runs every hour, asks my outreach platform for leads that turned hot since the last run, and stores each one once. A Google Sheet imports them with one formula, so new rows appear at the bottom and my notes beside them stay in line.

What is the voice desk?

A voice agent I talk to from my phone. After it checks a PIN, a spoken task goes to an AI agent routine, which does the work and emails me a report. The routine is told whether I said a clear yes to risky steps such as publishing or sending to new people; without it, it prepares and does not publish.

What stops someone else from using it?

A shared secret between the voice agent and the bridge, a spoken PIN, an optional check of the caller’s number, and a lock after five wrong PINs in 15 minutes. The honest limit: anyone who learns the PIN and reaches the agent can give it tasks, a risk I accepted on 12 October 2026.

Is it tested?

The voice desk has two check scripts that run with every test run. The hot-leads sync has no automated test yet, which is why the scorecard says so.