AI Agents
in Production

What does it take to make AI agents work in production? AI Agents in Production draws on over 1,000 interviews and highlights 18 of the most vivid stories, going inside companies including Salesforce, Workday, and Sanity to show what they built, what went wrong, and what they learned. From customer-facing assistants to agents for healthcare, finance, and internal ops, these case studies reveal the engineering choices behind working systems—and offer practical lessons for building your own.

  • Customer-facing Agents
  • GTM and Analytics
  • Developer Platform and AI SRE
  • Financial Services and Healthcare

Real-world Case Studies from Teams Running Agents in Production

What's inside?

AI Agents in Production gives real examples of how companies are building AI agents. Its 18 case studies are organized into three parts covering customer-facing agents, function-specific agents and industry-specific agents.

  • Sanity
  • Factorial
  • Riverside
  • GTM and Analytics: WorkOS, Morning Brew, CommonLit, Teamworks
  • Company Brain: SoftBank, Marsh
  • Developer Platform and AI SRE: MongoDB, Prisma, Salesforce, Workday
  • Financial Services: Range, AngelList
  • Healthcare: Counsel Health, Chapter
  • SMB: Genius AI

About the author

Sam Bhagwat is co-founder and CEO of Mastra, the open source TypeScript framework for building AI agents. His previous books, Principles of Building AI Agents and Patterns of Building AI Agents, reached developers through 500,000 print copies distributed.

Frequently asked questions

How does AI Agents in Production relate to Principles and Patterns?

AI Agents in Production is the third book in the Mastra agent series. Principles of Building AI Agents explains how to get started building an agent, and Patterns of Building AI Agents shows how to get agents into production. AI Agents in Production gives real examples of how companies are building agents to solve concrete problems.

Is AI Agents in Production really free?

AI Agents in Production is free. Enter your email and the PDF is sent to your inbox.

What does AI Agents in Production cover?

The book has three parts. Customer-facing Agents covers agents a company's own customers use. Function-specific Real-world Agents covers agents that do a company's own work: GTM and Analytics, Company Brain, and Developer Platform and AI SRE. Industry-specific Real-world Agents covers Financial Services, Healthcare and SMB.