Products, Inventory & Draft Orders
Browse products, check stock levels, explore collections, and create draft orders for customers during widget conversations.
list_products fetches up to 50 products from your Shopify store and presents them to the AI. The AI reads a text summary of all products — including ID, name, type, tags, price range, and availability — to decide which ones to recommend based on what the customer is asking for.
After deciding, the AI calls show_product_cards with the most relevant product IDs (up to 4). Product cards then appear in the chat widget below the AI's text response.
What each product card shows
- Product image: A grey placeholder is shown if no image is set — the card still appears normally
- Product title: Displayed in bold
- Short description: Pulled from the product description in Shopify
- Price: Shows a price range if variants have different prices (e.g., "$19.99 – $39.99") or a single price if all variants are the same
- "View ↗" link: Opens the Shopify product page in a new tab
- Out of stock badge: Shown with a dimmed image if the product is unavailable — the card is still displayed, not hidden
Card layout
- 1 product recommended: full-width card
- 2 to 4 products recommended: 2-column grid
Example
A customer types "Show me your products" or "What do you sell?" The AI calls list_products, reads the summary, picks the most relevant matches, then calls show_product_cards with those IDs. The customer sees product cards directly in the chat.