ai-agents-for-beginners

Intro to AI Agents

(Click the image above to watch the video for this lesson)

Introduction to AI Agents and Agent Use Cases

Welcome to the AI Agents for Beginners course! This course gives you the foundational knowledge — and real working code — to start building AI Agents from scratch.

Come say hi in the Azure AI Discord Community — it’s full of learners and AI builders who are happy to answer questions.

Before we jump into building, let’s make sure we actually understand what an AI Agent is and when it makes sense to use one.


Introduction

This lesson covers:

Learning Goals

By the end of this lesson, you should be able to:


Defining AI Agents and Types of AI Agents

What are AI Agents?

Here’s a simple way to think about it:

AI Agents are systems that let Large Language Models (LLMs) actually do things — by giving them tools and knowledge to act on the world, not just respond to prompts.

Let’s unpack that a bit:

What Are AI Agents?


The Different Types of AI Agents

Not all agents are built the same. Here’s a breakdown of the main types, using a travel booking agent as the running example:

Agent Type What It Does Travel Agent Example
Simple Reflex Agents Follows hard-coded rules — no memory, no planning. Sees a complaint email → forwards it to customer service. That’s it.
Model-Based Reflex Agents Keeps an internal model of the world and updates it as things change. Tracks historical flight prices and flags routes that are suddenly expensive.
Goal-Based Agents Has a goal in mind and figures out how to reach it step by step. Books a full trip (flights, car, hotel) starting from your current location to get you to your destination.
Utility-Based Agents Doesn’t just find a solution — finds the best one by weighing tradeoffs. Balances cost vs. convenience to find the trip that scores highest for your preferences.
Learning Agents Gets better over time by learning from feedback. Adjusts future booking recommendations based on post-trip survey results.
Hierarchical Agents A high-level agent breaks work into subtasks and delegates to lower-level agents. A “cancel trip” request gets split into: cancel flight, cancel hotel, cancel car rental — each handled by a sub-agent.
Multi-Agent Systems (MAS) Multiple independent agents working together (or competing). Cooperative: separate agents handle hotels, flights, and entertainment. Competitive: multiple agents compete to fill hotel rooms at the best price.

When to Use AI Agents

Just because you can use an AI Agent doesn’t mean you always should. Here are the situations where agents really shine:

When to use AI Agents?

We’ll dig deeper into when (and when not) to use AI Agents in the Building Trustworthy AI Agents lesson later in the course.


Basics of Agentic Solutions

Agent Development

The first thing you do when building an agent is define what it can do — its tools, actions, and behaviors.

In this course, we use the Azure AI Agent Service as our main platform. It supports:

Agentic Patterns

You communicate with LLMs through prompts. With agents, you can’t always hand-craft every prompt manually — the agent needs to take action across many steps. That’s where Agentic Patterns come in. They’re reusable strategies for prompting and orchestrating LLMs in a more scalable, reliable way.

This course is structured around the most common and useful agentic patterns.

Agentic Frameworks

Agentic Frameworks give developers ready-made templates, tools, and infrastructure for building agents. They make it easier to:

In this course, we focus on the Microsoft Agent Framework (MAF) for building production-ready agents.


Code Samples

Ready to see it in action? Here are the code samples for this lesson:


Got Questions?

Join the Microsoft Foundry Discord to connect with other learners, attend office hours, and get your AI Agent questions answered by the community.


Previous Lesson

Course Setup

Next Lesson

Exploring Agentic Frameworks