Shopify Integration
Quick Setup Guide
Follow these simple steps to add AI-powered search to your Shopify store:
Step 1: Install the App
- Submit a support ticket with subject line "Shopify Integration" to Marqo
- Marqo will send an install link to the custom Shopify app distribution
- Install the custom app in Shopify following the support instructions
Step 2: Choose Your Search Model
- Select your model:
- Generalized Ecommerce - Best for most stores
- Fashion - Optimized for clothing and accessories
- We'll automatically spin up and configure your search index with optimized settings
- Wait for setup to complete (usually 2-3 minutes)
Step 3: Connect Your Marqo Account
- Enter your Marqo API key when prompted
- Click "Validate & Connect"
Step 4: Sync Your Products
- Click "Sync All Products" to import your product catalog
- Large catalogs may take a few hours to complete
- New products (incuding updates, deletions, and additions) will sync automatically going forward
Step 5: Configure Collections (Optional)
- Choose Which Collections to Enhance:
- Select specific collections to replace with AI-powered search
- Leave others using Shopify's default search if preferred
- Collection-Specific Settings:
- Configure how products are filtered within each collection
- Set collection-specific search behavior and sorting
Step 6: Customize Your Search Results (Optional)
- Choose a Product Card Style:
- Modern Grid Theme - Clean card-based layout with hover effects
- Classic List Theme - Traditional row-based product listings
- Custom Templates - Edit HTML templates and add your own styling
- Customize Product Cards:
- Edit what information appears on each product card
- Adjust card layout, colors, and fonts
- Configure grid columns and spacing for different screen sizes
- Add custom CSS for complete visual control
- Layout & Sorting Options:
- Set default sort options (relevance, price, newest, custom)
- Configure responsive breakpoints for mobile/tablet/desktop
- Choose which collections to enhance with AI search
- Preview all changes before going live
Step 7: Adding Additional Product Attributes (Optional)
Want to enhance your search with data from third-party providers? Use the Marqo API to update existing products with additional attributes.
Common third-party integrations:
- Review platforms: Customer ratings and review counts
- Web analytics: Page views and conversion data
- Email marketing tools: Engagement scores and customer segments
Setting up data sync: Most third-party platforms provide APIs or webhook systems that can automatically notify your system when data changes. Here's how the integration typically works:
- Initial Data Import: First, pull all existing data from your third-party platforms using their APIs to populate your Marqo index with historical ratings, view counts, and engagement scores
- API Keys: Obtain API credentials from your third-party platform
- Webhook Setup: Configure webhooks to trigger when data updates (new reviews, page view changes, etc.)
- Data Processing: Create a script or service that receives the webhook, processes the data, and calls Marqo's update API
- Scheduling: For platforms without webhooks, set up scheduled jobs (daily/hourly) to pull fresh data via their API
Example workflow: When a customer leaves a new review, your review platform sends a webhook to your server, which then updates the product's rating in Marqo using the code below.
import requests
url = "https://ecom.marqo-ep.ai/api/v1/indexes/your_index_name/documents"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer your_api_key",
}
# Update existing products with third-party data using product SKU
payload = {
"documents": [
{
"_id": "SKU-ABC123",
"review_rating": 4.8,
"review_count": 127,
"page_views": 2450,
},
{
"_id": "SKU-XYZ789",
"review_rating": 4.2,
"review_count": 89,
"page_views": 1200,
},
]
}
response = requests.patch(url, json=payload, headers=headers)
print(response.json())
Step 8: You're Done!
Your customers can now enjoy faster, smarter search results. The app automatically replaces your store's search functionality with AI-powered recommendations.
Need Help?
Contact our support team if you encounter any issues during setup.