# Ecommerce Dashboard

> Build an interactive Streamlit dashboard for Brazilian e-commerce data with SQL optimization and ML customer clustering.

Ecommerce Dashboard is a paid AI agent skill on Agensi by Joedson Pereira, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $1 (one-time purchase)
- Creator: [Joedson Pereira](https://www.agensi.io/creators/joedson-pereira)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Version: 1.0
- Last updated: 2026-11-30
- Security: scan passed (2026-11-30); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/ecommerce-dashboard
- Tags: ai-agents, python, streamlit, scikit-learn, sql, data-analysis

## About this skill

Manual analysis of Brazilian e-commerce datasets often leads to fragmented insights and performance bottlenecks when joining unrelated tables. This skill provides a specialized Streamlit dashboard structure that integrates SQL querying, Pandas processing, and K-Means clustering to surface high-value customer segments and regional sales trends.

### What it does
- **Multi-source Data Integration** executes triple-join SQL queries across orders, shopping, and product tables to resolve missing relational links.
- **Dynamic Visualization** generates interactive Plotly charts for daily sales evolution, seasonality, and state-level revenue distribution.
- **RFM Segmentation** implements a Scikit-Learn pipeline using K-Means and StandardScaler to categorize customers by Recency, Frequency, and Monetary value.
- **Performance Optimization** centralizes filter logic within SQL queries to maintain a single source of truth and reduce frontend latency.
- **Market Analysis** breaks down payment method market share and subcategory performance.

### How it works
1. Initialize the SQLite database connection using the provided dataset path.
2. Run the specialized SQL joins to synchronize product subcategories with order data.
3. Process raw features through the Scikit-Learn pipeline to generate customer clusters.
4. Launch the Streamlit interface to explore data across Overview, Regional, and Payments tabs.

### Frameworks & tools
This skill utilizes Python 3.12, Streamlit, Pandas, Plotly, SQLite, and Scikit-Learn.

### Why this beats prompting it yourself
Writing complex triple-joins for non-relational datasets often results in logic errors or data duplication. This skill provides a proven architecture for RFM clustering and SQL-based filtering that ensures consistent metrics across different dashboard views.

### Use cases
- Identify geographic regions with the highest revenue growth.
- Automate the identification of VIP, Active, and Churn-risk customer segments.
- Analyze seasonal sales fluctuations to plan inventory or marketing spend.
- Compare the market share of different payment methods across product categories.

### Known limitations
The logic is specifically tuned for the Brazil E-commerce Analytics dataset structure from Kaggle and requires Python 3.12.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Ecommerce Dashboard skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What specific analytical problems does this skill solve for e-commerce data?

This skill automates the creation of an interactive dashboard that performs triple-join SQL queries and K-Means clustering to identify high-value customer segments and regional sales trends.

### What datasets or software versions are required to run this skill?

The buyer must provide the Brazil E-commerce Analytics dataset from Kaggle and have Python 3.12 available for the AI agent to execute the analysis.

### What kind of visual outputs does the dashboard generate?

Users get a multi-tab Streamlit interface featuring Plotly visualizations for sales evolution, state-level revenue distribution, and RFM customer categorization.

### Can I use this skill for any generic e-commerce dataset?

The skill is specifically tuned for the structure of the Brazilian E-commerce Analytics dataset and may not function correctly with unrelated data schemas.

### How do I instruct my AI agent to start the analysis?

You can ask your agent to initialize the SQLite database connection using your dataset path and launch the Streamlit interface to explore the Overview, Regional, and Payments tabs.

### How does the skill handle customer segmentation?

It utilizes a Scikit-Learn pipeline with StandardScaler and K-Means to categorize customers into segments like VIP, Active, and Churn-risk based on Recency, Frequency, and Monetary value.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
