AI systems · AI engineering · Automation

Before building an AI agent, try solving it without AI

Sharath Challa5 min read
Before building an AI agent, try solving it without AI - Featured image

Short answer

Map the workflow, separate rules from reasoning, and use AI only where interpretation is needed. Many good systems use AI for a small part of the work, and that is fine.

Short answer: Before building an AI agent, try to solve the problem with ordinary software first. Map the workflow, separate decisions that follow clear rules from those that need interpretation, use deterministic code for the predictable parts, and bring in AI only where it is genuinely needed. Then measure both versions. You may end up with a system that uses AI for a small part of the workflow, and that is a perfectly good outcome.

If you would rather have V12 Labs build it, get your free agent plan. We will put the scope, timeline, and price range in writing. You keep the plan, and if we build it, you own the code, data, and IP from day one.

On this page

Why an AI company would say this

It sounds counterintuitive coming from someone building an AI company. But every part of a system that does not need a model is a part that is cheaper, faster, easier to test, and easier to debug. Your customers do not care how many tokens your system consumes or how many agents are working behind the scenes. They care whether the problem is solved.

AI should be a component of the solution, not a requirement for every component.

Step 1: Map the entire workflow

Before choosing any technology, write the workflow down end to end:

  • Inputs: what arrives, from where, in what format
  • Decisions: every point where someone chooses between options
  • Actions: what gets created, updated, sent, or filed
  • Outcomes: what "done correctly" looks like

Do this with the people who run the process today. The goal is a list of steps detailed enough that a new employee could follow it. Steps that nobody can describe precisely are worth flagging, because they are often where interpretation, and sometimes AI, actually belongs.

Step 2: Separate rules from reasoning

Go through every decision on the map and ask: can this be made with a simple condition, a calculation, or a database query?

You do not need a language model to check whether an invoice is overdue. That is a date comparison. You do not need one to route a ticket from a known enterprise account to its assigned manager. That is a lookup.

Decision Rule or reasoning? Implementation
Is the invoice past its due date? Rule Date comparison
Does the order total match the PO? Rule Calculation
Which manager owns this account? Rule Database lookup
What is this customer actually asking for? Reasoning Language model
Is this unusual document a valid contract amendment? Reasoning Language model plus human review

Rules belong in code. They are deterministic, testable, and free to run.

Step 3: Identify where intelligence is actually needed

After the rules are pulled out, what remains is the work that genuinely requires interpretation:

  • Reading an ambiguous or free-form email
  • Interpreting an unusual document layout
  • Classifying a request that does not fit existing categories
  • Handling exceptions that no rule anticipated
  • Drafting a response that needs context and tone

These are good uses of AI. They are also the parts where you should expect occasional errors, so they deserve validation, logging, and in many cases a human check.

Step 4: Combine both approaches

Use deterministic code for predictable operations and AI for problems that require interpretation. In practice, the shape is usually code wrapped around a few model calls:

  1. Code receives the input and validates its structure.
  2. A model call extracts or interprets the parts that need it, returning structured output.
  3. Code validates that output against rules (required fields, allowed values, totals that add up).
  4. Code performs the actions through integrations.
  5. Anything that fails validation or falls outside known patterns goes to a person.

This keeps the model focused on what it does well and keeps business logic where you can see it and test it.

Step 5: Measure the difference

Compare the hybrid design against an AI-first version where a model handles everything. Look at four dimensions:

Dimension What to compare
Cost Model usage and infrastructure per task
Accuracy Correct outcomes on a fixed set of real cases
Latency Time from input to completed action
Maintenance How hard it is to change a rule or debug a failure

Use the same test set for both. In many workflows, the hybrid version is cheaper and easier to maintain, because rule changes become code changes instead of prompt changes, and failures point to a specific step.

A worked example

Illustrative example. Not a client result. Consider an accounts payable workflow for incoming supplier invoices.

  • Receiving the email and saving the attachment: code.
  • Reading the invoice when suppliers use many different layouts: AI extraction into structured fields.
  • Checking the extracted total against the purchase order: code.
  • Checking whether the supplier exists and is approved: database lookup.
  • Flagging duplicate invoice numbers: database query.
  • Explaining a mismatch to the AP clerk in plain language: AI drafting.
  • Posting to the accounting system: code through an API.

Only two of seven steps use a model. The system is still meaningfully "AI-powered" where it matters, and everything else is predictable.

FAQ

Isn't an all-AI agent faster to build? It can be faster to demo. It is often slower to make reliable, because every rule lives in a prompt and every failure requires reading model output to understand what went wrong.

What if rules change often? Keep them in configuration or a small rules table that operations staff can edit. That is still easier to audit than instructions buried in a prompt.

How do I know if a step really needs AI? If you can write the decision as a clear condition, calculation, or query that handles nearly all real cases, it does not. If people describe it with phrases like "it depends" or "you can just tell," it might.

Will using less AI make the system less capable? Usually it makes it more dependable. The model still handles the hard, interpretive parts; it just is not asked to do arithmetic and lookups as well.

If you want help mapping a workflow and finding where AI actually belongs in it, start with the workflow.

Where this fits

Get a clear plan before you spend.

V12 Labs will put the scope, timeline, and price range in writing. If we build it, you own the code, data, and IP from day one.

Related reading

Get your free build plan