Paul Bădărău

AI Automations Worth Building: Most Do Not Need AI

Which AI automations are worth paying for, when a scheduled job or scoring rule is better, and what evals, drift and review really cost in production.

A public company register gives you raw fields, and turning them into a usable sales list takes a scheduled worker, a lookup table, and basic arithmetic. Every weekday a worker I built reads its saved cursor, fetches the next 500 identifiers, waits a second, translates official CAEN activity codes into readable categories, and assigns a priority score before stopping short of empty ID ranges.

That score uses fixed weights: a valid phone adds 26 points, a mapped activity category adds 24, and registration in the last seven days adds 22, while inactive companies cap at 35 and companies without a valid phone cap at 55. Strong leads start at 80 and good leads start at 60. Anyone on the team can read those rules and argue with them, and a model would only obscure how a record earned its rank.

Start with the input and the rule

When a founder asks for an agent to find leads, update a CRM, chase invoices, or route support requests, I first ask what happens today, who notices when it breaks, and whether the step requires judgement or an unwritten rule. Most back-office workflows need a repeatable input, stored state, a defined transformation, and an output someone can act on, so a model usually sits as the smallest and least trusted piece inside a deterministic system.

In the company register feed, the scanner stores the highest identifier that actually returned a company, because storing the last probed ID would drop late registrations sitting inside empty stretches. A cursor update rule, a shared category lookup table, an idempotent insert, and database triggers for the search index handle the whole pipeline without touching an LLM. I judge any automation by whether I can name its input, its state, its rule, and the place a bad result becomes visible; when those stay vague, adding a model just hides the mess behind fluent text.

Deterministic scoring beats a model at scale

Policy questions belong in code and queries, because "is this company active" is a registry field, a valid phone is validation, and newly registered is date arithmetic. The registration database holds roughly four million rows, so ranking has to run as an indexed query and not an API call whose latency and bill scale with traffic. Only the time-sensitive part of the score refreshes daily, and only for registrations from the latest 90 days, which avoids rewriting the entire table and rebuilding full-text indexes every night.

The same split holds for smaller operations. Routing support tickets by plan, account status, form area, invoice state, language, and open incidents often clears 70 percent of a queue before anyone reads a sentence, and chasing overdue documents comes down to dates, status, and ownership. When the required output looks like a spreadsheet formula, I stick with deterministic code, because it stays cheap, survives model deprecations, and leaves clean evidence of the edge cases that actually need human or model review.

Webhooks need a reconciliation sweep behind them

Live webhooks are cheap and fast, yet treating them as infallible is how an integration stays silently wrong for three weeks. Events arrive twice, land out of order, fail during a deploy, or never fire when an upstream service accepts a change quietly.

On a property-inventory operations platform I replaced fragile sync scripts with signed webhook endpoints, durable event records, background queues, a dead-letter list, and a scheduled reconciliation sweep. The sweep pages upstream records, compares them with local state, and repairs gaps while respecting rate limits and keeping a cursor; if a pagination iterator expires, the run marks itself partial and skips unchanged rows on the next pass because every write is idempotent.

  1. A signed webhook records the incoming change before heavy processing starts.
  2. A queue handles the work with backoff that respects the upstream service.
  3. An idempotent projection updates the canonical local record.
  4. A dead-letter list holds repeated failures with the original payload and error for manual replay.
  5. A scheduled reconciliation sweep catches missed or mishandled events.

During that platform's historical migration, an early image-download path skipped cover images and meter photographs that lacked a UUID, leaving the import dashboard green while files were missing. Building a per-property manifest and running read-only checks caught the gap, and we re-verified the fix against 17,595 distinct inspection cover-image URLs and 42,494 meter-photo URLs while keeping source deletion blocked until a separate actions backfill finished.

AI earns its place when meaning is the missing input

A model becomes useful when the input's meaning cannot be read off a column without wasting someone's time. An email saying "the report from last Thursday has the wrong key handover detail" has no reliable category, customer ID, or urgency flag, so a model can extract the likely entities, suggest a route, and draft a reply for a person to confirm. The same applies to messy documents, long free-text feedback, call transcripts, and knowledge bases where people ask one question twenty ways.

For anything high impact, I keep the model away from final authority: it never issues refunds, alters payment details, deletes records, grants access, or sends legal notices on its own. A solid first workflow uses a narrow schema and an honest fallback, such as a support triage service returning one of six categories, a priority, a quoted source line, and needs_review: true when confidence drops below a tested threshold. Keep retrieval separate from answer generation so a knowledge assistant searches approved documents, shows the snippets, and abstains when it lacks a source; if you're weighing RAG against fine-tuning or wiring up an external endpoint, my production OpenAI integration checklist covers the runtime controls I expect.

Budget for evals and review after launch

Five hand-picked demo prompts prove nothing, so any AI workflow needs a real evaluation set containing short messages, badly scanned documents, contradictory requests, abusive inputs, cases that belong with a human, and past mistakes. Workflows drift even when you leave the code alone, because customer phrasing shifts, policies change, upstream templates break, and model providers update weights or retire versions.

Someone has to own the review queue for uncertain outputs, sample finished work regularly, watch spend alerts, and re-run the eval suite before any prompt or model change ships. Put hard daily or monthly budgets in place, log token usage and provider errors, cache genuinely repeated inputs, and choose a safe degradation path; a support queue can fall back to manual routing, whereas an invoice pipeline cannot fall back to guessing. Decide what text may leave your system, what gets redacted, and who can read the logs, because model responses often carry customer data.

Before anyone writes a prompt, watch the process long enough to find where the real failure lives. Set an observable target, build the deterministic skeleton with raw input storage, cursors, idempotent writes, and reconciliation, and only then drop a model into the narrow step where rules break down; if you're scoping what that build costs inside a wider product, start with MVP development cost instead of a token price sheet.