Skip to main content

GrowthAgent quickstart

What is GrowthAgent?

GrowthAgent (App Store listing name; the app code uses Storefront Agent) is a Shopify app that helps shoppers find products, get cart guidance, and understand store policies through a storefront AI assistant. It runs on Cloudflare Workers with PostgreSQL, OpenAI, and optional ElevenLabs, Twilio, Resend, Sinch, and Algolia integrations.

Shopify app details

OAuth scopes

7 scopes total. read_legal_policies enables knowledge sync to read shop refund, privacy, shipping, and terms policies. read_customers is gated off in chat — the assistant filters out customer, order, account, return, and refund MCP tools. read_themes is intentionally not requested to avoid forced OAuth re-consent for merchants.

Theme extension

Storefront Agent Chat (storefront-chat) — a single theme app embed block (chat-widget.liquid, target body) with four settings: enabled, worker_endpoint, title, position. Works with OS 2.0 (JSON templates) and vintage (Liquid) themes.

Webhook topics

11 topics total: app/uninstalled, app_subscriptions/update, products/create, products/update, products/delete, inventory_levels/update, orders/create, shop/update, plus three compliance topics (customers/data_request, customers/redact, shop/redact).

First steps

  1. Read the architecture overview — understand the runtime, data flow, and component boundaries.
  2. Review the API reference — learn the public endpoints for chat, health, and the embedded admin API.
  3. Set up a development environment:
    • Clone PcnaidInc/storefront-revenue-agent
    • Run pnpm install
    • Provision Cloudflare resources: pnpm provision:cloudflare
    • Run migrations: pnpm migrate
    • Start local Wrangler dev: pnpm dev

Key commands

Repository layout

Sign-in model

The app uses Shopify OAuth for merchant authentication (standard install flow). Embedded admin pages use Shopify session tokens. Public chat endpoints are rate-limited per-IP and shop-validated. The API overview documents the externally reachable surface.