What are AI Agents
Here’s your complete study guide for all 10 lectures, with detailed notes and free resources for each.
Lecture 1 β What are AI Agents—
π Lecture 1 β What are AI Agents
Core concepts: An AI agent is a system where an LLM acts as a reasoning engine that can perceive its environment, make decisions, and take actions (use tools, call APIs, run code) in a loop to complete a goal β rather than just responding once to a prompt.
Key ideas to understand:
- Perception β Reasoning β Action loop (the agent cycle)
- Agents vs. simple LLM calls: agents have memory, tools, and goals
- Types: single agents, multi-agent systems, autonomous vs. human-in-the-loop
- Tools/function calling as the bridge between language and action
Free resources:
- Anthropic’s “What are agents?” overview β very practical, explains agents clearly with patterns
- Hugging Face AI Agents Course β Unit 1 β free, beginner-friendly, interactive
- LangChain conceptual docs on agents β solid conceptual grounding
π Lecture 2 β Inside the Brain of AI Agents: How LLMs Work
Core concepts: Transformers, tokenization, attention mechanism, how LLMs predict the next token, context windows, and why this matters for agent reasoning.
Key ideas:
- Text β tokens β embeddings β transformer layers β output probabilities
- Self-attention: how the model “looks” at all previous tokens simultaneously
- Temperature and sampling: how randomness affects generation
- Context window limits and why they constrain agents
- In-context learning vs. fine-tuning
Free resources:
- 3Blue1Brown: “But what is a neural network?” (YouTube) β best visual intuition for neural nets
- Andrej Karpathy: “Let’s build GPT from scratch” (YouTube) β the gold standard deep dive, ~2 hours
- Jay Alammar: “The Illustrated Transformer” β outstanding visual walkthrough of attention
- Hugging Face NLP Course β Chapter 1 β free and hands-on
π Lecture 3 β How Agents Really Work: The ReAct Framework
Core concepts: ReAct (Reasoning + Acting) is the dominant pattern for agents. The model interleaves Thought β Action β Observation steps in a loop, reasoning about what to do next based on tool results.
Key ideas:
- The Thought/Action/Observation loop
- How tool calls are embedded in model output
- Why chain-of-thought reasoning improves tool use
- ReAct vs. simple tool-calling vs. chain-of-thought
Free resources:
- Original ReAct paper (arXiv) β free, readable, ~10 pages
- Lilian Weng: “LLM Powered Autonomous Agents” (blog) β the best single blog post on agent architectures
- Hugging Face Agents Course β Unit 2: ReAct β free, code-along
π Lecture 4 β Overview of AI Agentic Frameworks
Core concepts: The landscape of tools for building agents β from raw code (calling APIs yourself), to frameworks (LangChain, LlamaIndex, CrewAI), to low-code (n8n, Flowise), to no-code (Zapier AI, Make).
Key ideas:
- Trade-offs: control vs. speed of development
- When to use a framework vs. roll your own
- Categories: orchestration frameworks, RAG frameworks, workflow automation tools
- Cost and latency implications
Free resources:
- a16z: “The Emerging LLM App Stack” (blog) β great map of the ecosystem
- Flowise docs β free low-code agent builder, open source
- Zapier AI overview (YouTube) β search for beginner tutorials
π Lecture 5 β Smolagents: The Simplest Agent Coding Library
Core concepts: Smolagents (by Hugging Face) is a minimal Python library for building agents. Its design philosophy is simplicity β agents are just Python code with tool-decorated functions.
Key ideas:
CodeAgentvs.ToolCallingAgent- Defining tools with
@tooldecorator - The model-agnostic design (works with any LLM)
- How it differs from heavier frameworks like LangChain
Free resources:
- Smolagents official docs β free, comprehensive
- Hugging Face Agents Course β Unit 3: Smolagents β free, code-along with notebooks
- Smolagents GitHub β examples folder is very instructive
π Lecture 6 β Building Multi-Agent Frameworks and Browser Agents
Core concepts: Multi-agent systems have a manager/orchestrator agent that delegates tasks to specialized sub-agents. Browser agents can control a real web browser to perform web tasks.
Key ideas:
- Orchestrator β worker agent patterns
- How agents communicate (message passing, shared memory)
- Browser automation: Playwright/Selenium under the hood
- Challenges: error recovery, hallucinated actions, infinite loops
Free resources:
- Smolagents multi-agent guide β free official tutorial
- Browser Use library (GitHub) β open-source browser agent library with examples
- Hugging Face Agents Course β Unit 4: Multi-agents
- Microsoft Playwright docs β underlying browser control tech, free
π Lecture 7 β Agentic RAG Using LlamaIndex
Core concepts: RAG (Retrieval-Augmented Generation) grounds LLMs with external knowledge. Agentic RAG goes further β the agent decides when and how to retrieve, can query multiple sources, re-rank, and reason over retrieved chunks.
Key ideas:
- Basic RAG pipeline: chunk β embed β store β retrieve β generate
- Query engines, retrievers, and routers in LlamaIndex
- Agent-as-query-engine: tools for different data sources
- Sub-question decomposition for complex queries
Free resources:
- LlamaIndex docs: “Building Agentic RAG” β free, official
- LlamaIndex RAG bootcamp (YouTube) β free video walkthrough
- Jerry Liu (LlamaIndex founder) talks on YouTube β very concept-heavy, free
- LlamaIndex GitHub notebooks β hands-on code
π Lecture 8 β LangGraph in 100 Minutes
Core concepts: LangGraph models agent workflows as stateful graphs β nodes are functions/LLM calls, edges are transitions. This makes complex, cyclical, multi-step agents much easier to control and debug.
Key ideas:
StateGraph: defining state, nodes, and edges- Conditional edges for branching (if agent needs tool β call tool, else β end)
Checkpointerfor persistence and memory across turns- Human-in-the-loop with
interrupt_before - How it differs from LangChain’s older AgentExecutor
Free resources:
- LangGraph official docs β free, excellent tutorials
- LangGraph “Get started” tutorial β step-by-step, free
- LangChain YouTube channel β tons of free LangGraph walkthroughs
- LangGraph Academy (free tier) β structured free course
π Lecture 9 β Building Agents Using CrewAI
Core concepts: CrewAI is a framework for orchestrating teams of role-playing AI agents. You define agents with roles, goals, and backstories, then assign tasks β agents collaborate, delegate, and produce outputs.
Key ideas:
Agent(role + goal + backstory),Task,Crewobjects- Sequential vs. hierarchical process modes
- Tools in CrewAI (built-in web search, custom tools)
- Memory types: short-term, long-term, entity memory
Free resources:
- CrewAI official docs β free, comprehensive
- CrewAI crash course (YouTube β Brandon Hancock) β very popular free tutorial
- CrewAI GitHub examples β many real-world project templates
- DeepLearning.AI: “Multi AI Agent Systems” (free) β official short course, free
π Lecture 10 β n8n and Agentic Automations
Core concepts: n8n is an open-source workflow automation tool (like Zapier, but self-hostable) with native AI agent nodes. You can build LLM-powered automations with a visual canvas β no code required.
Key ideas:
- Triggers, nodes, and connections in n8n
- The AI Agent node: connecting to OpenAI/Anthropic
- Memory nodes (window buffer, Postgres, Redis)
- Tool nodes: HTTP request, code, Google Sheets, email
- Hosting: n8n Cloud (free tier) vs. self-hosted
Free resources:
- n8n official docs β free, well-organized
- n8n AI & LangChain docs β specific to agent use cases
- n8n YouTube channel β dozens of free tutorial videos
- n8n free cloud tier β sign up and build right in the browser
- Cole Medin’s n8n tutorials (YouTube) β excellent in-depth free walkthroughs
πΊοΈ Suggested Learning Order
Follow the curriculum order β it’s well-sequenced. Lectures 1β3 are pure theory and take 1β2 days each. Lectures 4β6 get hands-on with code. Lectures 7β9 are each a separate framework requiring practice projects. Lecture 10 is no-code and a good “Friday afternoon” project.
For each framework lecture (5β10), the best approach is: read the docs β watch one tutorial β build one small project of your own. That cycle will reinforce the concepts far better than passive reading alone.