From One to Many: Multi-Agent Systems

Introduction to AI Agents

Adel Nehme

VP of AI Curriculum, DataCamp

Customer Support in the Real World

$$ Types of customer tickets

  • Billing disputes requiring financial knowledge
  • Technical issues needing engineering support
  • Legal compliance questions demanding regulatory knowledge
  • Product recommendations calling for sales acumen
Introduction to AI Agents

Customer Support in the Real World

Ticket Type Knowledge Resources Tools to Access
Billing disputes Internal finance documentation, payment policy wiki, transaction logs Secure payment APIs, CRM with billing integration
Technical issues Engineering runbooks, system architecture docs, incident postmortems Observability tools (e.g., Datadog), ticketing system, internal dashboards
Legal compliance questions Legal knowledge base, compliance manuals, GDPR/CCPA documentation Contract management system, legal Q&A assistant, document retrieval tools
Product recommendations Product feature matrix, customer personas, sales playbooks Recommendation engine, CRM with lead tracking, chatbot assistant
Introduction to AI Agents

The Problem with Single Agents

Increasingly complex logic

Models using prompts with a high amount of if-else scenarios and edge-cases

$$

Tool overload

Agentic systems where a single model needs to call a wide variety of tools

1 OpenAI, A Practical Guide to Building Agents, https://cdn.openai.com/business-guides-and-resources/a-practical-guide-to-building-agents.pdf
Introduction to AI Agents

Multi-Agent Systems

Multi Agent Systems

Single Agent Systems

A single model equipped with appropriate tools and instructions executes workflows in a loop

Multi-Agent Systems

Execute workflows across multiple coordinated agents

1 OpenAI, A Practical Guide to Building Agents, https://cdn.openai.com/business-guides-and-resources/a-practical-guide-to-building-agents.pdf
Introduction to AI Agents

The Manager Pattern

$$

manager_pattern

1 OpenAI, A Practical Guide to Building Agents, https://cdn.openai.com/business-guides-and-resources/a-practical-guide-to-building-agents.pdf
Introduction to AI Agents

The Manager Pattern Applied

$$

1 OpenAI, A Practical Guide to Building Agents, https://cdn.openai.com/business-guides-and-resources/a-practical-guide-to-building-agents.pdf
Introduction to AI Agents

The Decentralized Pattern

$$ decentralized_pattern

1 OpenAI, A Practical Guide to Building Agents, https://cdn.openai.com/business-guides-and-resources/a-practical-guide-to-building-agents.pdf
Introduction to AI Agents

The Decentralized Pattern Applied

$$ decentralized example

1 OpenAI, A Practical Guide to Building Agents, https://cdn.openai.com/business-guides-and-resources/a-practical-guide-to-building-agents.pdf
Introduction to AI Agents

Emerging Agent Architectures

1 LangGraph Multi Agent Systems, https://langchain-ai.github.io/langgraph/concepts/multi_agent/
Introduction to AI Agents

From One to Many: Multi-Agent Systems

Multi Agent Systems

1 Image generated with GPT-4o
Introduction to AI Agents

Let's Practice!

Introduction to AI Agents

Preparing Video For Download...