Interactive Training

Build Your First
AI Agent

Learn what agents are, define one with a simple JSON ontology, and run it — all in your browser. No setup required.

Powered by Claude · Built with Spagyric

Step 1

What is an AI Agent?

An AI agent is an LLM that can think, use tools, and take actions autonomously. Unlike a chatbot that just responds, an agent operates in a loop until the task is done.

Repeats until task is complete
Live Example
Perceive

User asks: "What's the weather in Austin today?"

Think

Agent thinks: "I need to use the weather_lookup tool with location='Austin, TX'"

Act

Agent calls: weather_lookup({"location": "Austin, TX"})

Observe

Tool returns: {"temp": "78F", "condition": "Sunny"} → Agent responds to user.

System Prompt

Instructions that define the agent's personality, role, and boundaries. Like a job description for the AI.

Tools

Functions the agent can call — search the web, do math, read files, call APIs. Tools are what make an agent more than a chatbot.

Reasoning

The LLM decides which tool to use and what arguments to pass, based on the user's request and available tools.

The Loop

Agents don't just respond once — they loop: think, act, observe, repeat. This is what makes them autonomous.

Step 2

Build Your Agent

Pick an example to start from, or define your own. The JSON ontology updates live as you configure.

15 turns20
Agent Ontology

my_agent

No role defined

Goal

No goal defined

Instructions

No instructions

Tools (0)
No tools selected
Max Turns
5

Step 3

Run Your Agent

Test it live in the browser or download the Python code to run locally with your own API key.

my_agentno role

Try one of these prompts

or type your own below