Date: Nov 30, 2026
Subject: Choosing Between an AI Agent and a Simple Automation Script
nairobi_systems_engineer
$ cat decision_problem.txt
"Client wants 'AI' for a task that could be solved with a cron job and an if-statement."
$ echo "Let's actually think about this before we spend their money."
> _
Choosing Between an AI Agent and a Simple Automation Script
Every few months a vendor, a developer, or an overenthusiastic nephew walks into a Nairobi business and suggests "we should use AI for that." Sometimes they're right. Often they're describing a glorified spreadsheet macro with a markup attached. Before you commit budget — especially budget priced in US dollars and therefore exposed to exchange rate movement — it's worth understanding what you're actually choosing between: a simple automation script, or an AI agent. They solve different problems, cost differently to build and run, and fail in different ways. Getting this choice wrong is one of the more expensive mistakes a small business or SACCO can make when digitising a process.
What's the Actual Difference
The terms get thrown around loosely, so it helps to be precise. This isn't about which one sounds more impressive in a pitch deck — it's about how each one behaves when your business depends on it at 6pm on a Friday with a weak internet connection.
Simple Automation Scripts
A simple automation script follows a fixed, predictable path. If a payment reference matches a pattern, mark the invoice as paid. If a stock item falls below a set level, send a WhatsApp alert to the procurement officer. If a form is submitted on your website, add the row to a spreadsheet and send a confirmation SMS. The logic is written explicitly by a developer, step by step. It does exactly what it was told to do, every single time, and nothing more. When it breaks, it's usually because the input changed in a way the script didn't anticipate — a bank statement format changed, a field was renamed, an API the script depended on went down. Debugging is straightforward because you can read the code line by line and see exactly where it failed.
AI Agents
An AI agent is given a goal and some tools, and it decides the steps itself, often using a language model to interpret unstructured input, make judgment calls, and choose which action to take next. Instead of "if X then Y," you're closer to "here's the goal, here's what you're allowed to do, figure out a reasonable path." This matters when the input is messy — a customer typing a complaint in Sheng mixed with English, a scanned receipt with smudged ink, a question that could mean several different things depending on context. An agent can handle variability that would require you to write hundreds of explicit rules to cover with a script. The tradeoff is that its behaviour is probabilistic, not deterministic — it will usually do the sensible thing, but "usually" is doing a lot of work in that sentence, and when it's wrong, tracing why can take real effort.
Why This Choice Matters More for Kenyan Businesses Specifically
The underlying engineering tradeoff is the same everywhere in the world, but the local operating environment changes how much each tradeoff costs you.
Cost and Forex Exposure
Most AI agent tooling — the underlying models, the hosting, the developer platforms — is priced in US dollars and billed on usage. A script, once built, typically runs on infrastructure you already pay for, or on a small, predictable hosting fee. If you build an AI agent that processes customer queries continuously, your monthly cost can fluctuate with both your query volume and the shilling-dollar exchange rate. A simple script that runs the same job every night at a fixed cost is far easier to budget for, and far easier to defend to a finance committee or SACCO board that wants predictable line items. This doesn't mean avoid AI agents — it means model the cost realistically, including a buffer for currency movement, before you commit, rather than discovering the real monthly bill after three invoicing cycles.
Subscription Costs Add Up Quietly
A single AI tool subscription might look affordable in isolation. The problem is that businesses rarely adopt just one — a chatbot platform here, a document processing tool there, an email assistant somewhere else — and each one bills separately, often with minimum charges regardless of how lightly you use it. Before signing up, ask what happens to the cost if your usage doubles, and what happens if you need to cancel. Compare that honestly against a one-time development cost for a script that does the one thing you actually need.
Data and Connectivity
AI agents that rely on cloud-hosted models need a live internet connection to think. If your business operates from an area with inconsistent connectivity, or you're running a till-point or clinic reception process that must work during a power or network blip, a script that can run locally and queue its actions for later sync is often more reliable than an agent that stalls mid-task because it couldn't reach its model provider. This is a practical, unglamorous reason many Kenyan SMEs are better served by automation scripts for anything customer-facing and time-critical, reserving AI agents for back-office tasks where a short delay is tolerable.
A Practical Framework for Deciding
Rather than asking "should we use AI," ask a smaller set of concrete questions about the specific task in front of you.
How Structured Is the Task?
If the Inputs Are Predictable
If the data coming in always has the same shape — a fixed-format M-Pesa statement, a standard form, a database record with known fields — a script will handle it faster, cheaper, and more reliably than an agent. There's no judgment required, so don't pay for judgment.
If the Inputs Are Messy or Conversational
If you're dealing with free-text customer messages, documents that vary in layout, or requests that require interpreting intent, a script will require an exhausting number of manual rules to cover the variation, and will still miss cases. This is where an agent's ability to interpret unstructured input earns its cost.
What Happens When It's Wrong?
Consider the consequence of an error. A script that misfiles a stock reorder notification is an inconvenience. An AI agent that misreads a customer's loan repayment instruction and acts on it autonomously is a financial and reputational risk. As a general rule, the closer a task sits to money movement, regulatory reporting such as KRA eTIMS submissions, or anything touching personal data under the Data Protection Act, the more you want deterministic, auditable logic — a script, or an agent that proposes an action for a human to approve rather than one that acts unsupervised. Keep a human in the loop anywhere the mistake would be expensive or hard to reverse.
Who Will Maintain It?
A script written by a competent developer can usually be handed over, documented, and maintained by whoever comes after them, even with a modest local IT budget. An AI agent built on a particular platform or model provider can create a quieter form of dependency — if the provider changes pricing, changes model behaviour, or discontinues a feature, your "simple" automation can require redevelopment at a time you didn't choose. If you're a small team without a dedicated technical hire, weigh this long-term maintenance burden as heavily as the upfront build cost.
Real Scenarios From Kenyan Business Contexts
A SACCO Reconciling Member Contributions
Matching M-Pesa statement entries against member accounts is highly structured — the data has a predictable format and the matching logic is rule-based. This is a textbook script job. An AI agent adds cost and unpredictability without adding capability here.
A Clinic Handling Patient Enquiries
Patients ask questions in varied ways, in different languages and registers, about appointments, symptoms, and billing. An agent that can triage and draft responses — with a human reviewing anything medical before it goes out — fits better than a rigid script, provided patient data handling complies with data protection obligations and sensitive queries are always escalated to staff.
A Fintech Processing Loan Applications
Extracting data from uploaded ID documents and payslips that arrive in inconsistent formats suits an AI agent for the extraction step, but the actual credit decision and disbursement should remain governed by explicit, auditable rules you can defend to the Central Bank of Kenya or any relevant regulator, with the agent's output treated as a draft, not a verdict.
A School Managing Fee Reminders
Sending SMS reminders when a fee balance is overdue is entirely structured and repetitive — a script, running on a schedule, is cheaper and more reliable than any AI tool for this, with no judgment required anywhere in the process.
The Hybrid Approach Is Usually Correct
In practice, the best-built systems aren't purely one or the other. A script handles the predictable backbone of a process — scheduling, data movement, record-keeping — and calls on an AI agent only for the one step that genuinely requires interpreting messy input, such as reading a free-text complaint or summarising a document. This keeps your costs mostly fixed and predictable, keeps most of the system auditable, and confines the unpredictable, dollar-billed component to the smallest part of the workflow that actually needs it.
What Usually Goes Wrong
Over-Engineering With AI
The most common mistake is reaching for an AI agent because it's the fashionable choice, for a task that a junior developer could script in an afternoon. This shows up later as an unexplained recurring dollar expense and a system that behaves slightly differently each time it runs, which makes staff distrust it.
Under-Engineering With Scripts
The opposite mistake is trying to force a rigid script to handle genuinely variable, conversational input by writing an ever-growing pile of if-statements. This becomes unmaintainable, breaks constantly, and frustrates both staff and customers, when an agent designed for exactly that kind of variability would have been simpler in the long run.
Data Protection and Compliance Considerations
Whichever route you choose, be deliberate about where data goes. If an AI agent sends customer, patient, or member data to a third-party model provider outside Kenya for processing, understand what that means for your obligations under data protection law, and don't assume a vendor's marketing claims substitute for your own compliance check. A plain automation script that keeps data on infrastructure you control is often the lower-risk default for anything involving personal or financial information, and where you do use an external AI service, confirm current requirements with the Office of the Data Protection Commissioner and your own legal counsel rather than relying on assumptions.
Final Word
Neither option is inherently better — they're tools suited to different shapes of problem. Start by writing down, in plain language, exactly what the task does today, how variable the inputs really are, what a mistake would cost you, and who will maintain the system in a year. Most of the time, that exercise alone will make the right choice obvious, and it will usually be more boring, and cheaper, than the AI pitch you were originally given.
Want this handled for you?
We build AI agents and automation for Kenyan businesses — and the infrastructure underneath them. Run the automation scan and find out what's worth building first.