So You Want to Build an Agent
Series episodes
The Essentials (7)
Your First AI Response
9m 8sBuild a simple Laravel command to send a prompt to an AI model and print the response—perfect for mastering AI basics fast.
Have A Dialog
7m 5sBuild real AI dialog by storing and managing conversation history, so your app can respond with better context and continuity.
The Agent Loop
25m 32sLearn the agent loop that powers AI behavior—its inner dialog—and how it drives decisions, planning, and actions in your app.
Extract A Tool Class
9m 4sBuild an agent tool class to safely access your local filesystem, enabling smarter actions and better automation in your Laravel apps.
Make a Revenue Tool
4m 16sTeach your AI to answer revenue questions by building a Revenue tool it can trigger—turn quarterly revenue data into instant insights.
Structured Output
21m 51sTighten your agent loop with structured output, forcing every agent to return the exact data shape you expect for reliable results.
Filesystem Tools
9m 5sLearn essential filesystem tools for agents—run Bash scripts, read files, and search efficiently to automate tasks and boost productivity.
Going Deeper (3)
Compacting
20m 59sLearn how to compact conversation history to grow endlessly without wrecking your context window in this practical Laracasts lesson.
Load a Guidelines File
9m 20sTeach your AI agent to load project guidelines like CLAUDE.md or AGENTS.md and turn them into smarter, context-aware instructions.
Agent Memory
14m 33sBuild long-term agent memory with a Remember tool that saves useful facts between sessions for smarter, more helpful AI.




