An AI agent is a language model that can decide which steps to take and act on them: searching, calling APIs, editing files or handing work to another agent. Agents can take on real work, but they also fail in new ways – looping, taking the wrong action or confidently reporting success when nothing happened. This course covers how to build agents that are useful, observable and safe to run, starting with the simplest design that works.

What you'll learn

  • What separates an agent from a chatbot or a fixed workflow, and when you need one
  • The agent loop: model, tools, memory and stopping conditions
  • Designing tools the model can use well: names, descriptions, input schemas and error messages
  • The Model Context Protocol (MCP): connecting agents to data and tools through MCP servers, and writing your own
  • Planning, reflection and breaking large tasks into steps
  • Multi-agent patterns: orchestrator and specialists, hand-offs and parallel workers, and their costs
  • Memory and state: conversation history, scratchpads and long-term stores
  • Guardrails: permissions, approval steps for risky actions, sandboxing and prompt injection defences
  • Evaluating agents on real tasks, tracing their decisions and debugging failures
  • Running agents in production: cost limits, timeouts, retries and monitoring

Who it's for

  • Developers who have called an LLM API and want to build systems that act, not just answer
  • Technical founders and product engineers planning agent features or internal AI assistants
  • Automation engineers moving from fixed workflows to AI-driven ones

Prerequisites

  • Comfortable with Python or TypeScript
  • Experience calling a REST API; prior LLM API experience helps (see Building AI Apps with LLM APIs)
  • An API key for at least one model provider; examples are provider-neutral

Outcomes

By the end of this course you will be able to:

  1. Decide whether a problem needs an agent, a workflow or a single model call.
  2. Build an agent with well-designed tools and clear stopping conditions.
  3. Connect an agent to your own systems through an MCP server.
  4. Add approvals, limits and tracing so the agent can be trusted with real work.

Projects you'll build

  • Research-and-report agent – an agent that searches the web and a document folder, cites its sources and writes a one-page brief. You practise tool design, stopping conditions and checking that claims match the sources.
  • Support triage agent with human approval – reads incoming tickets, looks up the customer through an MCP server, drafts a reply and proposes a refund or escalation that a person must approve. Covers permissions, approval gates and prompt injection from untrusted ticket text.
  • Agent evaluation harness – a set of 20–30 realistic tasks with expected outcomes, run automatically against your agent with traces saved for every step, so you can compare prompts, models and tool changes on evidence rather than impressions.

Tools you'll use

  • Python or TypeScript with a model provider SDK (Anthropic, OpenAI or Google)
  • The official MCP SDKs and the MCP Inspector
  • An agent framework for comparison, such as the OpenAI Agents SDK, Claude Agent SDK or LangGraph
  • Tracing and evaluation tools such as Langfuse or OpenTelemetry-based tracing
  • Docker for sandboxing tool execution

Course outline

ModuleTopic
1Agents, workflows and when to use each
2The agent loop from scratch
3Tool design and tool calling
4Model Context Protocol: clients and servers
5Planning, reflection and task decomposition
6Memory, state and context management
7Multi-agent patterns and orchestration
8Guardrails, permissions and human approval
9Security: prompt injection and untrusted content
10Evaluation, tracing and debugging agents
11Cost, reliability and production operations
12Project: a multi-step agent for a real business task

FAQ

Do you use a particular agent framework?

We build the core loop by hand first so you understand what frameworks do, then compare popular SDKs and frameworks. You can use whichever fits your stack afterwards.

Is a multi-agent system always better?

No. Several agents add cost, latency and new failure points. Many tasks are handled better by one agent with good tools, and the course shows how to tell the difference.

How does SoniNow use agents?

Our own team is made up of specialised AI agents directed by the founder, so the patterns in this course are ones we run every day.

How is this different from Building MCP Servers?

This course is about the agent: the loop, planning, memory, guardrails and evaluation. Building MCP Servers goes deep on the other side of the connection, designing and securing the servers that agents call. Many learners take both.

What is the most common beginner mistake?

Giving an agent too many vague tools and no clear finish line. Fewer, well-described tools, a step limit and a check that the task actually succeeded fix most early failures.

How do I join?

Get in touch and we'll share the current format, schedule and enrolment details.