# GCP E-Commerce Analytics Pipeline (BigQuery + GCS)

> Automate GCP e-commerce pipelines to ingest sales CSVs and deploy BigQuery views for BI dashboards.

GCP E-Commerce Analytics Pipeline (BigQuery + GCS) is a paid AI agent skill on Agensi by Renato Saldivia Ponce, in Data & Databases. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $9 (one-time purchase)
- Creator: [Renato Saldivia Ponce](https://www.agensi.io/creators/renato-saldivia-ponce)
- Category: [Data & Databases](https://www.agensi.io/skills/data-databases)
- Version: 1.0
- Last updated: 2026-11-23
- Security: scan passed (2026-11-23); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/gcp-e-commerce-analytics-pipeline-bigquery-gcs
- Tags: database, api, devops, gcp, bigquery, sql, data-engineering

## About this skill

Manual data engineering for e-commerce logs is slow and prone to schema errors. This skill automates the entire ELT process on Google Cloud Platform, moving raw CSV files into production-ready BigQuery views.

### What it does
- **Automates ingestion** by creating GCS buckets and loading raw sales CSVs directly into BigQuery.
- **Cleans source data** using a pre-defined SQL view that filters out null IDs and non-positive revenue entries.
- **Aggregates KPIs** via the `vw_kpi_summary` view to calculate total revenue and transaction counts.
- **Deploys infrastructure** through a shell script that handles bucket creation, file uploads, and table initialization.
- **Prepares BI layers** by structuring data specifically for direct connection to Power BI, Looker Studio, or Tableau.

### How it works
1. **Config collection**: Provide your GCP Project ID, desired GCS bucket name, and preferred region.
2. **Infrastructure deployment**: The skill executes `deploy_pipeline.sh` to provision storage and load your `transaction_id`, `transaction_date`, and `revenue` data.
3. **SQL transformation**: The agent runs `create_views.sql` in BigQuery to build the clean and summary layers.
4. **Validation**: The skill performs a verification query on `vw_kpi_summary` to ensure the pipeline is operational.

### Frameworks & tools
Google Cloud Platform (GCS, BigQuery), Google Cloud CLI (`gcloud`, `bq`), Bash, and SQL.

### Why this beats prompting it yourself
Prompting an LLM to "build a pipeline" often results in disconnected code blocks that fail on authentication or schema mismatches. This skill provides a hardened, end-to-end script and specific SQL views that handle messy e-commerce logs out of the box.

### Use cases
- Migrating local sales logs to a cloud data warehouse.
- Creating a standardized data source for regional revenue reporting.
- Prototyping a retail analytics dashboard for stakeholders.

### Known limitations
Requires pre-authenticated `gcloud` and `bq` CLI tools. Only supports CSV files matching the transaction-based schema defined in the prerequisites.

## Requires

- Google Cloud CLI (gcloud & bq)
- Active GCP Project with billing

On Windows, run via Git Bash or WSL, or execute the gcloud/bq commands directly in PowerShell.

## 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 GCP E-Commerce Analytics Pipeline (BigQuery + GCS) 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 data engineering tasks does this skill automate?

This skill automates the ELT process by provisioning GCS buckets, loading raw CSVs into BigQuery, and deploying SQL views that clean data and calculate KPIs like total revenue and transaction counts.

### What are the technical prerequisites for running this pipeline?

The skill requires an active Google Cloud Platform account with the gcloud and bq CLI tools pre-authenticated on your local machine or agent environment.

### What exactly is included in the purchase of this skill?

You receive a complete deployment package including the `deploy_pipeline.sh` infrastructure script, `create_views.sql` for data transformation, and the logic to orchestrate the entire flow from GCS to BigQuery.

### Does this skill handle data cleaning, or do I need to format my CSVs beforehand?

Currently, the skill is optimized for CSV files containing transaction IDs, dates, and revenue fields; it includes pre-built logic to filter out null IDs and non-positive revenue entries automatically.

### Can I connect the output of this pipeline directly to my BI tools?

Yes, the output is structured into BigQuery views (like `vw_kpi_summary`) specifically designed for immediate connection to Looker Studio, Power BI, or Tableau without further SQL work.

### Which AI agents are compatible with this GCP pipeline skill?

This skill is designed for any AI agent capable of executing shell scripts and interacting with the Google Cloud SDK, making it compatible with most advanced autonomous agent frameworks.

---

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.
