An AI-powered Excel analysis system combining LLM planning (GPT) + SciPy data analysis + Aspose.Cells rendering to automatically analyze spreadsheets, detect anomalies, generate insights, and export enriched Excel reports.
It behaves like a lightweight data analyst agent for structured Excel files.
- Natural language β analysis plan (GPT planner)
- Automatic tool selection (trend, anomaly, forecasting, PCA, etc.)
- Multi-step execution pipeline
- Self-improving β learns from past executions, adjusts tool recommendations
- Autonomous scheduling β supports timed execution
- Anomaly detection (Z-score based)
- Trend analysis (regression smoothing)
- FFT frequency analysis
- Correlation matrix
- PCA dimensionality reduction
- Forecasting (basic statistical models)
- Clustering (KMeans)
- Distribution analysis
- Seasonality detection
- Change point detection
- Highlight anomalies directly in Excel
- Write comments to cells
- Format reports automatically
- Render charts (trend lines, distributions)
- Multi-sheet output support
- OpenAI-compatible planner
- Tool routing via prompt engineering
- Structured execution pipeline
- 100% type-hinted codebase
- Google-style docstrings on all public APIs
- Comprehensive error handling with circuit breaker + retry
- Performance benchmarks in CI
- Security scanning (safety + bandit)
User Request
β
Planner (LLM)
β
Tool Selection Plan
β
Execution Pipeline
β
SciPy / Sklearn Tools
β
Excel Renderer (Aspose)
β
Output Excel + Insights
app/
agents/ # Excel AI Agent core
analysis/ # SciPy-based analytics
excel/ # Aspose Excel reader/writer/renderer
llm/ # Planner + prompts + explanation generator
pipeline/ # execution / routing / reporting pipelines
registry/ # tool registry
tools/ # wrapped tool interfaces
learning.py # Self-improvement engine
resilience.py # Circuit breaker + retry + fallback
scheduler.py # Autonomous task scheduling
health.py # Health check registry
state.py # Session state persistence
logger.py # Unified logging framework
exceptions.py # Custom exception hierarchy
tests/
benchmarks/ # Performance benchmarks
scripts/
security_scan.py # Automated security scanning
maturity_score.py # S/A/P/R/V maturity assessment
docs/
compliance/ # Compliance framework
verification/ # Verification plan
assurance/ # Assurance statement
docker/ # Containerization
.github/ # GitHub Actions + CODEOWNERS
git clone https://github.com/yourname/excel-ai-agent.git
cd excel-ai-agentpip install -r requirements.txtRequired packages:
- aspose-cells-python
- openai
- numpy
- pandas
- scipy
- scikit-learn
- statsmodels
- python-dotenv
- pytest
cp .env.example .env
# Edit .env with your API keyspython main.pypytest tests/ -vpytest tests/benchmarks/ -vpython scripts/security_scan.pypython scripts/maturity_score.pyTransforms natural language into tool plan, e.g.:
["trend", "anomaly"]Runs tools:
- column-based analysis (trend, anomaly, forecast)
- dataframe-based analysis (PCA, clustering)
Applies:
- formatting
- chart rendering
- comment injection
tools/*.py
β
TOOL_REGISTRY
β
Execution Pipeline
β
LLM Planner
| Input Type | Description |
|---|---|
series |
Single numeric column analysis |
dataframe |
Multi-column dataframe analysis |
docker build -f docker/Dockerfile -t excel-ai-agent .
docker-compose -f docker/docker-compose.yml uplint β test β code_quality β security β validate β score β ai_eval β quality_gate β build β deploy_staging β deploy_production
All stages include automated maturity scoring, security scanning, and quality gates. Minimum score threshold: 30. Deploy requires passing quality gate.
Most "AI Excel tools":
call GPT β summarize β done
This system:
- actually executes statistical analysis (SciPy)
- applies deterministic anomaly detection
- writes back to Excel (Aspose)
- supports multi-tool reasoning
- self-improves from past executions
- self-heals with circuit breakers and retry
- is CI/CD + Docker ready
So it behaves less like a chatbot
and more like a production-grade data analyst pipeline system
All examples use Aspose.Cells for Python via .NET.
The examples can be evaluated using the free evaluation version. A valid license is recommended for production use. For licensing details, please refer to the Aspose website.
See CONTRIBUTING.md for guidelines. Code ownership defined in CODEOWNERS. Security policies in SECURITY.md. Changelog in CHANGELOG.md.