Prerequisites
The following example requires theopenai library and a Shopify Admin API access token with appropriate scopes.
SHOPIFY_SHOP_NAME: Your Shopify shop name (e.g., “my-store” from my-store.myshopify.com)SHOPIFY_ACCESS_TOKEN: Your Shopify Admin API access tokenOPENAI_API_KEY: Your OpenAI API key
read_orders(for order and sales data)read_products(for product information)read_customers(for customer insights)read_analytics(for analytics data)
Example
The following agent will analyze sales data and provide insights.cookbook/91_tools/shopify_tools.py