LeronX Blog · Services ยท AI development
How to scope a custom AI agent project (before you spend on development)
By LeronX team · · 5 min read
Many AI projects stall not because the technology fails, but because nobody wrote down exactly what the system should do, with which data, and how anyone would know it works. A clear scope is the cheapest part of an AI project and the part that most affects the outcome. This guide walks through the questions we work through with clients before any development starts. You can use it whether you work with us or with someone else.
1. Describe the job, not the technology
Start with the task in plain words, as you would explain it to a new colleague. “When a supplier emails an invoice, check it against the purchase order, flag differences, and draft the entry for our accounting system.” That sentence is more useful than “we need an AI agent with RAG”. A good scope answers:
- Trigger: what starts the task? An email, a form, a schedule, a person asking?
- Inputs: what information does the task need, and where does it live today?
- Output: what does “done” look like — a draft, a record in a system, a message, a report?
- Who uses it: staff, customers, or both? How technical are they?
It helps to collect real examples: ten or twenty genuine cases of the task, including awkward ones. They become the test set later.
2. Decide where AI is actually needed
Not every step needs a language model. Moving data between systems, applying fixed rules and sending notifications are often better done with ordinary code, which is cheaper, faster and fully predictable. AI earns its place where the input is messy or written in natural language: reading emails and documents, classifying requests, extracting fields from inconsistent formats, drafting text, or searching knowledge in plain words.
A useful rule: use AI for understanding and drafting, and use ordinary code for rules, calculations and anything that must be exactly right every time.
3. List the actions and set their limits
An agent is useful because it can act — but every action is also a risk. List each action the system may take and give it a permission level:
- Automatic: read-only and low-risk actions, such as looking up an order or summarising a document.
- Prepared for review: drafts that a person approves — replies, records, purchase orders.
- Always confirmed: payments, sending data outside the company, deleting records, changing customer accounts.
- Never: actions the agent must not be able to perform at all, enforced by giving it no access, not just by instructions.
The last point matters. Instructions in a prompt can be overridden by unexpected input; access controls cannot. If the agent should never issue refunds, it should not hold credentials that can issue refunds. We discuss the same principle for browser agents in safe browsing with AI agents.
4. Map the data and its sensitivity
- Which systems hold the inputs, and do they have an API or export?
- Does the data include personal information, health, financial or confidential business data?
- Which AI provider will process it, in which region, and under what data-processing terms? Can it be processed with a provider that does not train on your data, or on your own infrastructure?
- What must be logged for audit, and what must not be stored?
Answering these early avoids rebuilding later because a compliance review rejected the design.
5. Define success before building
Agree on how the result will be judged. Good measures are concrete and checkable against your real examples:
- Share of test cases handled correctly without human edits.
- Share of cases correctly flagged for a human instead of guessed.
- Time a person spends per case before and after.
- Error types that are unacceptable at any rate (for example, sending a document to the wrong customer).
Measure the current process first, even roughly. Without a baseline, nobody can say whether the system helped. Our automation ROI checklist covers this in more detail.
6. Plan for the cases it gets wrong
Every AI system makes mistakes. The design question is what happens when it does. A good scope specifies how the system signals uncertainty, where uncertain cases go, who reviews them, and how corrections feed back into improving prompts, rules or data. A system that says “I am not sure, please check” is far more valuable than one that is right slightly more often but never admits doubt.
7. Start with a narrow first version
Pick the most common, best-understood variant of the task and build that first. A narrow version that works reliably on a clear slice of real cases is more useful — and teaches you more — than a broad one that half-works everywhere. Typical phases look like this:
- Discovery and scope — the questions above, real examples collected, success measures agreed.
- Prototype — tested against the example set, with results shared openly, including failures.
- Pilot — used on real work with a person reviewing every output.
- Rollout — review reduced only where results justify it, with monitoring in place.
How long each phase takes depends heavily on the systems involved and the quality of the data, so be cautious of anyone who quotes a fixed timeline before seeing them.
8. Questions to ask any development partner
- How will you test the system against our real examples, and will we see the failures as well as the successes?
- Which actions can the agent take on its own, and how is that enforced technically?
- Which AI provider processes our data, and what are their retention and training terms?
- What happens when the AI provider changes or deprecates a model?
- Who owns the code, prompts and configuration at the end?
- How do we monitor quality after launch, and who fixes problems?
A one-page scope template
If you only write one document, make it this: the task in one paragraph; trigger, inputs and outputs; the list of actions with permission levels; data sources and sensitivity; success measures and unacceptable errors; what happens with uncertain cases; and the narrow first version. That page will make every later conversation faster and every estimate more honest.
If you would like help working through it, our AI development and automation services start with exactly this scoping step. You can tell us about your project and we will reply with questions, not a sales pitch.
Related reading
Need help with an AI project? Tell us about it — our development, automation and marketing services are available now.