AgentFlow is a multi-agent AI productivity assistant that coordinates specialized AI agents to manage tasks, schedules, and notes through automated workflows.
It demonstrates how multiple agents can collaborate with tools and structured data to complete real-world productivity tasks.
Built for the Gen AI Academy Hackathon.
Frontend UI: https://agentflow-88256365321.us-central1.run.app/
API Docs: https://agentflow-88256365321.us-central1.run.app/docs
Multi-Agent Productivity Assistant Build a multi-agent AI system that helps users manage tasks, schedules, and information by interacting with multiple tools and data sources.
Core Requirements:
- Implement a primary coordinating agent
- Store and retrieve structured data from a database
- Integrate multiple tools via MCP (e.g., calendar, task manager, notes)
- Handle multi-step workflows and task execution
- Deploy as an API-based system
AgentFlow utilizes a hierarchical multi-agent architecture where a central orchestrator delegates steps to specialized local agents.
Architectural Flow: User Prompt → PlannerAgent (Gemini) → OrchestratorAgent → Specialized Agents → Tools → Database
Example Workflow: PlannerAgent decomposes the user prompt → CalendarAgent schedules the meeting → TaskAgent adds preparation steps to the to-do list.
- Multi-agent coordination
- MCP tool integration
- Multi-step workflow automation
- SQLite structured storage
- Glassmorphism UI with workflow visualization
frontend/ # Glassmorphism UI and SVG Visualizations
src/
agents/ # Logic for Planner, Orchestrator, Task, Calendar, Note agents
tools/ # Tools mapping to specialized agents
database/ # SQLAlchemy async session management
api/ # FastAPI endpoints and MCP Server
utils/ # Schemas, Prompts, and Logging
- Backend: Python, FastAPI, SQLAlchemy
- AI: Google Gemini
- Frontend: HTML, TailwindCSS (Native CSS constraints)
- Protocol: MCP (Model Context Protocol)
- Deployment: Google Cloud Run
- User Prompt: The user submits a natural language request via the frontend.
- Planner: The
PlannerAgentdecomposes the prompt into a JSON plan of sequential tools. - Orchestrator: The
OrchestratorAgentregisters and triggers the required Specialized Agents. - Agents & Tools:
Task,Calendar, andNotesagents execute tool logic (like MCP endpoints). - Database: Persistent storage occurs via
aiosqlite. Data is saved and verified.
Request: POST /query
{
"prompt": "Schedule a meeting tomorrow and create tasks to prepare slides"
}Response Example:
{
"workflow": [
"planner.create_plan",
"calendar.create_event",
"task.create_task"
],
"results": {
"calendar_event": "Meeting scheduled for 2026-04-08T10:00:00",
"task_created": "Task #1: Prepare slides"
},
"plan_rationale": "Orchestrating a strategic event while synchronizing with deep memory context."
}Run AgentFlow with these prompts to see multi-agent orchestration.
Plan a hackathon strategy meeting tomorrow at 10 AM, create a task to finalize the demo slides, save a note that our main innovation is the Deep Memory protocol, and research recent trends in autonomous AI agents.
What is our main innovation according to my saved notes? Also summarize the latest trends in autonomous AI agents.
## Running Locally
Clone the repository and install dependencies:
```bash
git clone https://github.com/VarshiniGunti/AgentFlow
cd AgentFlow
pip install -r requirements.txt
cp .env.example .env
Add your GEMINI_API_KEY to the .env file, then run:
python -m src.api.mainOpen your browser to:
http://localhost:8000
AgentFlow runs an official MCP compliant server. To launch it standalone:
python -m src.api.mcp_server- Solution Quality & Functionality (20%): Handled via robust state mapping and error handling between the Planner and Sub-agents.
- Architecture & Technical Execution (20%): Employs scalable
asyncioandaiosqliteexecution for non-blocking processes. - Impact & Use Case Relevance (20%): Tackles context-switching by merging scheduling, tasks, and notes organically.
- Technical Choices & Feasibility (20%): Leverages the Model Context Protocol (MCP) standardization natively.
- Demo, UX & Presentation (20%): Implements an elite "Neural Swarm" Glassmorphism UI with real-time process monitoring.



