In today's data-driven world, modern enterprise organizations drown in massive, unorganized datasets (.xlsx, .csv, .json, .parquet). Translating raw, messy tabular data into C-Suite executive intelligence currently requires hours or days of manual data cleaning, statistical profiling, anomaly detection, and report design.
We envisioned AgentFlow — an autonomous multi-agent AI data analytics engine powered by Google Gemini 2.5 Flash and built on the Google Agent Framework. AgentFlow automates the entire analytical lifecycle, ingesting raw datasets and producing fully-validated executive PDF reports, real-time Chart.js dashboards, and interactive AI Q&A assistants in seconds.
AgentFlow transforms raw enterprise data into actionable business intelligence through an autonomous 10-Agent Directed Acyclic Graph (DAG):
- 🤖 Autonomous 10-Agent DAG Orchestration: Ten specialized AI agents (
Planner,Ingestion,Profiler,Cleaning,Anomaly,KPI,Trend,Validator,Insight,Report) collaborate in parallel without human intervention. - 📁 Universal Multi-Format Ingestion: Native parser supporting
.xlsx,.csv,.json,.parquet, and.tsvfiles up to 500MB with automated UTF-8 BOM, latin-1, and NaN sanitization. - 📐 $3\sigma$ Z-Score Anomaly Engine: Identifies critical statistical outliers across numeric columns using the standard Z-score model: $$Z = \frac{x - \mu}{\sigma}$$ where $x$ is the data value, $\mu$ is the population mean, and $\sigma$ is the standard deviation.
- 💬 "Ask AgentFlow" AI Assistant: Interactive natural language Q&A interface powered by Google Gemini 2.5 Flash via the
google-genaiSDK. - 📄 1-Click Executive PDF Generation: Programmatic ReportLab PDF engine compiling data quality scores, KPI summary matrices, anomaly highlights, and strategic recommendations.
- 🌐 3-Language i18n Engine: Live real-time translation support for English (Default), Hindi, and Spanish.
- AI Core & Agent Framework: Integrated Google Gemini 2.5 Flash (gemini-2.5-flash) using the official google-genai Python SDK (GeminiProvider), structured under Google Agent Framework specifications.
- Backend Infrastructure: Django 5.2, Django REST Framework, Django Channels (WebSockets for real-time agent execution tracking), Celery/Redis for asynchronous worker tasks, and Python 3.14.
- Data Engineering Engine: Pandas, NumPy, PyArrow, OpenPyXL, and ReportLab.
- Google Cloud Platform Services:
- Google Cloud Run: Containerized serverless deployment using Docker,
cloudbuild.yaml, and automated shell scripts (deploy_gcp.sh/deploy_gcp.ps1). - Google Cloud Storage (GCS): Multi-bucket cloud persistence (
gs://agentflow-datasetsandgs://agentflow-results). - Google Secret Manager: Secure API key and secret retrieval (
config/secrets.py).
- Google Cloud Run: Containerized serverless deployment using Docker,
- Frontend & UI: HTML5, Google Material 3 CSS, Vanilla JS, and Chart.js v4.x.
1. DAG Synchronization & Parallel Latency: Guaranteeing parallel execution of independent analysis agents (AnomalyAgent, KPIAgent, TrendAgent) while maintaining strict sequential dependencies for downstream agents (ValidatorAgent, InsightAgent, ReportAgent).
- Multi-Format Data Sanitization: Handling edge-case encoding errors (UTF-8 BOM vs latin-1), missing values, and converting NumPy/Pandas data types and
NaN/Infvalues into clean JSON structures for Gemini API prompts. - Zero-Dependency Local & Cloud Hybrid Execution: Designing an architecture that runs 100% locally out-of-the-box with zero mandatory setup, while seamlessly scaling to Google Cloud Run and Google Gemini 2.5 Flash when cloud credentials are provided.
- 100% Test Suite Coverage: Passed 13 out of 13 unit tests and end-to-end integration smoke tests (pytest).
- Seamless Gemini 2.5 Integration: Built native support for
gemini-2.5-flashusing Google's newestgoogle-genaiPython SDK. - Sub-5-Second Execution: Achieved end-to-end 10-agent workflow execution, anomaly detection, AI insight synthesis, and PDF generation in under 5 seconds for 100,000-row datasets.
- Production-Ready Deployment: Created 1-command deployment scripts for Google Cloud Run (
deploy_gcp.ps1/deploy_gcp.sh).
- Deep practical experience building autonomous multi-agent DAG architectures using the Google Agent Framework and Google Gemini 2.5 Flash.
- Best practices for structured JSON output formatting (
response_mime_type: "application/json") withgoogle-genaiSDK for analytical pipelines. - Strategies for containerizing complex multi-threaded Python applications (Django + Daphne + WebSockets + Celery) for serverless deployment on Google Cloud Run.
- Google BigQuery & Spanner Connectors: Direct native integration for querying massive enterprise data warehouses directly from AgentFlow.
- Multi-Modal Gemini Vision Integration: Analyzing uploaded charts, infographics, and PDF slide decks alongside raw tabular datasets.
- Automated Enterprise Webhooks: Pushing generated executive PDF reports to Slack, Microsoft Teams, and email automatically upon workflow completion.
Built With
- celery
- chart.js
- css3
- django
- django-channels
- django-rest-framework
- docker
- gemini
- google-cloud
- google-cloud-run
- google-genai-sdk
- google-secret-manager
- html5
- javascript
- numpy
- pandas
- postgresql
- python
- redis
- reportlab
- sqlite
Log in or sign up for Devpost to join the conversation.