Back to Documentation
Integration20 min read
Shopify E-commerce Integration
Connect your Shopify store to automate order processing, inventory sync, and customer support.
Shopify E-commerce Integration
Overview
Integrate your Shopify store with Craveva AI to automate order processing, sync inventory, provide customer support, and gain valuable insights.
Prerequisites
- Active Shopify store
- Shopify Admin access
- API credentials (Admin API access token)
Step 1: Create Shopify Private App
- Log in to your Shopify Admin
- Go to Settings → Apps and sales channels
- Click Develop apps → Create an app
- Name your app (e.g., "Craveva AI Integration")
- Configure Admin API access scopes:
- Click Save
- Click Install app
- Copy your Admin API access token
- - read_orders: To read order data
- - write_orders: To update orders (optional)
- - read_products: To read product data
- - read_inventory: To read inventory levels
- - read_customers: To read customer data
Step 2: Get Your Store Information
You'll need:
- Store URL: Your Shopify store domain (e.g., yourstore.myshopify.com)
- API Access Token: From Step 1
- API Version: Use latest stable version (e.g., 2024-01)
Step 3: Connect Shopify in Craveva
- Log in to Craveva AI dashboard
- Navigate to Data Sources
- Click Connect New Data Source
- Select E-commerce Platform
- Choose Shopify
- Enter your credentials:
- Click Test Connection
- If successful, click Save
- - Store URL: Your Shopify domain
- - API Access Token: Your admin API token
- - API Version: Latest version (auto-filled)
Step 4: Verify Connection
- Your Shopify connection should appear in Data Sources
- Status should show Connected
- You can see available data:
- - Orders
- - Products
- - Customers
- - Inventory
Step 5: Create Shopify Agents
Order Management Agent
- Go to Agent Builder
- Create new agent with Shopify data source
- Configure for order management:
- - Track order status
- - Process refunds
- - Update shipping information
Inventory Sync Agent
- Create agent for inventory management
- Monitor stock levels
- - Alert on low stock
- - Sync inventory across channels
- - Auto-update product availability
Customer Support Agent
- Deploy to messaging platforms
- Handle customer inquiries:
- - Order status
- - Product information
- - Return requests
- - Shipping questions
Step 6: Deploy to Shopify
- Go to Deployments
- Select your Shopify agent
- Choose Shopify as deployment platform
- Configure:
- Activate deployment
- - Store theme integration
- - Chat widget placement
- - Automated responses
Available Data
Once connected, you can access:
- Orders: All order data, status, history
- Products: Product catalog, variants, pricing
- Customers: Customer profiles, purchase history
- Inventory: Stock levels, locations, variants
- Collections: Product collections and categories
- Discounts: Promotions and discount codes
Use Cases
Automated Order Processing
- Process orders automatically
- Update order status
- Send confirmation emails
- Generate shipping labels
Inventory Management
- Real-time inventory sync
- Low stock alerts
- Multi-location inventory
- Automated reordering
Customer Support
- 24/7 customer assistance
- Order tracking
- Product recommendations
- Return processing
Analytics & Insights
- Sales performance
- Product popularity
- Customer behavior
- Revenue trends
Webhook Configuration
Set up webhooks for real-time updates:
- In Shopify Admin → Settings → Notifications
- Create webhook for:
- Point webhook to Craveva endpoint
- Configure event subscriptions
- - Order creation
- - Order updates
- - Inventory changes
Security Best Practices
- Use read-only scopes when possible
- Rotate API tokens regularly
- Store credentials securely
- Monitor API usage
- Set up rate limiting
Troubleshooting
Connection Failed?
- Verify API token is correct
- Check API scopes are enabled
- Ensure store URL is correct
- Verify network connectivity
No Data Showing?
- Check API permissions
- Verify webhook configuration
- Review API rate limits
- Check Shopify API status
Next Steps
- Set up automated workflows
- Configure webhooks for real-time sync
- Create custom agents for your needs
- Monitor integration performance
Related Guides
Connecting Qashier POS to Craveva
Step-by-step guide to integrate your Qashier POS system with Craveva AI for real-time sales data and...
Creating a Custom Inventory Agent
Learn how to build an AI agent that monitors inventory levels, predicts stockouts, and automates reo...
Connecting MongoDB Database
Complete guide to connect your MongoDB database, analyze collections, and create data analysis agent...