Product

Product overview Agents Automations Apps Code (Beta) Integrations Governed Runtime Security

Where Renly runs

Windows app Android app Inside other AI apps

Solutions

Finance Sales Operations People and HR Marketing Enterprise

Resources

Pricing Docs Academy Blog Compare Support

AI governance and capability

AI governance framework AI governance assessment AI capability maturity AI maturity assessment
Book a demo Sign in

Lesson 1 of 9 · 9 min read

What an agent is made of

Every AI agent, from a demo to a production system, is built from the same few parts. Learn to name them and you can read any agent run, spot where it went wrong, and design your own.

An agent is a loop, not a model

It is tempting to think of an AI agent as a smarter chatbot. It is more useful to think of it as a small system. A language model sits at the centre, but the model alone only produces text. What turns it into an agent is everything wrapped around it: instructions that give it a job, tools that let it read and change things, memory that carries context forward, and a loop that lets it take one step, look at the result, and decide the next one.

A chat assistant answers once. A fixed workflow follows the same steps every time. An agent chooses its own steps toward a goal, inside limits someone has set. That freedom is the point, and it is also why you need to be able to see each step.

The six parts

Every agent you will meet, from a weekend prototype to a production system, is built from these parts. The names vary between products; the jobs do not.

  • Model. The reasoning engine. It reads everything in front of it and decides what to do next: answer, ask a question, or call a tool. Different models trade speed, cost and depth of reasoning.
  • Instructions. The job description: the agent's role, how it should work, what good output looks like, and what it must never do. Clear instructions do more for quality than a bigger model.
  • Tools. The agent's hands and eyes. A search tool lets it perceive; a "create record" tool lets it act. Without tools it can only talk about the work. Lesson 2 covers them in depth.
  • Memory. What it knows beyond this moment: the conversation so far (short-term) and stored preferences, facts and past work (long-term). Lesson 4.
  • Planning. How it breaks a goal into steps and puts them in order, either up front or one step at a time. Lesson 3.
  • Guardrails. The limits it works inside: which tools and systems it may touch, which actions must wait for a person, and budgets on time and cost. Lesson 5.

Research on agent architectures often lists the same thing as capabilities: perception (taking in the request and the world), reasoning, memory, planning, action, communication (with people and other agents) and learning (improving from feedback). Parts and capabilities are two views of one design.

How one run moves

When you give an agent a task, it goes round a loop until the task is done or it hits a limit:

  1. Perceive. Read the request, the instructions, any memory that applies, and the results of earlier steps.
  2. Reason. Decide what is needed next. Is there enough information to answer? If not, which tool would get it?
  3. Act. Call a tool with specific inputs: search this, read that, create this draft.
  4. Observe. Read what came back, including errors, and add it to what it knows.

Then round again. The loop ends when the agent decides the goal is met, when it needs a person (a question, or an approval), or when a guardrail stops it: too many steps, too much time, too much cost. A well-built agent always has a stop condition. An agent without one can loop for a long time, spending money while looking busy.

The parts of an agent around its perceive, reason, act, observe loop At the centre, a loop of four steps: perceive, reason, act, observe, then back to perceive. The model drives the reason step. Instructions and memory feed perception. Tools carry out the act step against real systems. Guardrails surround the loop and decide which actions wait for a person. The loop ends with an answer or a request for approval. GUARDRAILS: access, approvals, budgets Reason Act Observe Perceive model decides the next step Instructions Memory Tools search, create, send Answer or approval request
Instructions and memory feed perception; the model reasons; tools act; guardrails wrap the whole loop.

Worked example: tracing one run

A sales manager asks an account agent: "Prepare a one-page brief on Northwind before my 10am call tomorrow." Here is the run, step by step, with each step labelled.

  1. Perceive: reads the request, its instructions ("briefs are one page: situation, open deals, risks, three questions to ask") and a remembered preference that this manager likes bullet points.
  2. Reason: needs the CRM record, recent emails and any public news.
  3. Act: searches the CRM for "Northwind". Observe: two matches, Northwind Traders and Northwind Health.
  4. Reason: the calendar entry for 10am names a contact at Northwind Traders, so that is the account. Act: reads that record. Observe: two open deals, one stalled for 40 days.
  5. Act: searches the last month of email with the contact. Observe: a pricing concern raised last week.
  6. Reason: enough to write. Stops calling tools and drafts the brief, leading with the stalled deal and the pricing concern.

Now look at where this could have gone wrong. At step 3 a careless agent picks the first "Northwind" (a perception error). At step 5 it could skip the email search and miss the pricing concern (a planning error). If the CRM tool had failed, it could have written the brief from nothing (an observation error: ignoring the failure). Each failure lives in a specific part. Naming the parts is how you find it.

Reading a run is a skill

When an agent's answer surprises you, do not just rephrase and try again. Trace it. Which tools did it call, with what inputs? What came back? Where did its reasoning depart from what you would have done? Most problems turn out to be one of four things:

  • Missing context: it never had the fact it needed. Fix the instructions, memory or tool access.
  • Wrong tool or wrong input: it had the right tools but used them badly. Fix the tool choice or its description (lesson 2).
  • Poor plan: it did steps in a bad order or stopped too early (lesson 3).
  • A guardrail doing its job: it stopped because an action needed approval or it ran out of budget. That is not a bug.

This is why a record of every step matters. You cannot improve an agent whose working you cannot see.

Try it in Renly

Build a small agent and label its run

About 10 minutes. You need a Renly account.

  1. Open Agents (the agents hub) and choose Create. Type a name in the name field at the top, for example "Account brief".
  2. On Identity & Personality, fill in Description and Role. Leave Autonomy on "Act with approval", the default.
  3. On Instructions, write the job in Agent Instructions: what a brief contains, how long it is, and one thing it must never do (for example, "never guess a figure; say when data is missing").
  4. On Connectors & Knowledge, choose the one or two connectors the job needs, such as your CRM or mail. Then choose Create.
  5. Choose Chat and give it a real multi-step request, like the brief above. Watch the steps it shows while it works.
  6. When it answers, open the Evidence Passport from the shield icon on the answer. In Actions, find each tool it called; in Governance, see the agent and model that ran. On paper, label every step: perceive, reason, act or observe.

Notice the Decision trace section carries a "Model-stated" badge while the others say "Recorded": the reasoning is the model's own account, the actions are what actually happened. Keep that difference in mind for lesson 9.

Key takeaways

  • An agent is a system: a model plus instructions, tools, memory, planning and guardrails.
  • It runs a loop: perceive, reason, act, observe, until the goal is met, a person is needed, or a limit is hit.
  • Every agent needs a stop condition and budgets, or it can loop at your expense.
  • When a run goes wrong, trace it step by step. The failure usually lives in one specific part.
  • A record of every step is what makes an agent improvable, and accountable.