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

  1. Log in to your Shopify Admin
  2. Go to SettingsApps and sales channels
  3. Click Develop appsCreate an app
  4. Name your app (e.g., "Craveva AI Integration")
  5. Configure Admin API access scopes:
  6. Click Save
  7. Click Install app
  8. 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

  1. Log in to Craveva AI dashboard
  2. Navigate to Data Sources
  3. Click Connect New Data Source
  4. Select E-commerce Platform
  5. Choose Shopify
  6. Enter your credentials:
  7. Click Test Connection
  8. 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

  1. Your Shopify connection should appear in Data Sources
  2. Status should show Connected
  3. You can see available data:
  • - Orders
  • - Products
  • - Customers
  • - Inventory

Step 5: Create Shopify Agents

Order Management Agent

  1. Go to Agent Builder
  2. Create new agent with Shopify data source
  3. Configure for order management:
  • - Track order status
  • - Process refunds
  • - Update shipping information

Inventory Sync Agent

  1. Create agent for inventory management
  2. Monitor stock levels
  • - Alert on low stock
  • - Sync inventory across channels
  • - Auto-update product availability

Customer Support Agent

  1. Deploy to messaging platforms
  2. Handle customer inquiries:
  • - Order status
  • - Product information
  • - Return requests
  • - Shipping questions

Step 6: Deploy to Shopify

  1. Go to Deployments
  2. Select your Shopify agent
  3. Choose Shopify as deployment platform
  4. Configure:
  5. 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:

  1. In Shopify Admin → Settings → Notifications
  2. Create webhook for:
  3. Point webhook to Craveva endpoint
  4. 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