Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.mavera.io/llms.txt

Use this file to discover all available pages before exploring further.

Shopify holds your commerce truth — who buys, what they buy, how often they return, and where they drop off. These eight jobs pull that data through Mavera’s surfaces (Custom Personas, Mave Agent, Focus Groups, Generate, Brand Voices) so your personas reflect real purchasing behavior, your content matches actual inventory priorities, and your campaigns are informed by synthetic audience reactions grounded in real customer data.

API Reference Card

DetailValue
Base URLhttps://{store}.myshopify.com/admin/api/2024-10/graphql.json
AuthOAuth 2.0 — X-Shopify-Access-Token header
Rate limitsGraphQL: 50 pts/sec (Standard), 500 pts/sec (Shopify Plus)
REST fallbackhttps://{store}.myshopify.com/admin/api/2024-10/{resource}.json
Mavera basehttps://app.mavera.io/api/v1
Mavera authAuthorization: Bearer mvra_live_...
All examples use three environment variables: SHOPIFY_STORE (your myshopify.com subdomain, e.g. acme-store), SHOPIFY_ACCESS_TOKEN (private app access token starting with shpat_), and MAVERA_API_KEY. Python examples use requests; JavaScript examples use fetch. GraphQL queries target the 2024-10 API version.

Prerequisites

1

Shopify private app with required scopes

Create a custom app in Shopify Admin → Settings → Apps and sales channels → Develop apps. Grant scopes: read_customers, read_orders, read_products, read_inventory, read_checkouts. Copy the Admin API access token (starts with shpat_).
2

Mavera API key

Get your key from Mavera dashboard. The key starts with mvra_live_.
3

Install dependencies

pip install requests openai
4

Environment variables

export SHOPIFY_STORE="acme-store"
export SHOPIFY_ACCESS_TOKEN="shpat_xxxxx"
export MAVERA_API_KEY="mvra_live_xxxxx"

Jobs

#JobShopify DataMavera SurfaceOutput
1Customer Cohort → Persona PipelineCustomers with order historyCustom PersonasCohort-segmented persona library
2Product Review AnalysisProduct metafields / Judge.me reviewsResponsesSentiment + theme breakdown per product
3Product Collection → Content GenerationCollection productsBrand Voices + GenerateMarketing copy with brand-consistent voice
4Abandoned Cart → Focus GroupAbandoned checkoutsFocus GroupsAbandonment reason insights by segment
5Seasonal Sales → Campaign PlanningHistorical orders by monthMave AgentData-driven seasonal campaign calendar
6Product Bundling ValidationOrders with line itemsFocus GroupsBundle concept validation scores
7Inventory-Aware Content PrioritizationInventory levels by locationGeneratePrioritized content for high-stock items
8Customer Metafield → Persona EnrichmentCustomer metafieldsCustom PersonasEnriched personas with loyalty + preference data


Rate Limits & Production Notes

ConcernShopify LimitRecommendation
GraphQL cost50 pts/sec (Standard), 500 pts/sec (Plus)Check extensions.cost.throttleStatus in every response
REST API2 req/sec (Standard), 20 req/sec (Plus)Add 500ms sleep between REST calls
Bulk operations1 concurrent bulk op per appUse for > 10k records instead of pagination
Webhook deliveryPush-basedConsider webhooks for real-time triggers
Mavera rate limitVaries by planExponential backoff on 429 responses
Before going to production: store tokens in a secrets manager (never commit them), implement exponential backoff with jitter (start 1s, double, cap 30s), use Shopify Bulk Operations for 10k+ records, log all API responses for auditing, test on a development store first, and pin your API version to 2024-10.

Production Checklist

  • Secrets in env vars or secrets manager
  • Exponential backoff with jitter on all API calls
  • Bulk operations for datasets > 10k records
  • Structured logging and error alerting
  • Tested on Shopify development store
  • API version pinned to 2024-10; rate limit headers monitored
  • Pagination cursors handled for all list endpoints

Shopify GraphQL Admin API

Official GraphQL reference with schema explorer.

Mavera API Reference

Personas, focus groups, brand voices, and generations.

Shopify Bulk Operations

Async queries for large datasets.

Integration Quick Reference

Cross-platform patterns for all Mavera integrations.