All insights

AI agents

AI agents for business: put them to work inside your SaaS

Your product already knows what a valid action looks like. The agent should borrow that knowledge, not replace it.

Co-founder and CEO, Datics AIUpdated 7 min read

In brief

The fastest way to put AI agents for business into an established SaaS product is to wrap what you already run, not rebuild it. The agent reads context from your data model, acts only through the APIs your UI already calls, inherits the signed-in user's permissions, and asks a person to approve anything that writes. The core product stays as it is, so the first agent ships in weeks, not after a replatforming program.

On this page
  1. 01Why a rebuild is the wrong instinct
  2. 02What you actually build around the product
  3. 03How to roll out AI agents for business in a live product
  4. 04Where to start inside the product
  5. 05What we see in production
  6. 06How long it takes and what it costs you in focus
  7. Frequently asked questions

01Why a rebuild is the wrong instinct

When a board or a large customer asks for agents, the first instinct in many product teams is a new AI-first product next to the old one. The other is a rewrite of the old one around a model. Both feel cleaner. Both throw away the asset that makes an agent safe in your market.

A mature vertical SaaS product carries years of business logic, tenant rules, integrations, roles and edge cases. That is not technical debt to route around. It is the specification an agent has to obey. It is also the part a newcomer cannot copy: a generic AI product does not know that a refund over a threshold needs a second approver in one customer's account and never in another.

The work that decides whether an agent survives is rarely about the model. In our experience it is about the rules the agent works within: which data the agent may see, which actions it may take, who approves them, and how you prove afterwards what happened. Your product already answers most of those questions for human users. The job is to make the same answers apply to an AI caller.

Anthropic makes a related point in its guidance on building agents: start with the simplest solution that works and add complexity only when it clearly improves results. Agents trade latency and cost for better task performance. A rebuild is the opposite of that advice. It adds the most complexity before you know which capability earns its place.

02What you actually build around the product

Think of the agent as one more client of your existing services, with a thin harness around it. We call that harness the agent harness: product context, trusted tools, permissions, tenant boundaries, business rules, memory, human approvals, audit trails, observability and failure handling. In practice it comes down to six pieces.

The harness reuses your data model, APIs, roles and review flows. (23 seconds)
PieceWhat it doesWhat you reuse
ContextRetrieves records, documents and history, scoped per tenant and userYour data model and existing search
ToolsThin, typed wrappers over endpoints you already exposeYour API layer and its validation
PermissionsThe agent acts as the signed-in user, never as a super accountYour roles, scopes and tenancy
StateA run record per task, so a step can be inspected, resumed or reversedYour job queue and audit tables
ApprovalWrite actions appear as a proposed change a person confirmsYour existing review and approval flows
EvaluationA regression set of real cases, run on every model or prompt changeYour QA process and test data

Two of these deserve extra care.

Tools should be narrow. OWASP lists "excessive agency" among the top risks for LLM applications and names three root causes: too much functionality, too many permissions and too much autonomy. Its advice is to offer only the functions a task needs, run actions in the user's own context, and enforce authorization in the downstream system rather than trusting the model to decide. A tool called "update any record" is a liability. A tool called "propose a due date change for this assignment" is something your team can test.

Approval should be visible. The Model Context Protocol, an open protocol for connecting models to tools, says there should always be a human in the loop with the ability to deny tool invocations. It also says clients should show tool inputs to the user and ask for confirmation on sensitive operations. In a SaaS product that becomes a familiar pattern: the agent drafts, the user sees exactly what will change, and nothing is written until they confirm.

03How to roll out AI agents for business in a live product

The order matters more than the framework. This is the sequence we follow inside existing products.

Flow of six rollout steps for adding an AI agent to an existing SaaS product, from one workflow to expansion
Most calendar time goes into mapping actions and binding permissions.
  1. 01

    Pick one workflow.

    Choose something frequent, low in blast radius and already instrumented: natural-language questions over your own data, drafting work a person reviews, or triage and routing. A wrong answer there is visible and cheap.

  2. 02

    Map the actions.

    List every read and write the agent would need, the endpoint behind each one, and which roles may call it today. Missing endpoints are the real scope of the project.

  3. 03

    Wrap the tools.

    Build typed wrappers with clear preconditions, and make every write safe to retry so a timeout cannot create a duplicate.

  4. 04

    Bind permissions and tenancy.

    Pass the user's identity through every call. The agent can never do something the same user could not do in the UI.

  5. 05

    Add approval on writes.

    Show the proposed change, the reason and the source records. Keep this on until logs and evaluation justify removing it for a specific action.

  6. 06

    Build the evaluation set.

    Collect real cases, including the awkward ones, and run them before every release and every model change.

  7. 07

    Ship to a small group and watch the logs.

    Expand the scope one action at a time, and earn irreversible actions (payments, clinical or legal records) only after the first capability has a clean record.

Most of the calendar time goes into steps 2 and 4. The model is usually the quickest part to swap. Deciding what the agent is allowed to do, and getting product, security and customer success to agree on it, is the long pole.

