Skip to main content

Scenario

G2 has thousands of reviews about your competitors — what their users love, hate, and wish for. This is competitive intelligence gold. You pull competitor reviews from G2, aggregate the sentiment data, and send it to Mave Agent for analysis. The output identifies positioning opportunities: where competitors are weak and you can win. Flow: G2 GET /survey-responses (competitor product) → Aggregate love/hate/recommend → Mavera POST /mave/chat → Positioning opportunities

Architecture

Code

Example Output

Error Handling

G2 product IDs aren’t always obvious. Find them via GET /products?filter[name]=CompetitorName or from the G2 product page URL slug.
You can only access reviews for products in your G2 category. Cross-category competitor reviews require a G2 Market Intelligence subscription.