Skip to main content

Scenario

Your G2 reviews contain the exact language your customers use to describe what they love and hate about your product. These phrases are gold for brand voice — “love” phrases become preferred terms; “hate” phrases become terms to avoid. You extract these from reviews and feed them into Mavera’s Brand Voice engine with explicit preferred and avoid term lists. Flow: G2 GET /survey-responses (your product) → Extract love/hate phrases → Mavera POST /brand-voices (with preferred_terms + avoid_terms)

Architecture

Code

Example Output

Error Handling

Phrase extraction needs 50+ reviews for meaningful bigrams. With fewer, use individual word frequency or pass raw text directly to Brand Voice without phrase extraction.
G2 reviews may be in multiple languages. Filter by attributes.language or use Mave to translate before phrase extraction.