Internal Service β This is not an HTTP endpoint. Itβs called directly by the
generate-all orchestrator.Purpose
Fetches products from a Shopify store using the publicproducts.json API and creates entity records for each discovered product.
Runs in GROUP 1d (parallel with all GROUP 1 tasks, its output feeds GROUP 2b and 2c).
Shared Service
This task uses the shareddiscover_products service:
- Onboarding (this task - GROUP 1d)
- Cron (
discover-products)
Function Signature
Parameters
Returns
Execution Flow
GROUP 2b (Product Prompts) and GROUP 2c (Generate Product LLMs) run in parallel when products are discovered. GROUP 2 starts after GROUP 1a, 1b, and 1d complete.
How It Works
Products are fetched directly from Shopifyβs publicproducts.json API:
- Direct API access - Fetch from
{store_url}/products.json - Pagination - Automatically fetches all pages of products
- No AI required - Product data comes directly from Shopify
- Instant extraction - No scraping or content parsing needed
Database Schema
Products are stored as entities withtype = 'product':