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.
User
User submits a business request
Coordinator
Coordinator understands the request & delegates
Research
Research Agent gathers relevant information
Analysis
Analysis Agent processes info & identifies findings
Recommendation
Recommendation Agent generates actionable recommendations
Coordinator
Coordinator consolidates & delivers the final response
ctx.request_info)Practical implementation exercises
Each exercise builds one capability of the final assistant. Tick them off as you go.
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.
1"""Capstone — Multi-Agent Business Operations Assistant.23Flow (matches the workshop architecture):4 User request -> Coordinator (plan) -> Research -> Analysis -> Recommendation5 -> HUMAN APPROVAL (human-in-the-loop) -> Coordinator (consolidate) -> Final brief67Built with the *functional* workflow API: plain async Python + @step for8caching/checkpointing + ctx.request_info() for human approval.9"""1011import asyncio1213from agent_framework import Agent, RunContext, step, workflow14from common import make_client1516client = make_client()1718coordinator = 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.")313233@step34async def plan(request: str) -> str:35 return (await coordinator.run(f"PLANNING. Request: {request}")).text363738@step39async def do_research(plan_text: str) -> str:40 return (await research.run(plan_text)).text414243@step44async def do_analysis(findings: str) -> str:45 return (await analysis.run(findings)).text464748@step49async def do_recommend(insights: str) -> str:50 return (await recommender.run(insights)).text515253@step54async 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)).text606162@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)6869 # Human-in-the-loop: pause and ask a manager to approve / annotate70 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)767778async def main() -> None:79 request = input("Business request: ") or "Reduce customer onboarding time by 30% next quarter."80 wf = business_ops.build()8182 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-run8990 print("\n=== FINAL BRIEF ===\n", result.get_outputs()[-1])919293if __name__ == "__main__":94 asyncio.run(main())