📚 Module 9 of 10

Advanced Workflows

Multi-step processes and cross-agent collaboration.

🔄 Cross-Agent Workflows

Complex tasks often require multiple agents working together. Here's how agents hand off work through shared memory.

Example: Trip Planning Workflow

1
Travel Agent researches flights

Finds best options, writes to shared file

2
Travel Agent finds hotels

Adds accommodation options to shared file

3
Personal Assistant checks calendar

Verifies dates work, blocks time

4
Research Agent finds activities

Adds things to do at destination

5
Personal Assistant compiles itinerary

Presents complete plan to you

💡

Shared Memory

Agents communicate through shared memory files. Agent A writes to memory/shared/trip-planning.md, Agent B reads it and adds their contribution. The main agent coordinates and presents the final result.

💬 Workflow in Action

You Trigger the Workflow

You → Personal Assistant
Plan a weekend trip to Miami for next month. Handle everything.
Personal Assistant
I'll coordinate your trip. Travel Agent is researching flights and hotels. I'll check your calendar and Research Agent will find activities. You'll have a complete itinerary shortly.
Travel Agent (via shared memory)
Flights: Found 3 options. Best: Direct, $340, Friday 10am. Hotels: 5 options. Top pick: Boutique hotel, $180/night, has gym.
Personal Assistant
Calendar confirmed — dates work. I've blocked Friday-Monday.
Research Agent
Activities added: 3 restaurants (booked), 2 museums, beach spots.
Personal Assistant
✅ Trip planned! Complete itinerary with bookings ready to confirm. Check your messages for details.

🎯 Quick Quiz: Workflow Design

You want to research a new laptop, compare prices, and set up price drop alerts. Which agents should be involved?

✅ Correct! Research Agent handles the research/comparison, Personal Assistant sets up the ongoing price monitoring cron job.
❌ Not quite. You need Research for the analysis and Personal Assistant for the ongoing automation setup.

✏️ Your Turn — 3 Exercises

1

Map a Workflow

Design a 3-step workflow for a task you do regularly.

I want to automate [task]. Step 1: [agent] does [action]. Step 2: [agent] does [action]. Step 3: [final outcome].
2

Cross-Agent Task

Give your main agent a complex task that requires coordination.

I need to [complex task]. Coordinate with the appropriate specialized agents and present me a complete solution.
3

Build a Recurring Workflow

Create a weekly workflow that combines multiple agents.

Set up a weekly cron job that triggers a multi-agent workflow: Research Agent summarizes industry news, Communication Agent drafts any needed responses, and Personal Assistant adds relevant items to my calendar.
🎉

Module 9 Complete!

You can now design complex multi-agent workflows. One module left!