u/mooritexxx

[Open Source] Building an Agentic SEO layer for Shopify: Merging Google Ads API, GSC, and GA4 into a local "Context Engine"

[Open Source] Building an Agentic SEO layer for Shopify: Merging Google Ads API, GSC, and GA4 into a local "Context Engine"

Hey everyone,

I’ve been working on an open-source project called ShopifySEO that moves away from the "Dashboard" model and toward an Agentic model for e-commerce SEO.

The goal was to create a local-first system that doesn't just show you data, but uses AI agents to triage and execute optimizations based on multi-source API signals.

The Architecture:

I’m using a local SQLite database to sync the Shopify catalog, which then acts as the "Memory" for the agents. To make the agents actually useful, I’ve integrated:

  • Google Ads API: Pulling real-time keyword volume, CPC, and competition to identify "High Intent" targets.
  • GA4 + GSC: Joining organic performance with actual revenue/conversion data to weight the priority of tasks.
  • Vision AI: A specific agent that analyzes product images to generate descriptive alt-text, rather than just repeating the product title.

How the "Agent" Logic Works:

Instead of a simple "if/then" script, the system uses the LLM to analyze the joined data (e.g., “This product has high Ads CPC and low organic rank, but high GA4 conversion rate”) to propose specific metadata or content changes. It then allows for a "human-in-the-loop" approval before pushing those changes back via the Shopify Admin API.

Why I'm posting here:

As I expand the agentic capabilities, I’m running into some logic hurdles I’d love to discuss:

  1. Context Window Management: When dealing with a 5,000+ product store, how are you guys handling the retrieval for the agent? I’m currently using semantic embeddings for keyword matching, but I’m curious if anyone has found a better "triaging" logic for e-commerce.
  2. Keyword Planning via Ads API: I'm currently using the Ads API to pull "Keyword Ideas." Has anyone successfully automated the clustering of these ideas into Shopify "Collection" structures using agents?
  3. Autonomous Execution: Right now, I require a manual "Approve" click. For those building agentic SEO tools, at what point do you trust the agent to auto-publish?

Everything is open source and self-hosted: https://github.com/mooritexxx/shopifyseo

I’m looking for feedback on the agent's decision-making logic and anyone who wants to help contribute to the Python/Next.js stack.

Does the idea of a "Local SEO Agent" resonate with your current workflow, or are you still relying on centralized SaaS tools?

u/mooritexxx — 4 days ago