Northwind AI Web Assistant is an AI-powered Business Intelligence web application that allows users to query relational databases using natural language.
Instead of writing SQL, users interact through a chat-based interface, and the system transforms questions into secure, optimized queries, returning results ready for analysis, visualization, and export.
β‘ Proven Multi-Database Capability Successfully tested with Northwind, AdventureWorks, and AdventureWorksDW, handling everything from simple schemas to enterprise-grade data models.
π‘ Conversational BI experience with charts, SQL transparency, and export features.
-
Conversational interface inspired by ChatGPT
-
Users ask questions in plain language
-
No SQL knowledge required
-
Responses include:
- AI-generated analysis
- Data tables
- Charts
- SQL query (expandable)
- Fully responsive (desktop + mobile)
- Optimized for smartphone browsers
- Sticky input bar (chat-style)
- Smooth scrolling experience
π² Enables data analysis from anywhere, directly on mobile.
Each query automatically returns:
- π Structured table
- π Bar chart visualization
- Clean and readable layout
The system prepares data for visualization automatically β no manual configuration needed.
Users can export results instantly:
- Includes AI-generated analysis
- Data table
- Embedded chart
- Raw structured data
- Includes metadata (row count, timestamp)
- High-quality chart image
β‘ Turns the app into a lightweight BI reporting tool.
Beyond raw data, the system provides:
- Natural language analysis
- Business-friendly summaries
- Context-aware insights
Users donβt just see data β they understand it immediately.
graph TD
A[React + Vite Frontend] --> B[ASP.NET Core API]
B --> C[AI Query Engine]
C --> D[SQL Server Databases]
graph TD
U[User Question]
U --> V[Vector Schema Search]
V --> F[FK Graph Expander]
F --> S[Schema Filter]
S --> QP[Query Planner]
QP --> PB[Prompt Builder]
PB --> SG[SQL Generator]
SG --> SV[SQL Security Validator]
SV --> QE[Query Executor]
QE --> RA[Result Analyzer]
The system processes queries through a multi-stage AI pipeline:
- Vector Schema Search β Finds relevant tables
- FK Graph Expander β Resolves relationships
- Schema Filter β Reduces complexity
- Query Planner β Structures query logic
- Prompt Builder β Prepares LLM input
- SQL Generator β Generates SQL
- SQL Security Validator β Ensures safety
- Query Executor β Runs query
- Result Analyzer β Produces insights + visualization-ready data
- π Natural Language to SQL conversion
- π§ AI-driven query planning
- π Secure SQL validation
- π Automatic chart generation
- π SQL transparency (expandable view)
- π€ Multi-format export (PDF, Excel, PNG)
- π± Mobile-ready UI
- π§© Modular architecture
- ποΈ Multi-database support
- Simple transactional schema
- Ideal for demos and baseline testing
- Complex OLTP system
- Multi-schema relationships
- Data warehouse model
- Star schema (fact + dimensions)
β Demonstrates adaptability from simple datasets to enterprise BI scenarios.
User Input:
"top 5 total sales by country"
System Output:
- SQL query generated automatically
- Aggregated dataset
- AI-generated analysis
- Bar chart visualization
- Export options (PDF / Excel / PNG)
- React
- Vite
- Recharts
- ASP.NET Core Web API
- C#
- MemoryCache
- SQL Server
- Northwind
- AdventureWorks
- AdventureWorksDW
- Large Language Models (LLMs)
- Prompt Engineering
- Vector-based schema retrieval
- Node.js
- .NET 6+
- SQL Server
dotnet runnpm install
npm run dev/frontend β React + Vite client
/backend β ASP.NET Core API
/docs β Documentation & assets
Why:
- Independent scaling
- Clean separation
Trade-off:
- Requires CORS configuration
Why:
- Better accuracy
- Debuggable
Trade-off:
- More complex system
Why:
- Prevents hallucinations
- Ensures valid joins
Trade-off:
- Requires schema indexing
Why:
- Prevents destructive queries
Trade-off:
- May restrict edge cases
Why:
- Works with transactional and analytical DBs
Trade-off:
- More complex logic
Why:
- Immediate UI integration
Trade-off:
- Extra backend processing
- AI-driven chart selection
- Dashboard builder
- Query history
- Role-based security
- BI tool integrations
- Auto-aggregation for large datasets
Contributions are welcome. Fork the repo and submit a PR.
MIT License
AI + Data Engineering portfolio project showcasing:
- Natural Language β SQL systems
- Full-stack architecture
- Business Intelligence applications
- Real-world AI orchestration pipelines
This project demonstrates how AI can transform traditional data access into a conversational, intuitive, and powerful BI experience.
From raw data β to insights β to reports β all in a single chat interface.
