Tools, Tasks & Workflows
Build complex multi-agent workflows
Master tools, tasks, and workflows by building a restaurant ordering system with greeter, order taker, and feedback agents.
What You Build
Restaurant ordering system: greeter→order taker→feedback. Multi-agent workflow with handoffs, TaskGroups, prebuilt tasks.
Prerequisites
- →Course 1.1
Workflow architecture
15mWhen to use agents, tasks, or tools — and how they compose into workflows.
Building the greeter agent
15mBuild the greeter agent with on_enter() and tool-based handoff to the order taker.
Complex tool definitions
20mBeyond decorators: programmatic tools, raw JSON schema, Toolset management, and ToolFlag options.
AgentTask: structured data collection
25mUse AgentTask with typed results for structured data collection and form-like interactions.
TaskGroup: multi-step flows
25mOrchestrate multi-step flows with TaskGroup, handle regression, and summarize context between steps.
Prebuilt tasks
15mUse LiveKit's prebuilt tasks for common data collection patterns.
Agent handoffs & context
20mHand off between agents while preserving context, using on_exit() and AgentConfigUpdate.
State with userdata
15mManage cross-agent state with session.userdata for persistent conversation data.
Dynamic tool management
15mAdd, remove, and update tools and instructions dynamically based on conversation state.
Testing the workflow
20mTest multi-agent workflows with is_agent_handoff() assertions and CI integration.
What You Walk Away With
Deep understanding of when to use tools vs tasks vs agent handoffs, plus a working multi-agent restaurant ordering system.