What Are AI Agents
Beyond Chat — Agents That Act
From Chatbots to Agents
A chatbot generates text. You type a question, it types an answer. The conversation ends, and nothing in the real world has changed.
An AI agent is fundamentally different. It acts. It reads files, runs commands, calls APIs, moves data, and makes decisions. When an agent finishes a task, the real world is different than it was before.
This distinction matters because actions have consequences. A chatbot that hallucinates produces wrong text. An agent that hallucinates might delete your files.
The Observe-Think-Act Loop
Every agent follows the same core pattern, regardless of framework:
| Phase | What Happens | Example |
|---|---|---|
| Observe | Agent perceives its environment | Read a directory listing, check an inbox, receive a notification |
| Think | Agent reasons about what to do | "These files need organizing by date. The safety rules allow writing to ~/organized/" |
| Act | Agent takes an action via a tool | Move files, create folders, log what it did |
| Loop | Agent observes the result and decides next step | "3 files moved. 1 file skipped (duplicate). Report back to user." |
This loop continues until the task is complete or a safety boundary is hit.
Agent Components
A well-designed agent has four components:
Your OpenClaw project maps directly to these components:
data/ files are what the agent perceivessrc/tools/ are the action layersrc/audit-log.ts provides memory and accountabilityThe Agent Spectrum
Not all agents are equally autonomous. Think of a spectrum:
| Level | Autonomy | Example | Risk |
|---|---|---|---|
| Script | None — follows exact steps | Cron job that backs up files | Low |
| Assisted | Suggests actions, human approves | "I found 3 duplicates. Delete them?" | Low |
| Supervised | Acts within rules, logs everything | Organizes downloads, respects safety-rules.json | Medium |
| Autonomous | Makes decisions independently | Manages your inbox, schedules meetings | High |
In this course, you'll build at the supervised level — powerful enough to automate real tasks, safe enough to trust with your files.
Why Open Source Matters
With a proprietary agent, you trust the vendor's safety decisions. With OpenClaw, you control:
Key Takeaways
This is chapter 1 of Open Source AI Agents (OpenClaw).
Get the full hands-on course — free during early access. Build the complete system. Your projects become your portfolio.
View course details