الدرس 1 · الوحدة 4: Agentic Systems: Manager and Worker Agents
From one agent to a team: when a multi-agent system is worth it
- Spot where a single agent starts to strain
- Describe the manager and worker team shape
- Decide with a simple checklist if a team is worth it
Why this matters
One assistant doing everything, from customer chats to bookings to invoices, starts giving wrong answers as its rules pile up in one long prompt. Knowing when to split that work into a small team of agents, and when that split just adds cost, decides whether a client's automation actually works.
Key ideas
One agent strains under mixed jobs. A single agent shares one prompt and one memory across every job. As the rules for tone, booking and billing grow, it starts picking the wrong rule or the wrong tool.
A team has a manager and workers. A manager agent reads each request and routes each part to a worker. Each worker owns one job, with its own short prompt and only the tools that job needs.
A team costs more calls. Every agent that thinks is a separate model call. Rough example: if one call costs 1 cent, a single agent answering in one call costs 1 cent, while a team using 3 calls costs 3 cents, about three times as much.
Split by job, not by step. Booking and billing are jobs worth separating. Greeting and formatting a reply are steps that belong together inside one agent, so you avoid extra handoffs.
Four signs a team is worth it. The jobs need different skills or tone, each uses its own tools, mistakes are costly, or one prompt keeps breaking as you fix it. Two or more signs usually means a team.
Try it before you watch
A small shop's assistant handles price questions, return requests and shipping updates, each with its own tools. Its single prompt keeps getting confused. Which of the four signs apply, and what should you do?
Show answerHide answer
Different skills or tone (price answers and return policy differ), own tools per job (pricing, returns and shipping each use different tools), and a prompt that keeps breaking all apply: three of four signs, so build a manager with three focused workers. This shows that two or more signs point to a team.
Words to know
- Manager agent: the agent that reads an incoming request, decides what it needs, and sends each part to the right worker.
- Worker agent: an agent that handles one specific job and has only the tools and rules for that job.
- Routing: deciding which worker should handle a piece of a request.
- Handoff: passing a task or its result from one agent to another, which costs a model call and can lose details.
- Multi-agent system: a setup where several agents work together, usually a manager plus workers, instead of one agent doing everything.
What to watch for
- Watch how the single assistant's answers go wrong: the refund that gets a booking link shows the rules mixing together.
- Notice how the manager splits Maya's one message into two tasks, and how each worker only sees its own rules.
- Count the model calls and handoffs in the team picture, and check whether the checklist score justifies that extra cost.
تعلّمه مع معلمك على السبورة المباشرة
أهم نقاط الفيديو
One assistant, too many jobs
- Maya runs an online candle shop
- One AI assistant answers messages, books calls, sends invoices
- Then things go wrong
layout: full
parts:
asst: {chip: "AI assistant", sub: "One helper for every job"}
chat1: {chat: "Can I get a refund?", reply: "Here is a booking link."}
steps:
- at: "online candle shop"
note: "Maya's candle shop"
- at: "answers customer messages, books video calls"
spokes: {of: asst, items: ["Customer messages", "Video calls", "Invoices"]}
- at: "Then things go wrong"
highlight: asst
- at: "customer asks about a refund"
send: chat1
- at: "invoice goes out with last"
note: "Old prices"
- at: "The assistant isn't broken"
note: "Overloaded, not broken"
- at: "three jobs at one desk"
note: "Three jobs, one desk"
- at: "splitting one agent"
note: "Split it, or keep it?" What you will learn
- Spot where a single agent starts to strain
- Describe the manager and worker team shape
- Decide with a simple checklist if a team is worth it
layout: full
parts:
plan: {chip: "Today's plan", sub: "What you will learn"}
steps:
- at: "learn to spot the moments"
note: "Spot the strain"
- at: "see the basic shape"
note: "The team shape"
- at: "a simple checklist that tells you"
note: "A simple checklist"
- at: "make that call with confidence"
note: "Your call, with confidence" A single agent, quick recap
- An agent = a language model + instructions + tools
- It works in a loop: read, plan, use a tool, check, repeat
- Every job shares one prompt and one memory
layout: full
parts:
agent: {chip: "One agent", sub: "Model, prompt, tools"}
ask: {chat: "Can I book a call?", reply: "Booked. Reply sent."}
steps:
- at: "An agent is a language model"
note: "Language model"
- at: "plus instructions telling it"
note: "Instructions"
- at: "plus tools, which are actions"
note: "Tools"
- at: "It reads the message"
send: ask
- at: "uses a tool, checks the result"
note: "Use a tool, check it"
- at: "repeats until the job is done"
note: "Repeat until done"
- at: "Every job it does shares"
note: "One prompt, one memory"
- at: "That sharing is fine"
note: "Fine for one job"
- at: "It gets crowded when"
note: "Crowded with many jobs" Where one agent strains
- Inbox: tone and return policy
- Calendar: time zones, hours, no double bookings
- Invoices: numbers, tax, current prices
- One long prompt, a dozen tools
layout: full
parts:
inbox: {chip: "Inbox"}
cal: {chip: "Calendar"}
inv: {chip: "Invoices"}
prompt: {box: "One long prompt", holds: [inbox, cal, inv], icon: file-text}
steps:
- at: "Picture Maya's assistant at its desk"
note: "Maya's assistant"
- at: "Start with the Inbox"
highlight: inbox
- at: "each one needs a friendly tone"
note: "Tone and return policy"
- at: "Now the Calendar"
highlight: cal
- at: "Booking a call needs exact rules"
note: "Exact rules"
- at: "Then the Invoices"
highlight: inv
- at: "one needs a"
note: "Exact numbers"
- at: "sit in one long prompt"
zoom_out: prompt
- at: "grabs the wrong rule"
note: "Wrong rule, wrong tool"
- at: "exactly the refund that got"
note: "Refund, booking link" The team shape
- A manager agent reads the request and routes it
- Worker agents each own one job and its tools
- Each worker gets a short, focused prompt
layout: full
parts:
mgr: {chip: "Manager", sub: "Reads and routes"}
msg: {chat: "Can I book a call on Thursday?"}
steps:
- at: "The fix is to split"
note: "Split the work"
- at: "A manager agent reads each request"
send: msg
- at: "routes it, meaning it sends"
note: "Routes each part to a worker"
- at: "The booking worker only has calendar"
note: "Booking worker: calendar"
- at: "The billing worker only has invoice"
note: "Billing worker: invoices"
- at: "The support worker knows the tone"
note: "Support worker: tone"
- at: "Each worker has a short"
note: "Short, focused prompts"
- at: "gathers the results into one reply"
highlight: mgr
note: "One reply back" Worked example: one message, two jobs
- "Can I book a call Thursday at 3, and resend my September invoice?"
- Manager splits it, two workers act, one reply goes back
layout: wide
direction: LR
components:
user: {kind: user, label: Customer}
mgr: {kind: llm, label: Manager agent}
book: {kind: worker, label: Booking worker}
bill: {kind: worker, label: Billing worker}
cal: {kind: database, label: Calendar}
inv: {kind: storage, label: Invoices}
links: [user->mgr, mgr->book, mgr->bill, book->cal, bill->inv]
steps:
- at: "a customer writes in"
show: [user, mgr]
- at: "splits the message into two"
show: all
- at: "the booking worker checks"
flow: ["user>mgr: message", "mgr>book: book Thu 3pm", "book>cal: free?", "cal>book: yes", "book>mgr: booked"]
- at: "billing worker finds the September"
flow: ["mgr>bill: Sept invoice", "bill>inv: find", "inv>bill: PDF", "bill>mgr: link"]
- at: "The manager now has both answers"
flow: ["mgr>user: one reply"]
- at: "neither worker ever saw"
highlight: [book, bill]
note: "Separate rules" The price of a team
- More agents means more model calls
- More calls means more cost and more waiting
- Each handoff adds one more place to lose details
layout: side
objects:
title: {text: "What a team costs", pos: top}
one: {tex: '1 \times 1 = 1', pos: top_left}
three: {tex: '3 \times 1 = 3', pos: top_right}
cost: {text: "Cost: about three times", pos: bottom_left}
time: {text: "Each call adds seconds", pos: bottom_right}
lost: {text: "Handoffs lose details", pos: center}
steps:
- at: "Now the honest part"
show: title
- at: "Every agent that thinks"
show: one
- at: "Say one call costs about"
highlight: one
- at: "Suppose the team handles"
show: three
- at: "That's three cents"
highlight: three
- at: "roughly three times the cost"
show: cost
- at: "each call adds a few seconds"
show: time
- at: "every handoff between agents"
show: lost Four signs a team is worth it
- The jobs need different skills or tone
- Each job uses its own tools
- Mistakes are costly, so each job needs focus
- One prompt keeps growing and breaking
layout: full
parts:
sign: {chip: "Team or not?", sub: "Look for the signs"}
steps:
- at: "Look for four signs"
note: "Four signs to look for"
- at: "One, the jobs need different skills"
note: "Different skills or tone"
- at: "Two, each job uses"
note: "Its own tools per job"
- at: "Three, mistakes are costly"
note: "Costly mistakes"
- at: "Four, your single prompt keeps growing"
note: "A prompt that keeps growing"
- at: "When you see two or more"
highlight: sign
note: "Enough signs: build a team"
- at: "When you see none"
note: "None: keep it simple" A quick decision check
- Different skills or tone: yes
- Its own tools per job: yes
- Costly mistakes: yes
- One prompt keeps breaking: yes
- Score 4 of 4, two or more means a team
layout: side
objects:
board: {text: "Maya's shop checklist", pos: top}
q1: {text: "Different skills: yes", pos: top_left}
q2: {text: "Own tools per job: yes", pos: top_right}
q3: {text: "Costly mistakes: yes", pos: bottom_left}
q4: {text: "Prompt breaking: yes", pos: bottom_right}
rule: {tex: 'ticks \geq 2', pos: center}
verdict: {text: "Four of four: a team", pos: bottom}
steps:
- at: "run that checklist on Maya's shop"
show: board
- at: "Different skills or tone"
show: q1
- at: "Its own tools per job"
show: q2
- at: "Costly mistakes"
show: q3
- at: "One prompt keeps breaking"
show: q4
- at: "Now count the ticks"
highlight: board
- at: "two or more means split"
show: rule
- at: "Maya's shop scores four"
show: verdict
- at: "extra calls are worth paying for"
highlight: verdict Common mistake: too many agents
- One agent per tiny step: 'greet', 'read', 'reply'
- Each step adds cost, delay and handoffs
- Split by job, not by step
layout: full
parts:
env: {chip: "One message", sub: "Passed from agent to agent"}
steps:
- at: "The most common mistake"
note: "The most common mistake"
- at: "one to greet, one to read"
note: "One agent per tiny step"
- at: "Look at the handoffs"
highlight: env
note: "Handoffs"
- at: "risks losing a detail"
note: "Delay and lost details"
- at: "the envelope arrives crumpled"
note: "Crumpled at the end"
- at: "A good rule is to split"
note: "Split by job"
- at: "Booking is a job"
note: "Booking: a job"
- at: "Billing is a job"
note: "Billing: a job"
- at: "Saying hello is not"
note: "Saying hello: not a job"
- at: "keep them in the same agent"
note: "Keep them together" Your exercise
- Pick a real small business workflow
- List its jobs, tools and costly mistakes
- Score it on the four signs and decide: one agent or a team
layout: full
parts:
book: {chip: "Your notebook", sub: "Your workflow"}
steps:
- at: "Pick a real workflow"
note: "A real workflow"
- at: "a hair salon booking appointments"
note: "Hair salon: bookings"
- at: "a tutor sending invoices"
note: "Tutor: invoices"
- at: "a shop answering order questions"
note: "Shop: order questions"
- at: "list every job inside that workflow"
note: "Every job, tool and mistake"
- at: "score it on the four signs"
note: "Score: four signs"
- at: "write your verdict"
note: "Your verdict"
- at: "name the manager and each worker"
note: "Name the manager and workers"
- at: "Keep it to one page"
note: "One page"
- at: "use this exact page"
highlight: book
note: "Used in the next lesson" Recap
- One agent strains when rules and tools pile up
- A manager routes, focused workers each own a job
- Build a team only when the signals outweigh the cost
layout: full
parts:
take: {chip: "This lesson", sub: "Three takeaways"}
steps:
- at: "a single agent starts to strain"
note: "One agent strains"
- at: "pile into one prompt"
note: "Too many rules, one prompt"
- at: "the team shape is a manager"
note: "A manager routes"
- at: "focused workers that each own"
note: "Focused workers, one job each"
- at: "a team costs more calls"
note: "A team costs more"
- at: "signals outweigh that cost"
note: "Build only when worth it"
- at: "split by job and keep"
note: "Split by job, keep it small"
- at: "design the manager agent"
note: "Next: design the manager" النص المكتوب
One assistant, too many jobs. Meet Maya. She runs a small online candle shop, and she built one AI assistant to help. It answers customer messages, books video calls for custom orders, and sends invoices. For a few weeks it's great. Then things go wrong. A customer asks about a refund and gets a booking link. An invoice goes out with last month's prices. So what happened? The assistant isn't broken. It's overloaded, the way a person would be if they did three jobs at one desk with one notebook. In this lesson we'll work out when splitting one agent into a small team fixes that, and when it just adds cost.
What you will learn. Here's the plan for today. First, you'll learn to spot the moments where a single agent starts to strain, so you know what problem you're actually solving. Second, you'll see the basic shape of a multi-agent system, which simply means several agents working together: one manager agent and a few worker agents. Third, and most useful for your clients, you'll get a simple checklist that tells you whether a team is worth building or whether one well-built agent is the better deal. By the end you'll be able to look at any small business workflow and make that call with confidence.
A single agent, quick recap. Let's recap what one agent is. An agent is a language model, the AI that reads and writes text, plus instructions telling it how to behave, plus tools, which are actions it can take, like reading a calendar or creating an invoice. It works in a loop. It reads the message, plans a step, uses a tool, checks the result, and repeats until the job is done. The key detail is this. Every job it does shares one set of instructions, which we call the prompt, and one memory of the conversation. That sharing is fine for one job. It gets crowded when there are many.
Where one agent strains. Picture Maya's assistant at its desk. Start with the Inbox. Customer messages arrive about scents, shipping and refunds, and each one needs a friendly tone and the shop's return policy. Now the Calendar. Booking a call needs exact rules: time zones, opening hours, no double bookings. Then the Invoices. Billing needs numbers, tax and the current price list, with zero room for creativity. All three sets of rules sit in one long prompt, and the agent has a dozen tools to choose from. The longer that prompt grows, the more often it grabs the wrong rule or the wrong tool. That's exactly the refund that got a booking link.
The team shape. The fix is to split the work, the same way a growing shop hires people. A manager agent reads each request, works out what's being asked, and routes it, meaning it sends each part to the right worker. Worker agents each own one job. The booking worker only has calendar tools and booking rules. The billing worker only has invoice tools and the price list. The support worker knows the tone and the return policy. Each worker has a short, focused prompt, so there's far less to confuse. The manager then gathers the results into one reply for the customer.
Worked example: one message, two jobs. Let's walk one real message through the team. A customer writes in: can I book a call Thursday at three, and can you resend my September invoice? The manager reads it and splits the message into two tasks. First, the booking worker checks the calendar, sees Thursday at three is free, books it, and reports back. Then the billing worker finds the September invoice, grabs the PDF link, and returns it. The manager now has both answers and sends the customer one tidy reply. Notice that neither worker ever saw the other's rules, so neither could mix them up.
The price of a team. Now the honest part. A team isn't free. Every agent that thinks is a separate call to the model, and you pay per call. Let's use simple, rough numbers. Say one call costs about one cent, and suppose the single agent answers a simple question in one call, so one cent. Suppose the team handles that same message with three calls: the manager, a worker, then the manager again to write the reply. That's three cents. Real agents often loop through several calls, but the extra layer always adds more. Look at the receipt: roughly three times the cost. Then the stopwatch: each call adds a few seconds of waiting. And every handoff between agents is one more place where details can get lost.
Four signs a team is worth it. So when does a team pay for itself? Look for four signs. One, the jobs need different skills or tone, like warm support replies versus exact invoices. Two, each job uses its own tools, so splitting them shrinks the menu each agent picks from. Three, mistakes are costly, like a wrong amount on an invoice, so each job deserves its own focused agent that thinks about nothing else. Four, your single prompt keeps growing, and every fix for one job breaks another. When you see two or more of these, specialists usually beat one generalist. When you see none, keep it simple.
A quick decision check. Let's run that checklist on Maya's shop, the same way you'll do it in a no-code tool. Different skills or tone? Yes: warm support replies and exact invoices. Its own tools per job? Yes: calendar tools for booking, invoice tools for billing. Costly mistakes? Yes: a wrong price on an invoice costs money and trust. One prompt keeps breaking? Yes, that's the refund that got a booking link. Now count the ticks. The rule is simple: two or more means split into a small team. Maya's shop scores four out of four, so the verdict is a team, and the extra calls are worth paying for.
Common mistake: too many agents. The most common mistake is splitting too far. Builders get excited and create an agent for every tiny step: one to greet, one to read the message, one to write the reply, one to format it. Look at the handoffs in this picture. Every pass of the envelope costs a model call, adds delay, and risks losing a detail, so by the end the envelope arrives crumpled. A good rule is to split by job, not by step. Booking is a job. Billing is a job. Saying hello is not. If two steps always happen together, keep them in the same agent.
Your exercise. Now it's your turn. Pick a real workflow from a small business you know, maybe a hair salon booking appointments, a tutor sending invoices, or a shop answering order questions. In your notebook, list every job inside that workflow, the tools each job needs, and the mistakes that would really hurt. Then score it on the four signs from this lesson, and write your verdict: one agent or a small team, and if a team, name the manager and each worker. Keep it to one page, because you'll use this exact page in the next lesson.
Recap. Let's recap. First, a single agent starts to strain when too many rules and tools pile into one prompt, and it begins grabbing the wrong one. Second, the team shape is a manager that reads and routes each request, plus focused workers that each own one job with its own short prompt and tools. Third, a team costs more calls, more time and more handoffs, so build one only when the signals outweigh that cost: different skills, different tools, costly mistakes, or a prompt that keeps breaking. When you do build a team, split by job and keep it small. In the next lesson we'll design the manager agent, using the page you just wrote.
استكشف الرسوم المتحركة
الرسوم المتحركة نفسها التي في الفيديو، دقيقة وتفاعلية: شغّلها أو أوقفها، أو اسحب المؤشر، أو انتقل إلى أي خطوة بالسرعة التي تناسبك.
Loading the animation...
Loading the animation...
Loading the animation...
Loading the animation...
Loading the animation...
Loading the animation...
Loading the animation...
Loading the animation...
Loading the animation...
Loading the animation...
Loading the animation...
Loading the animation...
أجب عن كل الأسئلة ثم تحقّق. تنجح بنسبة 70%، ويمكنك إعادة المحاولة كما تشاء.
ملخص الدرس
- القراءة
- مشاهدة الفيديو
- اجتياز الاختبار (70%)
- An agent = a language model + instructions + tools
- It works in a loop: read, plan, use a tool, check, repeat
- Every job shares one prompt and one memory