End-to-end hands-on project

Multi-Agent Business Operations Assistant

Specialised AI agents collaborate to solve a real business problem — planned by a coordinator, reviewed by a human, delivered as an executive brief.

Application architecture

Six steps, five agent calls, one human checkpoint.

1

User

User submits a business request

2

Coordinator

Coordinator understands the request & delegates

3

Research

Research Agent gathers relevant information

4

Analysis

Analysis Agent processes info & identifies findings

5

Recommendation

Recommendation Agent generates actionable recommendations

6

Coordinator

Coordinator consolidates & delivers the final response

Between steps 5 and 6: a manager approves or annotates the draft (human-in-the-loop via ctx.request_info)

Practical implementation exercises

Each exercise builds one capability of the final assistant. Tick them off as you go.

0/7 exercises

Create a basic agent using Microsoft Agent Framework

Configure agent instructions and model connectivity

Integrate Python functions as agent tools

Implement multi-turn conversations and session management

Create multiple specialised agents

Implement sequential or concurrent agent orchestration

Test and debug agent execution

Technical stack

Agent Framework

Microsoft Agent Framework

Language

Python 3.10+

Dev environment

Google Colab / VS Code

AI model provider

Groq (BYOK) · Azure OpenAI · Foundry

Agent development

agent-framework-core / -openai

Tool integration

Python functions (@tool)

Workflow orchestration

MAF Workflows & orchestrations

Data processing

Pandas

Application interface

Streamlit (optional) · this web app

Monitoring

OpenTelemetry / framework observability

Prerequisites

  • 1Basic knowledge of Python programming
  • 2Basic understanding of Large Language Models (LLMs)
  • 3Familiarity with Generative AI and Agentic AI concepts
  • 4Basic understanding of APIs and function calling
  • 5Python environment configured (Google Colab or VS Code)
  • 6Access to a supported AI model provider + credentials (a free Groq key works)
  • 7Required package: agent-framework (agent-framework-core + -openai + -orchestrations)
  • 8Sample business use cases and datasets (labs/data/sales.csv)

The complete capstone

labs/capstone_business_ops.py — functional workflow with @step caching and human approval. Run with python capstone_business_ops.py.

capstone_business_ops.py
1"""Capstone — Multi-Agent Business Operations Assistant.
2
3Flow (matches the workshop architecture):
4 User request -> Coordinator (plan) -> Research -> Analysis -> Recommendation
5 -> HUMAN APPROVAL (human-in-the-loop) -> Coordinator (consolidate) -> Final brief
6
7Built with the *functional* workflow API: plain async Python + @step for
8caching/checkpointing + ctx.request_info() for human approval.
9"""
10
11import asyncio
12
13from agent_framework import Agent, RunContext, step, workflow
14from common import make_client
15
16client = make_client()
17
18coordinator = Agent(
19 client=client,
20 name="Coordinator",
21 instructions=(
22 "You are the coordinator of a business operations team. "
23 "When PLANNING: restate the goal and list 3 research questions. "
24 "When CONSOLIDATING: write an executive brief with Summary, Key Insights, "
25 "Recommendations and Next Steps. Max 250 words."
26 ),
27)
28research = Agent(client=client, name="Research", instructions="Answer the research questions with concise, factual bullets.")
29analysis = Agent(client=client, name="Analysis", instructions="Identify 3 insights, 2 risks and 2 opportunities from the research.")
30recommender = Agent(client=client, name="Recommendation", instructions="Produce 3 prioritised, actionable recommendations with a KPI each.")
31
32
33@step
34async def plan(request: str) -> str:
35 return (await coordinator.run(f"PLANNING. Request: {request}")).text
36
37
38@step
39async def do_research(plan_text: str) -> str:
40 return (await research.run(plan_text)).text
41
42
43@step
44async def do_analysis(findings: str) -> str:
45 return (await analysis.run(findings)).text
46
47
48@step
49async def do_recommend(insights: str) -> str:
50 return (await recommender.run(insights)).text
51
52
53@step
54async def consolidate(request: str, insights: str, recs: str, reviewer_note: str) -> str:
55 prompt = (
56 f"CONSOLIDATING. Original request: {request}\n\nInsights:\n{insights}\n\n"
57 f"Recommendations:\n{recs}\n\nReviewer note: {reviewer_note}"
58 )
59 return (await coordinator.run(prompt)).text
60
61
62@workflow(name="business_ops_assistant")
63async def business_ops(request: str, ctx: RunContext) -> str:
64 plan_text = await plan(request)
65 findings = await do_research(plan_text)
66 insights = await do_analysis(findings)
67 recs = await do_recommend(insights)
68
69 # Human-in-the-loop: pause and ask a manager to approve / annotate
70 note = await ctx.request_info(
71 {"question": "Approve these recommendations? Add a note or type 'approve'.", "draft": recs},
72 response_type=str,
73 request_id="manager_approval",
74 )
75 return await consolidate(request, insights, recs, note)
76
77
78async def main() -> None:
79 request = input("Business request: ") or "Reduce customer onboarding time by 30% next quarter."
80 wf = business_ops.build()
81
82 result = await wf.run(request)
83 pending = result.get_request_info_events()
84 if pending:
85 event = pending[0]
86 print("\n--- DRAFT FOR REVIEW ---\n", event.data["draft"])
87 note = input("\nManager note (or 'approve'): ") or "approve"
88 result = await wf.run(responses={event.request_id: note}) # resume; cached steps are not re-run
89
90 print("\n=== FINAL BRIEF ===\n", result.get_outputs()[-1])
91
92
93if __name__ == "__main__":
94 asyncio.run(main())