AI City Popy ๐Ÿ™๏ธ
๐Ÿ“ฆ
๐Ÿ“Š
๐Ÿ”—
โœ…
โšก
AI City ยท District 05

Welcome to The City Manager Tower

Where AI workers coordinate massive city-wide tasks together โ€” and one manager makes it all run smoothly.

๐Ÿ—บ๏ธ
Popy

A great city runs on teamwork and coordination. I'm Popy, the City Manager. Let me show you how we keep AI City running! ๐Ÿ—บ๏ธ

Section 1 ยท Why Coordination Matters

Without a Managerโ€ฆ ๐Ÿ˜ต

What happens when workers try to coordinate themselves? Tap the button to find out!

๐ŸงณTravel
๐Ÿ’ฐBudget
๐ŸŽจDesign
๐Ÿ”Research
๐Ÿ“‹Planner
๐Ÿ—บ๏ธ
Popy

Without coordination, even smart workers become chaotic. Duplicated work, missed tasks, confused results. That's exactly why orchestration exists! ๐Ÿ—ผ

Section 2 ยท The Role of a Manager

Meet The City Manager ๐Ÿ—ผ

Popy receives a big request, splits it into smaller tasks, delegates them โ€” then combines every result into one final answer.

๐ŸŽฏ Request: โ€œPlan my Rajasthan vacation!โ€
๐Ÿ—บ๏ธ
Popy ยท City Manager
Receives goal โ†’ splits โ†’ delegates โ†’ combines
๐Ÿงณ
Travel
Find flights & hotels
๐Ÿ’ฐ
Budget
Calculate total costs
๐Ÿœ
Food
Find restaurants
๐Ÿ”
Weather
Check best season
๐Ÿ“‹
Combined Final Answer
๐Ÿ—บ๏ธ
Popy

Orchestration means coordinating multiple AI workers to solve larger tasks. I break the work apart, send it out, wait for results, then stitch everything together! ๐Ÿงฉ

Section 3 ยท Task Decomposition

Splitting Big Tasks โœ‚๏ธ

One giant task is impossible for a single worker. Popy breaks it into manageable pieces. Tap the orb to split!

๐Ÿ—บ๏ธ
Popy

A task nobody can finish alone becomes easy when you break it into smaller pieces. Each worker gets exactly the job they're good at! โœ‚๏ธ

Section 4 ยท Delegation

Help Popy Delegate! ๐Ÿ“ฌ

Each task needs to go to the right worker. Tap the correct team member!

Task 1 / 6 ยท Score: 0
โœˆ๏ธ

โ€œBook flightsโ€

๐Ÿ—บ๏ธ
Popy

The manager sends each task to the worker best suited for it. Perfect delegation keeps the whole city humming! ๐Ÿ“ฌ

Section 5 ยท Combining Results

Combining Results ๐Ÿงฉ

Workers finish their tasks and send results back. Popy assembles them into one final answer โ€” tap to collect each result!

โœˆ๏ธ
Flights ยท from Travel Agent
๐Ÿจ
Hotel ยท from Budget Agent
๐Ÿ—บ๏ธ
Itinerary ยท from Planner Agent
๐Ÿœ
Food Guide ยท from Chef Agent
๐Ÿ—บ๏ธ
Popy

A manager combines every worker's contribution into one complete result. The whole is greater than the sum of its parts! ๐ŸŒŸ

Section 6 ยท Workflow Routing

Workflow Routing ๐Ÿ”—

Workflows are pathways that connect workers together. Watch the task route flow through the system!

๐ŸŽฏUser Goal๐Ÿ—ผCity Manager๐ŸงณTravel๐Ÿ’ฐBudget๐ŸœChef๐Ÿ“‹Combineโœ…Final Answer
๐Ÿ—บ๏ธ
Popy

Workflows are like the roads of AI City โ€” they define exactly how tasks travel from one worker to the next, in the right order, without any confusion! ๐Ÿ›ฃ๏ธ

Section 7 ยท Tool Coordination

Tool Coordination ๐Ÿ› ๏ธ

Each worker uses a different tool โ€” and Popy coordinates all of it. Step through the pipeline!

๐Ÿงณ
Travel Agent
using ๐Ÿ—บ๏ธ Maps API
๐ŸŒค๏ธ
Weather Check
using ๐ŸŒ Weather API
๐Ÿ’ฐ
Budget Agent
using ๐Ÿงฎ Calculator
๐Ÿ“‹
Planner Agent
using ๐Ÿ“… Calendar
๐Ÿ—บ๏ธ
Popy

Different workers use different tools โ€” but Popy coordinates them all through a shared pipeline. That's the magic of orchestration! ๐Ÿ› ๏ธ

Section 8 ยท LangGraph

Orchestration Graphs ๐Ÿ•ธ๏ธ

Tools like LangGraph map out the exact flow between workers โ€” including branches, retries, and decisions. Watch a graph run!

โœ“ okโœ— failloop๐ŸŽฏStart๐Ÿ“‹Plan๐Ÿ’ฐBudget๐Ÿ”Review๐Ÿ”„Retry?โœ…Output
๐Ÿ’ก Click any node to highlight it ยท or watch the full tour below
What LangGraph adds:
โœฆ Parallel workersโœฆ Conditional branchesโœฆ Automatic retriesโœฆ Shared state
๐Ÿ—บ๏ธ
Popy

Tools like LangGraph help AI systems coordinate workflows safely and reliably. Instead of hoping workers talk to each other, a graph makes the rules explicit! ๐Ÿ“

Section 9 ยท Code

Orchestration in Code ๐Ÿ“

Tap any coloured part to see Popy explain what it does โ€” in plain language.

manager = Manager()
ย 
plan = planner.create_plan()
ย 
budget = budget_worker.calculate(plan)
ย 
return manager.combine(plan, budget)

๐Ÿ‘† Tap a coloured word to see Popy explain it.

๐Ÿ—บ๏ธ
Popy

The manager coordinates workers and assembles the final answer. Every worker is just a function call โ€” the power comes from connecting them together! ๐Ÿ”—

Section 10 ยท Final Mission

๐Ÿ–๏ธ Stabilise the Tourism Festival!

A massive surge of requests has hit the City Manager Tower. Coordinate your workers โ€” assign every task before submitting your plan!

โœˆ๏ธ

Book buses & trains for 500 visitors

+60pts
๐Ÿจ

Reserve hotel blocks across 3 cities

+60pts
๐Ÿ’ธ

Calculate total festival budget

+60pts
๐Ÿœ

Find street food festival vendors

+60pts
๐ŸŒค๏ธ

Confirm weather is safe for outdoor events

+60pts
๐ŸŽจ

Create festival banner & social posts

+60pts
๐Ÿ—บ๏ธ
Popy

You understand orchestration! ๐Ÿ—ผ

You now know how AI systems coordinate workers, delegate tasks, route workflows, and combine results into something bigger.

โœฆ coordinate workersโœฆ delegate tasksโœฆ route workflowsโœฆ combine results
๐Ÿ“š
Next: The Tool Workshop

Learn how AI systems store and retrieve knowledge across sessions โ€” that's what vector databases and RAG are all about.

๐Ÿ™๏ธ Back to AI City
Explore Memory Library ๐Ÿ”’
Mini Project
Build Quest

Workflow Graph

Deliverable: Build a graph with one branch and one merge that solves a single user task.

Stretch: Add timeout handling for one branch node.

Complete the deliverable first, then unlock the stretch goal.

Previous
๐Ÿง‘โ€๐Ÿ’ผ AI Workers
Next
๐Ÿ› ๏ธ Tool Workshop