Shopify Agent Tools
These tools work internally to provide your chatbot with complete Shopify store capabilities. Your agents can search for products, check inventory, track orders, and more.These tools operate automatically in the background. Users interact with your chatbot naturally, and the agent intelligently selects and uses these tools to provide accurate and up-to-date information about your store.
Products
Search and get detailed information about products from your store
Product
Get detailed information about a specific product
Collections
Access collections and better organize your catalog
Orders
Track and query order status
Products
getProducts
Get a list of products from the store with optional filtering. Available fields:| Field | Type | Required | Description |
|---|---|---|---|
productName | string | Optional | Filter products by name |
variantName | string | Optional | Filter by variant name (color, size, etc.) |
productType | string | Optional | Filter by product type/category |
productTag | string | Optional | Filter by product tag |
productVendor | string | Optional | Filter by product vendor |
minPrice | number | Optional | Minimum price filter (default 0 if not provided) |
maxPrice | number | Optional | Maximum price filter (default 0 if not provided) |
bringOnlyAvailable | boolean | Optional | Filter to show only in-stock products (default false) |
Usage examples
Usage examples
-
User: “What t-shirts do you have available?”
- The agent uses:
getProductswithproductName: "t-shirt"andbringOnlyAvailable: true
- The agent uses:
-
User: “Show me shoe products between 100”
- The agent uses:
getProductswithproductType: "shoes",minPrice: 50,maxPrice: 100
- The agent uses:
-
User: “Do you have blue shirts?”
- The agent uses:
getProductswithproductName: "shirt"andvariantName: "blue"
- The agent uses:
getProduct
Get detailed information about a specific product. Available fields:| Field | Type | Required | Description |
|---|---|---|---|
productId | string | Required | Shopify product ID in format “gid://shopify/Product/1234567890” |
Usage example
Usage example
- User: “Show me the details of product 1234567890”
- The agent uses:
getProductwithproductId: "gid://shopify/Product/1234567890"
- The agent uses:
Collections
getCollections
Get a list of collections from the store. Available fields:| Field | Type | Required | Description |
|---|---|---|---|
collectionName | string | Optional | Filter collections by name |
Usage examples
Usage examples
-
User: “What collections do you have?”
- The agent uses:
getCollectionswithout filters to list all collections
- The agent uses:
-
User: “Show me the summer collection”
- The agent uses:
getCollectionswithcollectionName: "summer"
- The agent uses:
getCollection
Get detailed information about a specific collection. Available fields:| Field | Type | Required | Description |
|---|---|---|---|
collectionId | string | Required | Shopify collection ID in format “gid://shopify/Collection/1234567890” |
Usage example
Usage example
- User: “Show me the details of collection 1234567890”
- The agent uses:
getCollectionwithcollectionId: "gid://shopify/Collection/1234567890"
- The agent uses:
Orders
getTrackingInfo
Get tracking/status information for a specific order. Available fields:| Field | Type | Required | Description |
|---|---|---|---|
orderId | string | Required | Order ID (e.g., “#1001”, “EN1001”, or “1001-A”) |
email | string | Required | Customer email for order verification |
Usage example
Usage example
- User: “What’s the status of my order #1001?”
- The agent uses:
getTrackingInfowithorderId: "#1001"andemail: "[email protected]"
- The agent uses:
Next Steps
Abandoned Carts
Learn how to configure and manage abandoned carts in your Shopify integration.