# G2

The G2 Integration step allows you to connect your AirOps workflows directly with your G2 account. This integration enables you to pull product data, review answers, and survey responses from G2 programmatically.

### How to Configure the G2 Integration Step

#### Authentication

Before using the G2 integration in your workflows, you must first connect your G2 account in the AirOps Settings:

1. Navigate to ⚙ Settings > Integrations
2. Find the G2 section and click "Configure"
3. Complete the OAuth authentication process by granting AirOps the necessary permissions

#### Action Types

The G2 Integration supports the following actions:

* **Get Products**: Retrieve a list of products listed on G2
* **Search Products**: Search for G2 products by keyword or topic
* **Get Answers**: Retrieve review answers from G2
* **Get Reviews**: Retrieve reviews for a specific product

#### Action-Specific Parameters

**Get Products**

* **Product Name (Optional)**: Filter by exact product name (e.g. `Salesforce`)
* **Slug (Optional)**: Filter by G2 product URL slug (e.g. `salesforce-crm`)
* **Search Query (Optional)**: Free-text search across product names (e.g. `CRM`)
* **Page Size (Optional)**: Number of results per page (max 100, default 10)
* **Page Number (Optional)**: Page number to retrieve (default 1)

**Search Products**

* **Keyword (Required)**: Search for G2 products by keyword or topic (e.g. `CRM`, `project management`)
* **Page Size (Optional)**: Number of results per page (max 100, default 10)
* **Page Number (Optional)**: Page number to retrieve (default 1)

**Get Answers**

* **Updated After (Optional)**: Return questions updated after this date (RFC3339 format, e.g. `2024-01-01T00:00:00Z`)
* **Updated Before (Optional)**: Return questions updated before this date (RFC3339 format)
* **Page Size (Optional)**: Number of results per page (max 100, default 10)
* **Page Number (Optional)**: Page number to retrieve (default 1)

**Get Reviews**

* **Product ID (Required)**: G2 product UUID to fetch reviews for (e.g. `5079d5b8-c6f0-4b0e-96a9-44b8c9d3a6f1`)
* **Created After (Optional)**: Return reviews created after this date (RFC3339 format, e.g. `2024-01-01T00:00:00Z`)
* **Created Before (Optional)**: Return reviews created before this date (RFC3339 format)
* **Updated After (Optional)**: Return reviews updated after this date (RFC3339 format)
* **Updated Before (Optional)**: Return reviews updated before this date (RFC3339 format)
* **Minimum Stars (Optional)**: Return only reviews with a star rating at or above this value (1–5)
* **Maximum Stars (Optional)**: Return only reviews with a star rating at or below this value (1–5)
* **Page Size (Optional)**: Number of results per page (max 100, default 10)
* **Page Number (Optional)**: Page number to retrieve (default 1)

### Common Use Cases

* Searching for competitor products by keyword and pulling their reviews for competitive analysis
* Filtering reviews by star rating to surface promoter or detractor feedback at scale
* Summarizing customer feedback with an AI step to surface key themes
* Monitoring sentiment trends over time using date-filtered review data
* Enriching content with real social proof and review quotes from G2

### Error Handling

By default, the G2 Integration step will terminate the workflow if it fails. You can configure it to continue by selecting "Continue" instead of "Terminate Workflow" in the step settings.
