Skip to main content

Scenario

Each location has distinct review themes — downtown customers love the espresso, suburban customers love the parking. You extract themes per location and generate location-specific marketing content that highlights what each location does best, in the language customers already use. Flow: Per-location review themes → Mavera POST /mave/chat (theme extraction) → POST /generations (location content) → Per-location marketing assets

Code

Example Output

Error Handling

Locations with fewer than 10 reviews produce weak themes. Skip or combine with nearby locations for analysis.
In tourist-heavy locations, reviews come in multiple languages. Pass ?language=en to filter, or let Mave handle mixed-language input.