Introduction to Agentic AI
From answering questions to taking action β AI that actually does the work.
A chatbot answers your question. An AI agent takes a goal, decides on the steps, uses tools to carry them out, and checks its own progress until the goal is done. That shift β from answering to acting β is what βagentic AIβ means, and itβs rapidly changing how DevOps and engineering teams work.
π― Learning Objectives
By the end of this lesson you will:
- Understand what a large language model (LLM) is, at a high level
- Know the difference between a chatbot and an agent
- Understand the agent loop: reason β act β observe
- See where agentic AI fits into DevOps
LLMs in One Minute
A large language model is a system trained on vast amounts of text to predict and generate language. Given some input (a prompt), it produces a useful response. Modern LLMs can write code, summarise logs, explain errors, and follow instructions.
π‘ The mental model
Think of an LLM as an extremely well-read assistant that reasons in text. It doesnβt βknowβ live facts about your systems unless you give it that context β which is exactly what agents and tools do.
Chatbot vs Agent
| Chatbot | Agent | |
|---|---|---|
| Input | A question | A goal |
| Output | An answer | Completed actions |
| Tools | None | Can call tools/APIs |
| Steps | One turn | Many steps, looping |
| Example | βHow do I restart a pod?β | βFind and restart the crashing podsβ |
The agent doesnβt just tell you what to do β given the right tools and permissions, it can do it.
The Agent Loop
An agent works in a cycle until the goal is met:
ββββββββββββββββββββββββββββββββ
βΌ β
1. REASON β 2. ACT β 3. OBSERVE ββ
(plan next (use a (read the
step) tool) result)- Reason β decide the next step toward the goal.
- Act β call a tool (run a command, query an API, read a file).
- Observe β take in the result and update the plan.
It repeats this loop, adapting as it goes, until the task is complete or it needs human input.
Where It Fits in DevOps
Agentic AI is showing up across the DevOps lifecycle:
- Incident response β summarise alerts, correlate logs, suggest likely root causes.
- Code & config β draft Dockerfiles, pipelines, and Terraform, then explain them.
- Operations β triage tickets, generate runbooks, answer βwhy is this failing?β
- Review β flag risky changes and security issues in pull requests.
β Agents need guardrails
An agent that can act can also act wrongly. Production systems require guardrails: least-privilege access, human approval for risky actions, and full audit logs. Never give an agent unrestricted power over live infrastructure.
See the Idea in Code
At its core, an agent loop is simple. This pseudocode captures the shape:
goal = "Find why the checkout service is erroring"
while not done:
thought = llm.reason(goal, history) # decide next step
action = thought.tool_call # e.g. read_logs("checkout")
result = run_tool(action) # execute it
history.append(result) # observe
done = llm.is_goal_met(goal, history) # check progressThe LLM provides the reasoning; the tools give it the ability to actually inspect and change the world.
π§ͺ Hands-on Lab
Design an Agent Loop on Paper
- Pick a DevOps goal, e.g. βdiagnose a failing deploymentβ
- List the tools the agent would need (read logs, list pods, describe events)
- Write out three iterations of reason β act β observe
π§ Knowledge Check
What is the key difference between an AI agent and a chatbot?
What are the three phases of the agent loop?
πΌ Interview Preparation
How could agentic AI help a DevOps team, and what are the risks?
Summary
You now understand LLMs at a high level, how agents differ from chatbots, the reasonβactβobserve loop, and where agentic AI fits into DevOps. Next, youβll learn to actually communicate with these models through effective prompting.