Where AI pays off in business software, and where it does not

Where AI earns its place in business software (retrieval, drafting, extraction, triage), where it does not, and how to guard, test and budget a first feature.

Written by
DevTech365 Engineering
Published
Reading time
7 minutes

Adding AI features to business software is easy to start and hard to make pay. A demo takes an afternoon. A feature that stays accurate, affordable and safe with real customers takes engineering that most demos skip.

We have built AI into two real systems: a Bangla sales assistant that has answered Facebook Messenger leads for PromptCV.app since July 2026, and PagePilot, a multi-tenant SaaS in pre-launch that automates Facebook Pages for many businesses. This is what those systems taught us about AI development for business software: where it pays off, where it does not, the controls it needs and how to scope a first feature.

Where AI pays off

The strongest use cases share a shape: high volume, language-heavy work and a clear definition of a good result. Four patterns cover most of them:

  • Retrieval over your own data. Answering questions from your documentation, policies or catalog, grounded in retrieved passages rather than the model's memory. Our sales assistant runs hybrid vector and text search over the product knowledge base, so prices come from the current price list, not from training data. In our experience, how the content is chunked matters more than the search engine behind it.
  • Drafting with review. First drafts of replies, posts, summaries and reports that a person approves. In PagePilot, public comment replies default to draft mode, and a new customer's first daily posts wait for approval.
  • Extraction. Turning emails, PDFs and forms into structured fields, validated against a schema before anything downstream trusts them.
  • Triage. Classifying and routing incoming work such as support tickets, leads or comments worth answering. Constrain the output to a fixed set of labels and decide in advance what a failure means. PagePilot's comment classifier can only answer reply or skip, and anything other than a clean reply, including an error, counts as skip.

Where it does not

AI is the wrong tool more often than vendors suggest:

  • Rules you can write down. Pricing math, permissions, eligibility and tax are cheaper, faster and testable in code. Our sales assistant detects buying signals with deterministic patterns and leaves only the wording to the model.
  • Exact values the model could invent. Prices, dates, URLs and legal claims should come from data or templates. We append campaign tracking parameters to links in code, because long query strings are exactly what models silently mangle.
  • Irreversible actions without a gate. Payments, deletions and public posts need a person or a deterministic check between the model and the action.
  • Work with no definition of good. If you cannot say what a correct output looks like, you cannot evaluate it or tell whether a model change helped.
  • Low-volume tasks. If a person does it a handful of times a month, a better form or search box is usually the cheaper fix.

Guardrails that run on every output

Prompts are instructions, not controls. Controls run in code, on every output, before it reaches a customer:

  • Deterministic checks first. Patterns for forbidden claims, link allowlists and bans on phone numbers or email addresses in public replies. They are free, fast and predictable.
  • Repair once, then fall back. Our sales assistant gets one repair pass that names the broken rule. If that fails, it sends a safe fallback line and alerts the team.
  • An independent judge for public output. PagePilot's safety judge sees only the candidate reply, never the visitor's text, so injected instructions cannot talk it out of its job. It fails closed.
  • Instructions kept apart from untrusted input. Business rules go in the system instruction. Visitor text is wrapped in random per-request delimiters and truncated.

Decide in advance whether each control fails open or closed. Our sales assistant's spend limiter fails open, because going silent on a customer is the worse outcome. Its proactive follow-ups fail closed, because an unwanted message can get the Page's messaging restricted. PagePilot's public-reply classifier and judge fail closed, because a wrong public post cannot be taken back.

Then test the guardrails against correct answers. One of our early claims checks flagged the correct denial of a job guarantee, because the denial contained the word guarantee. A guardrail that blocks good copy quietly replaces your best answers with fallbacks. We walk through that case in how we built our Bangla RAG sales assistant.

Evaluate the outcome you sell

Generic benchmarks will not tell you whether a model works for your product. Build an evaluation set from your own scenarios, run each one several times and grade deterministically wherever you can, because rule checks cost nothing. Use model judges only for the qualities rules cannot see, with blind comparisons and randomized answer order.

We learned this when we tried a model that was 21 times cheaper per reply than Gemini. It passed the same safety checks, and in blind comparisons it sold worse: it dead-ended on price questions, answered half of a two-part objection and recommended plans that did not fit. Safety was never the differentiator. Selling was, so we went back to Gemini.

Two things made that comparison cheap to run. The model call already sat behind one interface, so adding a second provider was a small change. And the safety grading was deterministic, so only the blind comparisons needed extra model calls.

Treat cost control as a feature

Model spend scales with usage and abuse, not with your plan. Build the limits in from the first release:

  • Measure every call. Record input, cached, reasoning and output tokens, plus the model version the response reports. Pin versions, because a floating alias can move to a pricier model without any code change.
  • Cap per user and globally, before the call. A per-user limit stops one sender from running up the bill, and a global daily cap bounds a webhook storm or retry loop. Check the per-user limit first, so one abuser cannot spend everyone's budget. A cap counted in calls is a dollar budget in disguise, so recalculate it when prices change.
  • Don't pay the model for what code can do. Fixed questions get fixed answers, retries are bounded, and a reply that was generated but not delivered is reused instead of regenerated.
  • Bound inputs and outputs. Truncate untrusted input. Output caps limit worst-case cost, but on models that reason before answering, the reasoning counts against the cap and a tight cap can cut off the visible reply, so test caps on real prompts.
  • Meter blocked output too. PagePilot records usage for replies its guard rejects, because those tokens were still paid for.

Privacy and data handling

Treat every prompt as data leaving your system:

  • Send the minimum. Include the retrieved passages and recent context a reply needs, not whole customer records.
  • Log shapes, not contents. PagePilot's logger redacts message text and hashes Messenger user IDs with a server-side key, so logs stay useful without becoming a copy of customer conversations.
  • Keep admin views lean. The sales assistant's dashboard shows the follow-up queue's state and timing without user IDs or message text.
  • Set retention and know its limits. Expire old conversations and embeddings, and document any derived data a deletion request will not reach, such as a shared embedding cache.
  • Isolate per tenant and test it. In a multi-tenant product, retrieval and prompts must never cross customers. We cover how PagePilot enforces and tests this in tenant isolation in multi-tenant SaaS.
  • Know which data reaches which provider, and review it with whoever owns compliance.

How to scope a first AI feature

A good first AI feature is narrow, measurable and reversible. Answer these before building:

  1. Which single workflow does it change, and does that workflow have enough volume to matter?
  2. What does a good output look like, and how will you grade it automatically?
  3. What happens when the model is down, slow or wrong? Write the fallback first.
  4. Who reviews outputs before they reach customers, and what evidence ends that review?
  5. What is the budget per action, and which caps enforce it?
  6. How do you switch it off without a deploy?

Then release it to a slice of traffic, with telemetry and the evaluation set in place from day one. Both of our systems can be switched off without a deploy: the sales assistant has a global pause, and every PagePilot job checks a per-customer run state and a per-Page feature switch before it does anything.

Takeaways

  • AI pays off in retrieval, drafting with review, extraction and triage.
  • Keep rules, exact values and irreversible actions in code.
  • Guard every output in code, and test the guards against good answers.
  • Evaluate on the outcome you sell, not on price or benchmarks alone.
  • Measure and cap spend from the first release.
  • AI development
  • LLM integration
  • business software

DevTech365 Engineering

Software engineering team

The engineers who build DevTech365's mobile apps, web platforms, APIs and AI systems, writing about the decisions behind production software.

Have a software idea?Let's turn it into something real.

Tell us what you want to build and where you are today. We'll reply with questions, next steps and an honest view of how we can help.