# Outscraper n8n Example Workflows

This folder contains importable workflow templates that combine the Outscraper community node with standard n8n nodes and n8n AI Agent.

## Prerequisites

- n8n with `n8n-nodes-outscraper` installed
- Outscraper API credentials configured in n8n
- OpenAI Chat Model credentials configured in n8n
- Optional Slack or CRM credentials/endpoints, depending on the workflow

The examples use n8n's built-in `AI Agent` cluster node with an `OpenAI Chat Model` sub-node and a `Structured Output Parser`. They do not call OpenAI through custom HTTP Request nodes.

## Workflows

### AI-powered lead generation pipeline

File: `ai-powered-lead-generation-pipeline.workflow.json`

Flow:

1. Search businesses with Google Maps.
2. Normalize business results into lead candidates.
3. Enrich websites with Emails & Contacts.
4. Validate the best email with Email Validator.
5. Score the lead with AI Agent and Structured Output Parser.

### Review sentiment analysis workflow

File: `review-sentiment-analysis-workflow.workflow.json`

Flow:

1. Pull Google Maps reviews.
2. Normalize nested Outscraper review data, including `reviews_data`.
3. Aggregate review count and average rating.
4. Analyze sentiment with AI Agent and Structured Output Parser.
5. Format and send a Slack digest.

### AI Agent lead qualification

File: `ai-agent-lead-qualification.workflow.json`

Flow:

1. Search local businesses with Google Maps.
2. Normalize Outscraper's nested response shape.
3. Rank leads with AI Agent and Structured Output Parser.

### AI Agent review triage

File: `ai-agent-review-triage.workflow.json`

Flow:

1. Extract reviews from a Google Maps place URL.
2. Normalize review text and ratings.
3. Generate triage output with AI Agent and Structured Output Parser.

### AI Agent AI Scraper schema extraction

File: `ai-agent-ai-scraper-schema-extraction.workflow.json`

Flow:

1. Use Outscraper AI Scraper with a nested product schema.
2. Normalize extracted products.
3. Review extraction quality with AI Agent and Structured Output Parser.

## Importing

1. Open n8n.
2. Select **Import from File**.
3. Choose one of the `.workflow.json` files.
4. Assign credentials to the Outscraper nodes and OpenAI Chat Model nodes.
5. Replace placeholder Slack webhook URLs or CRM endpoints where present.
6. Run the workflow manually before enabling schedules.
