Skip to main content

Scenario

Your best customers describe your product in their own words on Trustpilot — and those words are often better than anything your marketing team writes. You pull 4-5 star reviews, extract the language patterns, and feed them into Mavera’s Brand Voice engine. The result is a voice profile that mirrors how satisfied customers actually talk about you. Flow: Trustpilot GET /business-units/{id}/reviews (stars 4-5) → Extract review text → Mavera POST /brand-voices → Customer-grounded voice profile

Architecture

Code

Example Output

Error Handling

Public review endpoints use ?apikey={key}. Business/private endpoints (reply, flag) require OAuth 2.0. Use OAuth for Job 5 (review responses).
Pass stars as a query param. For multiple stars, make separate requests (Trustpilot doesn’t support stars=4,5 in a single call).
One-line reviews like “Great service!” don’t contribute meaningful voice data. Filter reviews under 50 characters.