For a deeper look at the failure modes that appear after launch, such as duplicate actions on retry and agents acting on stale state, read why AI agents fail in production. Cost is the other surprise for many teams: how much production AI costs in SaaS covers how to measure it per successful task.

04Where to start inside the product

Good first agents share three traits. The user already does the task by hand, often several times a day. The result is easy to check. And the action, if wrong, can be undone or never leaves draft.

Common first releases look like this:

  • Ask your product. A user asks a plain-English question and gets an answer drawn from their own records, within their own permissions, with the sources shown.
  • Draft, then confirm. The agent prepares a reply, a record update or a document, and the user approves or edits it.
  • Triage and route. Incoming items are classified and sent to the right queue, with the reasoning attached so a person can correct it.

Avoid starting with actions that move money, change clinical or legal records, or message customers without review. Those can come later, once you have logs showing how the agent behaves on your data.

05What we see in production

A few patterns repeat across the established products we work on.

The core stays put. On a dealership customer intelligence portal, dealers kept working in it every day while we replaced one module at a time, and CRM, campaigns, workflows and an AI assistant went into the same codebase with no core rewrite. On an investor CRM, the record for the core replacement reads "None": the AI work sat inside the system the team already ran. When modernization is needed, we change only the layer that blocks the capability; on a multi-tenant fulfillment platform, only the legacy storefront layer was replaced.

On a team AI chat product, we moved every custom feature onto a current open source release before adding anything new. Then we took model routing out of the app into its own service, so adding a model no longer means changing the app.

Reliability comes before intelligence. On an inherited prediction market app, we ran the whole stack on live data first, then fixed the launch blockers on the existing code before building anything new. Teams that skip this step end up debugging the product and the agent at the same time.

Approval is a feature users want. In a dental clinical documentation product, live transcription and patient history draft the clinical note, and the dentist reviews, edits and approves it before release. Users trust the agent because the final say stays with them.

Permissions and tenancy carry over. On a secure mobile key platform, every new API we built, from access tokens to invitations, went into the platform's existing identity and access control services rather than beside them, under the client's own technical lead. That is the normal case, not the exception.

06How long it takes and what it costs you in focus

A scoped first agent inside an existing product is usually a matter of weeks to a limited production release, because the integrations, roles and data already exist. What slows teams down is not engineering effort but decisions: which actions are in scope, who approves them, and what evidence a large customer's security review will ask for.

Protect your roadmap by keeping the agent work small and separate. One capability, one owner on your side, pull requests your engineers can review, and a clear end state. Then decide on the next capability with real usage data in hand.

If you need a shared vocabulary for the risk conversation with security and legal, NIST's AI Risk Management Framework is a useful starting point. It is voluntary, it was released in January 2023, and NIST added a generative AI profile in July 2024.

Frequently asked questions

Do we need a new data platform before adding agents?

Usually not. Most first agents read the same records your product already serves through its APIs. A new data platform makes sense when the agent needs data from several systems that your product does not join today, and even then it can follow the first release rather than block it.

Should the agent use a service account?

No. A shared high-privilege account means the agent can do things the user could not. Pass the user's identity and permissions through every tool call, and let your existing authorization decide. That is also what OWASP recommends. The agent should never do something the same user could not do in the UI.

Which model should we use?

Pick the one that runs in the cloud you already use and passes your evaluation set. Keep the model behind your own interface so you can change it later. The harness around the model lasts longer than any single model choice.

How Datics helps

Datics specializes in Brownfield AI: production AI inside software people already rely on. A Build Sprint puts one outcome working in your product's staging in three weeks, for $10,000, and the fee counts toward production. Not sure what to build first? The Planning Sprint ranks it in two weeks, for $5,000.

›References (4)
  1. Anthropic: Building effective agents
  2. OWASP GenAI Security Project: LLM06:2025 Excessive Agency
  3. Model Context Protocol specification: Tools
  4. NIST: AI Risk Management Framework

Related work

Case studies from our projects on the same subject.

A European team AI chat provider

Other software · Multi-model team AI chat

Team AI chat moved onto current open source, every custom feature kept

A team AI chat product had its own features stuck on an outdated open source fork. We carried them onto a current base, open to more AI models.

Brownfield AIModernizationInside a live product
Read case study

CleanHaus

Property Management · Turnover operations SaaS

Hosts and cleaners manage rental turnovers in chat, within each person's permissions

Owners, managers and cleaners all talk in one property chat. Now an AI there acts for each of them, only within that person's role.

Brownfield AIAgentic workflowsPermission-aware
Read case study

Cosmic AI

Fintech · Multi-agent investing assistant

Retail investors go from research to a confirmed order in one conversation

Investors juggled data, news and a separate broker. Now agents research and prepare each trade in chat, and nothing is placed until they confirm.

Agentic workflowsAI-native productHuman approval
Read case study

Your customers already expect AI from your product.

Let us make it real inside the product you run today.