Multi-Agent Workflow Automation Platform
This project showcases a full-stack, API-first orchestration platform for multi-step AI workflow automation. A FastAPI backend plans and executes dependency-aware workflows across planner, worker, and reviewer agents, while a React dashboard provides run control and visibility. The implementation focuses on reliable orchestration patterns (routing, retries, fallback, approvals, replay, observability) using deterministic demo tools and agents.
Many engineering teams have repeatable AI/automation tasks but lack a standardized orchestration layer to break work into steps, route actions to the right agent/tool, and track execution outcomes. This project solves that by providing structured planning, run-state persistence, tool dispatch, and operational controls in one system. It turns ad hoc automation into a traceable workflow lifecycle with metrics, timeline events, and auditability.
- Goal decomposition into ordered workflow steps with dependencies and retry policies.
- Role-based agent design (
planner,worker-general,worker-math,reviewer). - Tool registry pattern with worker/tool permissions and per-tool timeout enforcement.
- Retry, backoff, and fallback execution handling in the workflow engine.
- Human-in-the-loop approvals for sensitive tool actions.
- Run controls: pause, resume, cancel, replay (including replay from a specific step).
- Observability endpoints for run timelines, run metrics, platform metrics, and run insights.
- Audit event logging for workflow lifecycle actions.
- Usage quota enforcement per actor for task submissions.
- Memory services for basic namespace entries and vector-style retrieval (demo embedding logic).
- Backend: Python 3.11+, FastAPI, Pydantic, SQLAlchemy
- Frontend: React 18, TypeScript, Vite, React Router
- Data layer: PostgreSQL via Docker Compose, SQLite default local fallback
- Tooling: pytest, Ruff, ESLint, Makefile, Docker/Docker Compose
Task submission creates a workflow run and triggers planner-driven step generation. The workflow engine validates dependency structure, executes ready steps (including parallel-ready steps), and persists state transitions. Worker agents call tools through a centralized registry, reviewer agents score/validate outputs, and supporting services persist approvals, audit events, memory entries, and usage/metrics data.
Current scope is intentionally deterministic: default tools simulate search/API/code execution behavior and do not perform real external network calls.
- Planner Agent: parses task text, assigns step actions, worker ownership, dependencies, and retry/fallback metadata.
- Worker Agents: execute routed actions through the tool registry with permission and timeout constraints.
- Reviewer Agent: evaluates produced outputs and writes structured review metadata used in run events.
- Client submits a task (
/api/v1/tasks/submitor template run). - Planner decomposes the goal into executable steps.
- Engine persists steps and executes dependency-ready steps.
- Step execution applies retry/backoff and optional fallback logic on failure classes.
- Sensitive actions require approval via
/api/v1/approvalsbefore progressing. - Run concludes as completed/failed/blocked/canceled, with timeline, metrics, and insight endpoints available for analysis.
- Python 3.11+
- Node.js 18+
- npm
- (Optional) Docker + Docker Compose
make setupmake dev-backendAPI docs: http://localhost:8000/docs
make dev-frontendmake upmake test
make lintmake run-orchestrator-demo- Automating multi-step research/analysis tasks with explicit step routing and dependencies.
- Testing orchestrator resilience paths (timeouts, retries, fallback behavior).
- Demonstrating approval-gated workflow controls for sensitive actions.
- Inspecting workflow operations through timelines, run metrics, and reliability summaries.
- Multi-agent system design and orchestration architecture.
- Task decomposition, workflow routing, and dependency-aware execution.
- Tool abstraction via registry pattern and controlled tool invocation.
- API design for workflow lifecycle control and observability.
- Reliability engineering patterns: retries, fallback strategies, timeout handling.
- Human-in-the-loop workflow governance (approval gates).
- Full-stack implementation (Python APIs + TypeScript UI) for automation platforms.
Designed and built a Multi-Agent Workflow Automation Platform with Python (FastAPI) and React/TypeScript that orchestrates tasks across planner, worker, and reviewer agents. Implemented dependency-aware execution, tool-registry dispatch, retry/fallback controls, approval-gated actions, run replay, and operational telemetry (timeline, metrics, insights, audit). Delivered a modular orchestration architecture suitable for extension into production LLM workflows and enterprise automation pipelines.
- Add optional live LLM planning/routing while preserving deterministic test mode.
- Expand tool adapters from simulated endpoints to real external services.
- Add richer authn/authz and multi-tenant policy controls.
- Enhance queueing/concurrency controls and background worker execution.
- Extend frontend with richer real-time run streaming and deeper graph analytics.