Ecommerce Dashboard

    by Joedson Pereira

    1

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

    $1

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Ecommerce Dashboard

    Example session with this skill installed

    Create a dashboard analysis plan for Brazilian e-commerce data including customer segmentation.

    • Read your context and instructions
    • Compiled the ecommerce dashboard

    I have prepared the analysis plan and dashboard structure based on the provided technical requirements. This setup focuses on resolving the data relationship gaps and implementing the K-Means clustering model.

    E-commerce Analysis Implementation

    ComponentTechnical ImplementationGoal
    Data EngineSQLite with Triple-Join (orders + shopping + products)Link subcategories to specific orders
    PreprocessingStandardScaler for RFM featuresNormalize data for cluster stability
    ML ModelScikit-Learn KMeansSegment customers into VIP, Active, and Churn-Risk
    FrontendStreamlit Tabs (Overview, Regional, Payments)Executive-level UI organization
    VisualsPlotly Express dynamic chartsReal-time filtering and seasonality tracking
    import pandas as pd
    from sklearn.preprocessing import StandardScaler
    from sklearn.cluster import KMeans
    
    # Core logic for RFM segmentation
    def segment_customers(df):
        # Features: Recency, Frequency, Monetary
        scaler = StandardScaler()
        scaled_data = scaler.fit_transform(df[['recency', 'frequency', 'monetary']])
        
        kmeans = KMeans(n_clusters=3, random_state=42)
        df['cluster'] = kmeans.fit_predict(scaled_data)
        
        # Dynamic naming based on cluster centroids
        # Cluster 0: High Monetary -> 'VIP'
        # Cluster 1: Low Recency -> 'Active'
        # Cluster 2: High Recency -> 'Churn Risk'
        return df
    

    Next steps

    1. Ensure the ecommerce.db file is present in the local directory for the SQLite connection.
    2. Run pip install streamlit pandas plotly scikit-learn to prepare the environment.
    3. Execute streamlit run app.py to view the interactive regional sales heatmaps.

    Connects securely to your tools. The creator never sees your data.

    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

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 4 days ago

    Permissions

    No special permissions declared or detected

    Listed4 days ago

    What's inside

    Frequently Asked Questions

    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.

    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.

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

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

    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.

    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.

    New in Agents & Orchestration

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.