Skip to main content

Scenario

BigCommerce stores custom customer attributes — company type, purchase frequency, preferred categories — via customer attributes. You pull these, group customers into segments by shared attribute values, and create Mavera personas from each real-world segment so generated content reflects actual buyer profiles. Flow: BigCommerce GET /v3/customers?include=attributes → Group by attribute values → Mavera POST /api/v1/personas per segment

Architecture

Code

Example Output

Error Handling

The include=attributes query param is required — without it the attributes array is omitted. Verify your API account has store_v2_customers_read_only scope.
Segments with fewer than 3 members produce generic personas. The code skips these. Combine low-count segments into an “Other” bucket or use a broader grouping attribute.