Impakter
  • EXPERT INSIGHT
  • PARTNERS
  • ABOUT US
    • Our Story
    • Team
    • Write for Impakter
    • Contact Us
    • Privacy Policy
No Result
View All Result
  • Climate
  • Business
  • Energy
  • Tech
  • Politics
  • Health
  • Food & Agriculture
  • Society
  • Climate
  • Business
  • Energy
  • Tech
  • Politics
  • Health
  • Food & Agriculture
  • Society
No Result
View All Result
Impakter
No Result
View All Result

How to Build an AI Agent in Days, Not Months

byHannah Fischer-Lauder
November 26, 2026
in Business, Tech
Developer typing software code on a laptop

A developer codes an AI agent, from initial prototype to testing. -- Photo Credits: Sora Shimazaki

Knowing how to build an AI agent is less about the framework than about five decisions made before any code is written. They cover the one job the agent does, the sources it may use, the actions it may take, when it must refuse, and how it will be tested. Get those right and a working prototype can take days.

Most online guides list ten or more steps, from choosing a model to deploying on a website. The steps are correct, but they hide where projects go wrong.

In June 2025, Gartner forecast that more than 40 percent of agentic AI projects will be canceled by the end of 2027. The reasons it gave were escalating costs, unclear business value and inadequate risk controls. Model size is not on the list.

Decide the one job the agent will do

An AI agent is software that uses a language model to decide which tool to call, reads the result, and continues until a task is done or it needs a person. That loop is powerful, which is why the first decision is to keep it narrow. One agent, one job, described in a sentence a colleague would understand.

Some jobs do not need an agent at all. When a process follows the same steps every time, ordinary automation does it for less money and leaves a cleaner audit trail. An agent earns its place when the input varies and the system must choose between a few tools. It might answer from a document, look something up in a database or hand the case to a person.

The narrower the job, the shorter the build. “Answer questions about our product manuals” can be a week of work, while “run customer service” is a program with no end date.

Give it trusted sources, not the whole internet

A general model knows a little about everything and is confident about all of it. For most business uses, that confidence is the problem. The fix is retrieval: the agent searches a defined set of documents, pulls the passages that match the question and answers from those passages rather than from memory.

Choosing that document set is the most important design decision in the build. It decides what the agent can know, how current it is and who is responsible when a document changes. A smaller, well-kept collection of sources usually beats a larger, messy one, because the agent can only be as accurate as the text it retrieves.

Structured data needs a different route. Prices, stock levels or relationships between records sit better in a database or a graph, which the agent queries through a dedicated tool. Mixing the two, documents for explanations and a database for facts, covers most early use cases.

Limit what it can do, then let it earn more

Every tool an agent can call is a permission. Reading a document is low risk. Sending an email, changing a record or making a payment is not. A first version should hold only the tools its one job needs, and ideally only tools that read rather than write.

Atul Arya, writing in Impakter’s guide to AI agents for chief information officers, puts the principle plainly: never grant autonomy upfront, and let each system earn it over time. In practice that means a log of every tool call, a person approving any action with consequences, and new permissions added only after the logs show the agent handles the current ones well.

Teach it when to say no

The most useful behavior in an early agent is refusal. When retrieval finds nothing relevant, the agent should say so instead of filling the gap with a plausible guess. That rule has to be written down before the build starts, because it shapes the prompts, the tools and the tests.

A good refusal is specific. “The documents I can search do not cover this” tells the user where the limit is. A handoff, to a person or to a support queue, turns the refusal into a next step rather than a dead end. Showing the source passage beside each answer helps too, because users can check the agent instead of trusting it.

Test it before anyone relies on it

Testing starts with an evaluation set: real questions the agent should answer, each paired with the answer a person would accept and its source. Fifty real questions from future users make a better test than a thousand invented ones. Include questions the agent should refuse, because a refusal that never fires is a bug.

Then test the failures, because an agent’s worst answers come from situations nobody planned for. Break a tool on purpose and check that the agent reports it rather than inventing a result. Feed it unclear, hostile or off-topic inputs. Change a source document and confirm the answer changes with it. Each test that fails is cheaper to find in week one than after customers have seen it.

Only then, pick a build route

With the five decisions written down, the choice of tools gets easier. Visual builders let a team connect a model, a few tools and a workflow without writing code, which suits internal helpers and simple lookups. Developer frameworks such as LangChain, LangGraph or the agent kits offered by model providers give more control over routing, memory and testing.

A custom build makes sense when the agent must reach systems no off-the-shelf connector covers, such as an in-house database, a legacy records system or data with strict access rules. It costs more at the start and gives the owner full control over where data goes and how each answer is produced.

The route can change later. Many teams prototype in a visual builder to prove the idea, then rebuild the parts that matter in code once they know which questions users actually ask.

A three-day build, in practice

CorLab Tech, a software development company, published a build log of a medical-information agent it built in three days. The agent answers medication questions from official product leaflets, scraped from a national medicines agency, and drug-interaction questions from a graph of interaction data. The log calls it deliberately narrow.

The agent takes no actions at all, and when its sources hold no answer, it is designed to say so instead of guessing.

Its stack is widely used: LangChain and LangGraph for the agent logic, Qdrant for searching the leaflets, Neo4j for the interaction graph and Supabase for logins and chat history. The agent has two tools, one for medication questions and one for interactions. On the first day, tool selection was tested with questions about the Bitcoin price, before any medical data was loaded.

