Skip to main content

Scenario

Responding to negative reviews is high-stakes — a great response can convert a detractor into an advocate. You pull 1-3 star reviews, load your customer service brand voice from Mavera, then generate personalized responses that acknowledge the specific issue, offer a solution, and maintain your brand’s tone. Each response is unique to the review, not a generic template. Flow: Trustpilot GET /reviews (1-3 star) → Mavera POST /brand-voices or load existing → POST /generations (per review) → Personalized response drafts

Code

Example Output

Error Handling

Posting replies uses POST /private/reviews/{id}/reply, which requires OAuth 2.0 (not just API key). Set up the OAuth flow before automating responses.
Trustpilot allows one company reply per review. Attempting a second returns 409. Check companyReply field before responding.
Trustpilot limits replies to 10,000 characters. The 80-word prompt constraint keeps responses well under this limit.