AgentFlow is a professional-grade, autonomous multi-agent orchestration platform. It empowers teams to build, monitor, and deploy specialized AI agents equipped with real-world tools. Engineered for high-performance reasoning and real-time telemetry, AgentFlow bridges the gap between complex LLM workflows and production-ready interfaces.
AgentFlow utilizes a decoupled, event-driven architecture to ensure scalability and separation of concerns.
graph TD
subgraph Client_Layer [Client Layer]
UI[React 19 Dashboard]
TG[Telegram Bot]
end
subgraph Backend_Layer [Orchestration Layer]
API[FastAPI Server]
LG[LangGraph Runtime]
WS[WebSocket Telemetry]
end
subgraph Logic_Layer [Agent Intelligence]
LLM[Gemini 3.1 Flash]
Tools[Toolbelt: Search, Scraping, YT, Calc]
Mem[Long-Term Memory Engine]
end
UI <--> WS
TG <--> API
API --> LG
LG --> LLM
LG --> Tools
LG --> Mem
- Orchestration: LangGraph: We use a State-Machine approach to allow for cycles, conditional routing, and persistent
AgentState. - LLM: Google Gemini: Selected for its 1M+ token context window and native multimodal capabilities (text + image).
- Static Asset Serving: To optimize performance, generated images are stored locally and served via a lightweight Markdown pointer, reducing WebSocket payload size.
- Async-First: The entire backend is built on
FastAPIwithasync/awaitto handle concurrent LLM and Tool I/O without blocking.
Agent.Flow.Demo.mp4
| Directory | Purpose |
|---|---|
agentflow-platform/backend/ |
Core FastAPI logic, API routers, and database models. |
agentflow-platform/backend/runtime/ |
The Brain. Contains LangGraph logic, tool definitions, and LLM wrappers. |
agentflow-platform/frontend/ |
React 19 source code, dashboard layouts, and ReactFlow canvas logic. |
agentflow-platform/docs/ |
Deep-dive documentation for each phase of development. |
start_platform.py |
Single-command entry point to launch the entire ecosystem. |
To equip agents with new capabilities:
- Open
agentflow-platform/backend/runtime/tools.py. - Define your tool using the
@tooldecorator. - Add the function name to the
AVAILABLE_TOOLSdictionary. - The tool will automatically be selectable in the Dashboard UI.
Workflow routing is handled in agentflow-platform/backend/runtime/graph_builder.py. You can adjust how agents hand off tasks or introduce new conditional nodes here.
- Environment: Copy
.env.exampleto.env. - Keys: Add your
GEMINI_API_KEYandTELEGRAM_BOT_TOKEN. - Launch: Run
python start_platform.py.
For deep-dives into specific modules, refer to our internal technical docs:
- 🚀 Architecture Deep Dive
- 🏗️ Backend Foundation
- 🧠 Agent Runtime
- 📊 Workflow Builder
- 🔄 Workflows, Agents & Tokenomics
The Telegram bot acts as a mobile extension of the platform. It uses the same workflow engine, ensuring that logic updated on the web dashboard is immediately available on mobile.
- Define the nodes (agents) and edges (logic paths).
- Run the script to inject the template into the
agentflow_platform.db.