Day two produced the build’s main failure. Letting the model write graph queries freely broke whenever the data’s structure or naming shifted, so the build switched to LangChain’s GraphCypherQAChain, which gives the model the current schema with each question. Vector search over the leaflets, by contrast, worked from the start.

The final day went to the interface, the connection between it and the Python backend, and deployment on a single cloud server. As a last test, clinical guidelines and operational protocols were added to the sources, and the agent answered questions about them.

What the log does not claim is just as useful. The prototype was checked by the people who built it, not against questions reviewed by clinicians. Its interaction data came from an old research spreadsheet rather than a maintained, licensed database.

The leaflets were scraped once, with no process to load updated versions, and the setup had no redundancy. The log states that the agent needs clinical validation before anyone relies on it.

Read against the five decisions, the build settles four of them: one job, two trusted sources, no actions and a refusal rule. The fifth, independent testing, is the part three days could not cover. Three days can prove that the pipeline works on real documents. They cannot prove that the answers are accurate often enough, that the data stays current or that the system is safe for sensitive information.

The smaller the agent, the smaller the footprint

Every answer an agent gives uses electricity, and the cost is easy to overlook in a prototype that serves a few dozen users. Google estimated in August 2025 that the median text prompt to its Gemini Apps uses 0.24 watt-hours of energy and 0.26 milliliters of water.

That figure covers serving the answer, not training the model. Reasoning models that work through several steps before answering can use more energy per answer, and an agent that calls a model several times per question multiplies the total.

Per answer, the numbers are small; the totals are not. The International Energy Agency estimates that data centers used about 415 terawatt-hours of electricity in 2024 and projects roughly 945 terawatt-hours by 2030, with AI the main driver. Regulators have noticed. The European Commission consulted developers in April 2026 on how to measure AI energy use and emissions, as groundwork for a possible AI energy label.

For a team building its first agent, the practical rule is simple. Use the smallest model that passes the evaluation set, cache answers to common questions, and avoid multi-step reasoning when one retrieval and one answer will do. Measured cost per answer and energy per answer belong in the same report as accuracy.

From prototype to production

Projects that survive tend to add the dull parts early. That means access control matched to the data, monitoring of every tool call, a process to refresh sources, a budget for cost per answer and a named person who owns the agent’s mistakes. None of it is visible in a demo, and all of it decides whether the agent is still running a year later.

Teams that buy rather than build face one more risk. The same Gartner forecast warned about agent washing, the relabeling of chatbots and older automation as agents, and estimated that only about 130 of the thousands of vendors marketing agentic AI offer genuine agentic capability.

A fast build is a good way to learn whether an agent deserves that investment, and a cheap way to find out that it does not. The first question to settle is not which model to use. It is which one job the agent will do, and what it should say when it does not know.


Editor’s Note: The opinions expressed here by the authors are their own, not those of Impakter.com

Share
WhatsApp LinkedIn X Facebook
Tags: Agentic AIAI AgentsAI DevelopmentAI Governanceartificial intelligenceGenerative AISoftware DevelopmentSustainable Technology
Previous Post

After Antalya: Climate Diplomacy’s Crisis of Trust

Hannah Fischer-Lauder

Hannah Fischer-Lauder

Hannah Fischer-Lauder is an anthropologist and a graduate of McGill University. After 15 years of field research in Madagascar and New Guinea, she has returned to Europe and America to study cultural diversity in western society.

Related News

Developer typing software code on a laptop

How to Build an AI Agent in Days, Not Months

November 26, 2026
Final moments of COP31 in Antalya, Türkiye, Nov. 22, 2026. Photo Credit: © UN Climate Change / Kiara Worth.

After Antalya: Climate Diplomacy’s Crisis of Trust

November 26, 2026

Impakter keeps you informed through its ESG news platform and empowers your business through the Impakter Index.

To assess and improve your company’s ESG performance, explore Klimado’s ESG dashboard and assessment tools at www.klimado.com.

Registered Office Address

Klimado GmbH
Niddastrasse 63,

60329, Frankfurt am Main, Germany


IMPAKTER is a Klimado GmbH website

Impakter is a publication that is identified by the following International Standard Serial Number (ISSN) is the following 2515-9569 (Printed) and 2515-9577 (online – Website).


Office Hours - Monday to Friday

9.30am - 5.00pm CEST


Email

stories [at] impakter.com

By Audience

  • TECH
    • Start-up
    • AI & Machine Learning
    • Green Tech
  • ENVIRONMENT
    • Biodiversity
    • Energy
    • Circular Economy
    • Climate Change
  • INDUSTRY NEWS
    • Entertainment
    • Food and Agriculture
    • Health
    • Politics & Foreign Affairs
    • Philanthropy
    • Science
    • Sport
    • Editorial Series

ESG/Finance Daily

  • ESG News
  • Business

About Us

  • Team
  • Partners
  • Write for Impakter
  • Contact Us
  • Privacy Policy

© 2026 IMPAKTER. All rights reserved.

No Result
View All Result
  • Climate
  • Business
  • Energy
  • Tech
  • Politics
  • Health
  • Food & Agriculture
  • Society

© 2026 IMPAKTER. All rights reserved.