What this POC does:
- Sales bot can create products in Shopify (Admin API).
- Shopify webhooks push create/update/delete events to a listener.
- The listener syncs Qdrant (upsert/delete). On updates it stores a small reflection (
change_diff,change_summary).
- Create an env file:
cp .env.example .envFill in:
OPENAI_API_KEYSHOPIFY_STORE_DOMAINSHOPIFY_ADMIN_ACCESS_TOKENSHOPIFY_STOREFRONT_TOKENSHOPIFY_WEBHOOK_SECRET
- Install deps:
pip install -r requirements.txtdocker run -p 6333:6333 qdrant/qdrantpython shopify_webhook.pyDefault: http://localhost:8000
uvicorn sales_api:app --host 0.0.0.0 --port 8001Default: http://localhost:8001
Create Shopify webhooks to point to:
products/create->http://<your-public-host>/webhooks/shopify/products-createproducts/update->http://<your-public-host>/webhooks/shopify/products-updateproducts/delete->http://<your-public-host>/webhooks/shopify/products-deletion
python product_indexer.py