It reads messy words
It can read emails, tickets, and partial instructions, then suggest a clear next move.
A plain-English guide to AI agents
An agent is a program that repeats five steps: look, choose, do, save, and ask “done?” A language model usually helps at Choose. The program runs the tools and sets the safety limits.
The names may change, but most agent runs do this. If the job is not done, the program goes around again.
Automation tools, scripts, and agents all repeat steps. The big change is how they choose the next move.
Read an item, follow a branch, call an API, save the status, and repeat.
Read known fields, match a rule, act, and record the result.
Check what happened, run the next command, save progress, then stop or retry.
Here is the whole idea in pseudocode. The exact language and framework do not matter.
# your program owns this loop
state = initial_observations()
while not should_stop(state):
observation = observe(state) # messages and tool results
action = decide(observation, policy) # rules or language model
if action.requires_approval:
action = wait_for_human(action)
if not validate(action): # allowed? correct inputs?
state = record_error(state, action)
continue
result = execute_tool(action) # APIs do the real work
state = update(state, result)
state = apply_guardrails(state) # turn, money, permission limits
finalize(state)
The loop is old. A language model makes Choose more flexible — and less predictable.
It can read emails, tickets, and partial instructions, then suggest a clear next move.
The same input may get a different suggestion. Log runs and test many cases.
It can choose among registered tools without a giant rule table. The program still checks each choice.
Run ticket #8842 with a Rule card, then swap in a Language card. Guess moves, handle a timeout, and decide when a person should step in. About 4 minutes; no login or network.
Turn program-owned checks on and off, then test five fixed suggestions. See which risky actions get blocked. No real model or network.
Many real systems mix these three.
Use for clear inputs and stable choices. Fast, cheap, and easy to test.
Pick this when you can write the decision table and trust it for a while.
Rules handle common cases. A language model reads messy text. People approve sensitive moves.
Pick this when most work is simple but a few cases need judgment.
Use for open-ended work with many tools and changing instructions.
Pick this when rules would become a maze — and you can add checks, logs, and review.
Agent loops fail in ordinary ways. Plan for them.
An agent is a loop. The language model usually helps Choose. Your program still owns the tools, saved facts, safety checks, and stop button.