AI agents for small business: 7 checks before connecting
Catch up on recent AI agent updates, then use seven practical checks to test permissions, approvals, costs and recovery before connecting business tools.
Most AI features are demos that die in a sprint. Evals, guardrails, budgets and a human on the risky path: how I build the kind that survives real users.

The AI feature demoed like a magic trick. One prompt on stage, a clean answer, the whole room leaning in. Then it shipped. Six days later a real user typed something slightly off, and the model confidently invented a refund policy that never existed.
Nobody clapped for that one.
I've seen this film enough times to call the ending from the opening credits. The demo ran on friendly inputs picked by the person who built it. Production is a stranger at 2am, typing in Hinglish with three typos and a grudge, and the model has no idea it's wrong. It answers in the same calm, polished voice either way. That calm voice is the problem.
Every founder wants AI in the product. Fair. I spent twenty years in sales before I started writing code about seven years ago, and the sales half of my brain knows exactly why: AI demos beautifully. The builder half knows the demo is the thin end of the job. The thick end is plumbing, and the plumbing is what your users actually touch.
A demo is a controlled shot. You know the input, you know the happy path, you rerun it until it looks clean. Production hands the model garbage, sarcasm, empty strings, pasted screenshots of text, and questions you never imagined. The model answers every one of them with the confidence of a man who has never once been wrong at a wedding.
Here's the split I keep in my head before I put a model anywhere near a product.
| The demo | The shipped version | |
|---|---|---|
| Inputs | Cherry-picked, clean | Whatever a tired human types |
| When it's wrong | Nobody notices | A user loses trust or money |
| When the API is down | Never happens on stage | Happens, and needs a plan |
| Cost | One call, who's counting | Ten thousand a day, someone is |
| Who's attacking it | Nobody | Somebody, eventually |
| Success measure | "Looks smart" | "Was right, and I can prove it" |
The right-hand column is the product. The left one is a party trick.
Here's the part that took me a while to really feel. A normal bug looks like a bug. The page crashes, the number is obviously wrong, someone files a ticket. A model bug looks like a correct answer. Same tone, same formatting, same helpful little sign-off.
So the usual safety net, "users will tell us when it breaks," has a hole in it. Users can't report a wrong answer they believed. That one fact changes how I build everything below.
If AI helped you build the application itself, there is a separate launch decision: whether its permissions, payments and recovery paths are ready for customers. Use the vibe coding production checklist for that review, then use the evaluations below for the model running inside your product.
Vibes are how most teams judge an AI feature. Someone tries it a few times, it feels good, ship it. That's not testing. That's a hunch wearing a lab coat.
An eval is a boring, beautiful thing: a set of real inputs paired with what a good answer looks like, run on every change, scored. It turns "feels smart" into a number that moves up or down when you touch the prompt. OpenAI's evals guide shows the idea in its plainest form: test data, grading criteria, a run you can repeat. Whatever tooling you pick, the habit matters more than the brand.
I keep a file of the worst inputs I can find. The angry ones. The ambiguous ones. The ones a competitor would screenshot and post. The one where someone asks the support bot to write a poem about your pricing. Every model swap and every prompt tweak runs against that set before anything else.
The file grows every time production surprises me, which is often. Think of it as a scar collection with a test runner attached.
Evals that run once a quarter are theatre. Mine run whenever the prompt, the model or the retrieval changes, the same way types check every build without anyone scheduling a meeting about it. Cheap to run, painful to skip. The cost of skipping shows up later, in public.
An AI model is an unreliable service you call over the network. Treat it like one. You already wrap flaky payment APIs in timeouts and fallbacks. The model deserves the same suspicion, plus one extra worry the others don't have: it can hand you a confident answer that is completely made up.
If the model is supposed to return JSON with a category and a confidence, check that it did. Parse it with a schema. If the shape is wrong, the content doesn't get a vote. This one habit kills a whole class of "why is the dashboard showing undefined" bugs.
Set a timeout so a slow model can't freeze the screen, and always keep a dull, dependable path for when the smart one fails.
type Answer<T> = { data: T; source: "model" | "fallback" };
async function withGuardrails<T>(
ask: () => Promise<unknown>,
parse: (raw: unknown) => T | null,
fallback: () => T,
timeoutMs = 4000,
): Promise<Answer<T>> {
let timer: ReturnType<typeof setTimeout> | undefined;
const timeout = new Promise<never>((_, reject) => {
timer = setTimeout(() => reject(new Error("model timed out")), timeoutMs);
});
try {
const raw = await Promise.race([ask(), timeout]);
const clean = parse(raw);
if (clean !== null) return { data: clean, source: "model" };
} catch {
// fall through to the safe path
} finally {
clearTimeout(timer); // don't leave a timer running after a fast answer
}
return { data: fallback(), source: "fallback" };
}The point isn't the exact code. It's the posture. The model gets to help. It never gets to be the only thing standing between your user and a broken screen. And notice the source field: you always know which answers came from the model, which matters the day someone asks "where did it get that?"
Prompt injection sits at number one on the OWASP Top 10 for LLM applications for a reason. Anything a user types, or anything your app hands back to the model on their behalf, can carry instructions you didn't write.
I learned this one with a real client. On the IT Origin build, a cybersecurity firm's own team showed me they could open the AI chat without verifying an email, just by rewriting a server response in an intercepting proxy.
The fix wasn't hiding the panel harder. The server now decides whether a session is verified, and it rebuilds the conversation history from its own database instead of trusting what the browser sends, so nobody can slip a forged assistant reply into the context. Messages and history length are capped too.
None of that shows in a demo. All of it shows in the first pen test. And the other side has the same tools: the Wiz researchers behind PHP2Shell describe using AI during their research and exploit development, which is a good argument for making patching boring and fast.
A model call has two prices: rupees and seconds. Both are product constraints, and both get ignored until the bill or the loading spinner gets embarrassing.
The biggest model is rarely the right one. Plenty of the tasks I ship route to a smaller, faster model that costs a fraction and answers before the user blinks. I save the expensive model for the few calls that genuinely need the horsepower. Classification, tagging and short replies almost never do.
| Lever | What it buys you | What it costs you |
|---|---|---|
| Smaller model | Lower bill, faster answers | Needs evals to prove it's good enough |
| Caching repeat calls | Near-free answers for common questions | Stale answers if the source changes |
| Streaming | The wait feels shorter | Harder to validate before the user sees it |
| Hard spend caps | One runaway loop can't drain the month | A capped feature needs a graceful "try later" |
| Rate limiting | Your chat isn't a free API for strangers | Real users occasionally hit the wall |
That streaming row is a real tradeoff, and I don't pretend otherwise. Streaming feels great and makes output validation harder, because the words are on screen before you've checked them. For anything risky, I validate first and stream second, or skip streaming entirely.
A feature that's brilliant and takes nine seconds loses to one that's good enough in one. Users don't grade on a curve.
Human-led, AI-assisted. I say it a lot because it's the whole game. The model drafts, suggests, ranks, summarizes. A human approves anything that touches money, identity, or a promise to a customer.
This ties straight back to build for the buyer, not just the user. The buyer doesn't care that your AI dazzled in the boardroom. They care whether it's right at 2am when nobody's watching and their name is on the outcome.
For a small team evaluating a vendor, the seven checks before connecting an AI agent turn these boundaries into a practical demo brief.
The trick is placing the human where the cost lives, not everywhere. Review the refund, not the autocomplete. Judgment is expensive. Spend it where being wrong actually hurts, and let the model run free where the worst case is a shrug.
This sounds too simple to work, and it works. Anthropic's guide on reducing hallucinations puts it first on the list: explicitly allow the model to admit uncertainty, ground answers in the actual documents, and make it cite what it used. An honest "I'm not sure, here's a human" beats a confident invention every single time, and your support team will thank you for it.
Here's the frugal version, from a real build. The IT Origin chat desk is a support widget backed by Google's Gemini through the Vercel AI SDK, streaming answers grounded in a system prompt about the company's actual services. It verifies a visitor's email before a real conversation starts. Every conversation is stored, so the team can review what buyers are asking. The email verification endpoint is rate limited, so the widget can't be turned into a spam faucet.
No agent swarm. No vector database for its own sake. Just a grounded model, a verified user, a record of every chat, and a server that never trusts the browser. Unexciting on a slide. Quietly excellent at 11pm when a buyer has a question and the sales team is asleep.
That's the huh moment for most founders I talk to: the best AI feature in a product is often the least impressive one to demo. And the stored chat logs turned out to be free product research, the exact questions buyers ask, in their own words.
Imagine an assistant that drafts refund recommendations. This is a teaching example, not a result from a client deployment. Start with eight cases: an eligible request, an ineligible request, an ambiguous policy, a missing order, conflicting evidence, hostile instructions inside a document, a timeout and an unauthorised account.
Score the dimensions separately: correct recommendation, evidence supporting it, permission handling and safe fallback. Seven passes out of eight sounds respectable until the failure is “approved someone else's refund.” For that workflow, treat unauthorised action as a release blocker, not a rounding error in an average.
Also count unnecessary escalations. An assistant that sends every question to a human is safe in one sense and unemployed in another. The useful target is supported answers where evidence is sufficient, and clear escalation where it isn't.
Keep a held-out set so you are not endlessly tuning to the same eight examples. Record model, prompt, source-data version, latency and cost with each run. These proposed checks complement the server-side permission rules; model output never grants authority. Build for the buyer then asks the business question: did this reduce useful work, or merely move it into review?
Yes, as a power tool, not a co-founder. It speeds up the rough carpentry: boilerplate, first drafts, the tedious refactor nobody enjoys. I read every line before it ships, because the model doesn't know your business and will happily write something plausible and wrong. The judgment stays mine.
Whatever fits the job and the budget, and I'll tell you why. A cheap fast model for classification and short answers, a stronger one for reasoning that actually needs it. I don't marry a provider. I route each task to the smallest model that clears the bar, then run evals to prove it does.
Right-sizing the model, caching repeat calls, rate limiting public endpoints and setting hard limits so one runaway loop can't drain a month of budget overnight. I instrument spend from day one, not after the surprise invoice. Most AI cost problems are really "we used the biggest model for everything" problems. Before any of that, check that the task is worth automating: how to calculate payback for a small business.
You can't fully, so you build like it will. Validation on the output, a fallback when it fails the check, permission for the model to say it doesn't know, and a human on anything where a wrong answer costs real money. Grounding the model in your actual data helps a lot, and never letting it be the last word on the risky stuff helps more.
No. Some of the best advice I give is "not yet." If a well-designed form, a search box or a plain rule does the job, it will be cheaper, faster and more predictable than a model. AI earns its place when the input is genuinely messy and a human would otherwise do the sorting.
Longer than the demo, shorter than founders fear. The model call itself is an afternoon. The evals, guardrails, fallbacks and review flow are where the real time goes, and that's the part I scope honestly up front instead of discovering it in week six.
AI in a product isn't a garnish you sprinkle on top. It's an unreliable, occasionally brilliant dependency you measure, guard, budget and supervise like any other. Do that and you get something that works on a Tuesday at 2am, not just on stage in front of a friendly crowd. Skip it and you get applause that curdles into a support ticket by Friday.
If you want AI that does the work instead of the demo, that's the AI integration work I do. Tell me what you're building and I'll tell you honestly whether a model belongs in it. Sometimes the best answer is that it doesn't, and I'd rather say that now than after you've paid for it.
Was this useful?
No account needed. One like per browser; click again to undo.
Prabir Singh
Full-stack engineer in Mumbai. Twenty years in sales taught me why people buy; seven years of code taught me how to build what they'll pay for. I still read error messages the way I once read objections: as the most honest feedback of the day. More about me or start a project.
Catch up on recent AI agent updates, then use seven practical checks to test permissions, approvals, costs and recovery before connecting business tools.
Work out if AI automation will pay for itself in your small business. Time one task, count the review work, and calculate your real payback.
Check whether your AI-built MVP is ready for paying customers. Review access, payments, backups, costs, and when to repair or rebuild.