Multi-Agent Workflows
- Build AI Agent Systems That Automate Your Job
- About This Book
- How to Read This Book
- A Note on Code Examples
- What you’ll learn
- Problem: Why this matters
- Core idea: From “one LLM” to “AI agent team”
- What you’ll be able to build
- Why this book is different from another “LangChain guide”
- How to get the most out of this book
- Chapter 1 cheat sheet
Chapter 3 — Single Agent vs Multi-Agent: When to Level Up
- What you’ll learn in this chapter
- The “one-agent” sweet spot
- When a single agent falls short
- The multi-agent mindset
- When to split into multiple agents
- Example: From single agent to multi-agent blog pipeline
- When to use LangChain vs CrewAI vs AutoGPT-style
- What you’ll learn in this chapter
- Before you start: tool setup
- The project: Auto-blogging multi-agent pipeline
- Step 1 — Define the overall goal
- Step 2 — Build the Researcher Agent
- Step 3 — Build the Writer Agent
- Step 4 — Build the Editor Agent
- Step 5 — Orchestrate the multi-agent workflow
- Step 6 — Run a sample run
- Pitfalls and how to avoid them
- How this maps to CrewAI and AutoGPT-style
- What you’ll learn in this chapter
- From script to crew
- AutoGPT-style autonomy: when it helps and when it hurts
- Chapter 5 cheat sheet
- What you’ll learn in this chapter
- The value of coding agents for developers
- Project: Multi-agent bug-fixing workflow
- Step 1 — Define the top-level goal
- Step 2 — Design the agent roles
- Step 3 — Build the workflow with CrewAI
- Step 4 — How this fits into real-world DevOps
- Step 5 — When AutoGPT-style helps (or hurts)
- Step 6 — Pitfalls and best practices
- Chapter 6 cheat sheet
- What you’ll learn in this chapter
- The value of agents in content and marketing
- Project: Multi-agent content-creation crew
- Step 1 — Define the top-level goal
- Step 2 — Design the agent roles
- Step 3 — Build the crew with CrewAI
- Step 4 — Variants and extensions
- Step 5 — When AutoGPT-style helps in content
- Step 6 — Pitfalls and best practices
- Chapter 7 cheat sheet
- What you’ll learn in this chapter
- The value of agents in customer support and sales
- Project: Multi-agent customer-support crew
- Step 1 — Define the top-level goal
- Step 2 — Design the agent roles
- Step 3 — Build the crew with CrewAI
- Step 4 — Variants and extensions
- Step 5 — When AutoGPT-style helps in support
- Step 6 — Pitfalls and best practices
- Chapter 8 cheat sheet
- What you’ll learn in this chapter
- The cost problem in multi-agent systems
- Strategy 1 — Model-level cost optimization
- Strategy 2 — Prompt and tool optimizations
- Strategy 3 — Batching and async patterns
- Strategy 4 — Caching and memoization
- Strategy 5 — Observability and monitoring
- Real-world cost example
- Chapter 9 cheat sheet
- What you’ll learn in this chapter
- The core failure patterns in multi-agent systems
- Failure 1 — Hallucinations that cascade across agents
- Failure 2 — Coordination failures and stuck agents
- Failure 3 — Task duplication and “everyone does everything”
- Failure 4 — Loops and retries that never end
- Failure 5 — Tool misuse and “wrong tool, wrong place”
- Failure 6 — Silent failures and “it looks fine but it’s wrong”
- Chapter 10 cheat sheet (troubleshooting playbook)
- What you’ll learn in this chapter
- The security risks in multi-agent systems
- Core security principles for your agents
- Pattern 1 — Role-based access control (RBAC) for agents
- Pattern 2 — Data privacy and PII handling
- Pattern 3 — Secure communication and tool usage
- Pattern 4 — Human-in-the-loop and governance agents
- Pattern 5 — Logging, observability, and audits
- Pattern 6 — Testing and simulating attacks
- Chapter 11 cheat sheet (security and governance playbook)
- What you’ll learn in this chapter
- The shift from “assistants” to “autonomous workflows”
- The agentic organization of the future
- Where LangChain, CrewAI, and AutoGPT-style fit
- Real-world use cases on the horizon
- How this changes your career and income
- How to stay ahead of the curve
- Closing thought
Writing in Markua
- Section One
- Including a Chapter in the Sample Book
- Links
- Images
- Lists
- Page Breaks
- Code Samples
- Tables
- Math
- Headings
- Block quotes, Asides and Blurbs
- Good luck, have fun!
