Interactive roadmap

    AI Agents roadmap

    For developers wanting to build autonomous AI systems. You will learn to design agents that use tools, plan tasks, and remember past interactions.

    Your progress0% · 0 of 15 topics
    Done Learning Skipped OptionalClick any topic to learn more and mark your progress.
    1. 1

      Agent Fundamentals

      0 of 3 done

      Understand what AI agents are and how they differ from simple chatbots.

      Take your time understanding the core loop, as everything else builds on this foundation.
    2. 2

      Tools And Planning

      0 of 3 done

      Give your agent the ability to use external software and plan complex workflows.

      Always validate tool inputs before running them to keep your system safe.
    3. 3

      Memory And Retrieval

      0 of 3 done

      Manage short-term conversation history and connect agents to external knowledge bases.

      Keep conversation histories concise to save tokens and maintain quick response times.
    4. 4

      Advanced Multi-Agent Patterns

      0 of 3 done

      Coordinate multiple specialised agents working together on big projects.

      Start with a single agent before attempting multi-agent setups to keep debugging simple.
    5. 5

      Safety And Evaluation

      0 of 3 done

      Test agent reliability, control costs, and keep your systems secure.

      Always set strict spending limits on your API accounts before testing agent code.

    Learn it all, with a tutor that never sleeps

    Every topic links to LevelUp lessons, practice exercises and the 24/7 AI Tutor. Your progress updates as you master lessons.

    Every topic explained

    Step 1: Agent Fundamentals

    An AI agent is a large language model equipped with goals, reasoning loops, and tools to complete multi-step tasks independently.
    Read more

    An artificial intelligence agent is a system where a language model acts as the brain, driving actions rather than just replying to chat prompts. Instead of stopping after one answer, it receives a goal, figures out what steps are needed, and uses external features to get the job done.

    Imagine asking a regular assistant to check your calendar and email a client. An agent does this by thinking about the request, choosing to open your calendar tool, reading the schedule, and then drafting the email independently.

    This matters because it shifts AI from a simple question-and-answer toy into a reliable digital worker capable of handling multi-step chores for your applications.

    • Combines a language model with specific goals
    • Operates autonomously across multiple steps
    • Uses external tools to complete tasks
    OpenAI Documentation
    Learn how agents alternate between reasoning about what to do next and acting on that thought using external inputs.
    Read more

    The ReAct pattern stands for Reason and Act, giving your software a clear rhythm for solving problems. The model first writes a thought process, then performs an action using a tool, and finally observes the result before thinking again.

    Picture a chef who looks at a recipe, decides to check the pantry, looks at what is missing, and then adjusts the meal plan. The agent does the exact same thing with data and code functions.

    This loop is crucial because it stops the language model from guessing blindly, forcing it to check facts and update its strategy as it goes along.

    • Alternates between reasoning and acting
    • Observes tool outputs before proceeding
    • Prevents blind guessing by checking facts
    (optional)
    Write the core code loop that keeps the agent running until its main objective is achieved.
    Read more

    An agent loop is the core piece of code that keeps your program running. It repeatedly calls the language model, checks if the model wants to use a tool or has finished the job, and handles the flow until the goal is met.

    Think of it like a simple while loop in programming that only breaks when a specific completion flag turns true. If the job is not done, the loop feeds the latest observation back into the model.

    Writing this loop correctly is essential because a poorly managed loop can run forever, burning through your computer memory and API budget very quickly.

    • Controlled by a standard programming while loop
    • Stops only when the objective is reached
    • Feeds observations back into the model

    Step 2: Tools And Planning

    Teach your model to output structured data that your code can run as actual software functions.
    Read more

    Function calling is the mechanism that lets a language model output structured data, such as JSON, instead of regular text. Your application intercepts this structured data and runs real software functions in your codebase.

    For instance, when a user asks for local weather, the model outputs a command with the city name. Your code catches this, queries a weather service API, and sends the temperature back to the model.

    This capability bridges the gap between static language models and dynamic software, allowing your AI to interact with databases, APIs, and file systems safely.

    • Translates model output into structured JSON
    • Triggers real code functions in your app
    • Connects AI models to external software APIs
    Anthropic Documentation
    Help agents break large, messy goals down into neat step-by-step checklists before starting work.
    Read more

    Task planning helps agents tackle large or messy goals by breaking them down into small, orderly checklists before doing any heavy lifting. Instead of rushing in, the agent lists its intended steps first.

    Imagine organising a large conference. A human planner writes out a schedule for booking venues, sending invites, and ordering food. An agent uses planning to map out its workflow similarly.

    This step is important because it keeps complex projects on track, reduces wasted tool calls, and gives you a clear audit trail of what the agent intends to do.

    • Breaks large goals into ordered checklists
    • Reduces wasted steps and API calls
    • Provides a clear audit trail of intent
    (optional)
    Make your agent smart enough to read error messages when a tool fails and try a different approach.
    Read more

    Error recovery gives your agent the ability to read error messages when a tool fails and try a different approach. Instead of crashing, the system feeds the failure back to the model for a fresh attempt.

    If a database lookup fails because of a typo in the search term, the agent sees the error output, corrects the spelling, and runs the query again successfully.

    This feature is vital for real-world reliability, ensuring your autonomous systems do not break at the first sign of unexpected trouble or bad user input.

    • Catches tool failures without crashing code
    • Feeds error messages back to the model
    • Allows the agent to self-correct and retry

    Step 3: Memory And Retrieval

    Store and summarize chat history so your agent does not forget important details as conversations grow long.
    Read more

    Conversation memory stores and organises chat history so your agent remembers previous context as discussions grow long. Without it, the model treats every single message as if it were the very first one.

    Think of a customer service chat where you mention your account number early on. Memory ensures the assistant does not ask for that same account number again ten minutes later.

    Managing this memory well is crucial because language models have strict input length limits, requiring clever summarisation to keep important details fresh.

    • Stores past chat interactions for context
    • Prevents the model from repeating questions
    • Requires summarisation for long sessions
    Use semantic search to let your agent look up relevant documents from large private files instantly.
    Read more

    Vector databases let your agent search through large private files instantly by converting text into numerical coordinates representing meaning. This technique is known as semantic search.

    If a user asks about company holiday policy, the database finds relevant handbook paragraphs even if the exact words differ from the search query.

    This matters because it gives your agent access to vast amounts of external knowledge without needing to retrain the underlying language model.

    • Converts text into meaning-based numerical coordinates
    • Enables fast semantic search across private files
    • Provides external knowledge without retraining models
    (optional)
    Give agents database access to remember user preferences across separate visits.
    Read more

    Long term storage gives agents access to standard databases to remember user preferences, settings, and past project states across separate visits over many weeks.

    Picture a coding assistant that remembers your favourite programming language and preferred formatting style every time you open a new project.

    This capability transforms your agent from a fleeting chat partner into a personalised assistant that builds a lasting understanding of your specific needs.

    • Uses standard databases for persistent storage
    • Remembers user preferences across separate visits
    • Turns agents into personalised digital assistants

    Step 4: Advanced Multi-Agent Patterns

    Split workloads across different agents that take on distinct roles like researcher, writer, and coder.
    Read more

    Multi-agent teams split complex workloads across different specialised agents that take on distinct roles like researcher, writer, and code reviewer. Each agent focuses purely on its own expertise.

    Just like a real office team where one person gathers data, another writes the report, and a third edits it, multi-agent systems divide and conquer big tasks efficiently.

    This pattern matters because smaller, focused prompts often yield much higher quality results than trying to force one single agent to do everything at once.

    • Divides complex workloads among specialist agents
    • Assigns distinct roles like researcher and writer
    • Improves output quality through role separation
    Set up a manager agent that delegates subtasks to worker agents and reviews their final output.
    Read more

    Hierarchical delegation sets up a manager agent that receives the main user goal, breaks it down, and assigns subtasks to specialised worker agents before reviewing their final output.

    Think of a project manager who receives a client request, assigns design tasks to a designer and coding tasks to a developer, and then checks their work before delivery.

    This setup is valuable for large systems because it keeps coordination clean and stops worker agents from getting confused by irrelevant instructions.

    • Uses a manager agent to coordinate workflows
    • Delegates subtasks to appropriate worker agents
    • Reviews and combines final worker outputs
    (optional)
    Pause agent execution at critical moments to ask a human for approval before proceeding.
    Read more

    Human in the loop pauses agent execution at critical moments, requiring manual approval before the system performs sensitive actions like sending emails or deleting records.

    Imagine an assistant drafting a payment transfer but stopping right before the final confirmation button, waiting for you to click approve.

    This pattern is essential for safety, protecting you from costly mistakes or unintended consequences caused by autonomous software bugs.

    • Pauses execution before sensitive tool actions
    • Requires explicit human approval to proceed
    • Prevents costly mistakes from runaway code

    Step 5: Safety And Evaluation

    Run test suites with known inputs to measure how often your agent succeeds or fails.
    Read more

    Agent evaluation involves running automated test suites with known inputs to measure how often your agent succeeds, fails, or gets stuck in loops during multi-step tasks.

    Similar to unit tests in traditional software development, these evaluations run your agent against a benchmark of common user requests to score its reliability.

    This practice is critical because subtle prompt changes can break agent behavior unpredictably, and testing helps you catch regressions before deploying updates to users.

    • Runs automated test suites with known inputs
    • Measures task success and failure rates
    • Catches unexpected regressions after code updates
    Set strict limits on token usage, spending, and forbidden tool actions to prevent runaway loops.
    Read more

    Guardrails and cost controls set strict limits on token usage, spending thresholds, and forbidden tool actions to prevent infinite loops from draining your budget.

    Think of a prepaid electricity meter that cuts power if usage exceeds a safe limit, protecting you from unexpected bills caused by a glitch.

    Implementing these limits is non-negotiable for production systems, safeguarding your business from unexpected financial loss due to runaway recursive agent calls.

    • Sets hard caps on token usage and spending
    • Blocks forbidden or dangerous tool actions
    • Protects systems from infinite processing loops
    (optional)
    Protect your agent systems from prompt injection attacks hidden inside web pages or user uploads.
    Read more

    Security best practices protect your agent systems from prompt injection attacks hidden inside malicious web pages, emails, or user file uploads.

    If an agent reads an external webpage that contains hidden text telling it to ignore previous instructions and delete files, proper security stops it from obeying.

    Keeping your agents secure requires treating all external data as untrusted input and isolating tool permissions so a compromised agent cannot harm your core infrastructure.

    • Treats all external retrieved data as untrusted
    • Guards against hidden prompt injection instructions
    • Isolates tool permissions to limit potential damage

    Related roadmaps