Skip to content
Edition NigeriaGlobal
Country: Mexico

You are in the Mexico edition. Type your country to switch.

The Americas

Set up your profile

You are learning in the Mexico edition, with examples in pesos and from Mexico.

Build AI automations and agents · Lesson 4 of 7

Designing an agent: limits, human approval and logs

Before an agent is built, its boundaries should fit on one page. This lesson writes a full agent specification for an invented company: goal, inputs, allowed tools, step and spend caps, stop conditions, escalation, approval points by action risk and the fields every log line records.

Advanced10 min read5 steps

This lesson is complete in writing. A video for it is on its way.

What you will learn

  • By the end you can write a one-page agent specification with goal, inputs, tools and exclusions.
  • You can set step caps, spend caps and stop conditions, and work out the worst case they allow.
  • You can place approval points according to the risk of each action.
  • You can list what every log line must record so a run can be replayed.

Key terms in this lesson

Agent specification
A short written design for an AI agent that sets its goal, inputs, allowed tools, step and spend caps, stop conditions, approvals, escalation and what its logs record.
AI agent
An AI system that plans and carries out tasks of several steps by itself, choosing which permitted tools to use and when, in pursuit of a goal a person has set.
Excessive agency
Giving an AI system more permissions, tools or autonomy than its task needs, which widens the harm a mistake or a misleading input could cause.
Spend cap
A hard limit on how much an automated system may spend on model use or actions per run, per day or per month, enforced outside the model so it holds whatever the model does.
Stop condition
A rule that makes an agent end a run and hand over, for example when it reaches its step cap, finds missing data or meets a case outside its written scope.
Approval gate
A point in a workflow where an action waits until a named person approves it, placed before steps that are costly, visible to outsiders or hard to undo.
Human in the loop
A process in which a person reviews, approves or can override an AI output before it is used or published.
Audit trail
A record that lets someone trace a published figure back through every calculation to its source, and see when and why it changed.
Personal data
Any information that identifies you or could be linked to you, such as your name, account numbers, address, ID number or voice.
Escalation path
The agreed order in which a concern is taken to higher or more independent levels when earlier steps do not resolve it.

Step 1 of 5

Why the limits go on paper first

Opening this step…

Step 2 of 5

Goal, inputs and tools

This step opens when you finish the one above.

Step 3 of 5

Caps and stop conditions

This step opens when you finish the one above.

Step 4 of 5

Approval points by action risk

This step opens when you finish the one above.

Step 5 of 5

Logs and escalation

This step opens when you finish the one above.

Key takeaways

The key takeaways open when you finish every step.

Lesson quiz

5 questions. You need 85% to pass.

The quiz opens when you finish every step.

Read first

Stockertim Learn is education. It explains how investing works and never recommends buying or selling anything.

Up next

Skills for the AI ageTesting and evaluating AI outputsRead nowTesting and evaluating AI outputsSkills for the AI age · Advanced · 15 minSkills for the AI ageRunning it: costs, monitoring an…Read nowRunning it: costs, monitoring and failuresSkills for the AI age · Advanced · 15 minSkills for the AI ageSafety, and when not to automateRead nowSafety, and when not to automateSkills for the AI age · Advanced · 15 minPublic relations & communicationsPitching, spokespeople and inter…Read nowPitching, spokespeople and interviewsPublic relations & communications · Intermediate · 5 minDerivatives marketsWhat a CFD is, and the counterpa…Read nowWhat a CFD is, and the counterparty risk that comes with itDerivatives markets · Advanced · 15 minCreative & media productionHeadlines and short copyRead nowHeadlines and short copyCreative & media production · Intermediate · 5 minLaw, regulation & ethicsTakeover and merger rules: manda…Read nowTakeover and merger rules: mandatory bids and equal treatmentLaw, regulation & ethics · Intermediate · 15 minBasicsBull vs bear market: what do the…Read nowBull vs bear market: what do they mean?Basics · Beginner · 5 minValuation & company analysisanalyse a company: a beginner's …Read nowHow to analyse a company: a beginner's roadmapValuation & company analysis · Beginner · 5 minHuman resourcesCross-border transfers and globa…Read nowCross-border transfers and global HR systemsHuman resources · Advanced · 15 minFinancial data & analyticsMoving averages and seasonality …Read nowMoving averages and seasonality in financial dataFinancial data & analytics · Advanced · 15 minAI at workGuardrails and permissionsRead nowGuardrails and permissionsAI at work · Advanced · 15 min
English