Use this n8n workflow to scrape sales data, analyze rep performance using an AI agent (OpenAI, Bright Data), and automatically save detailed metrics to Google Sheets. Find more powerful n8n templates here.
Download this n8n workflow template and start using it instantly.
Sales Managers and Team Leaders who need automated performance dashboards.
Business Analysts requiring structured data extraction from complex web sources.
Users looking to utilize advanced AI agents and web scraping within an n8n workflow.
Anyone seeking robust n8n templates for data processing and storage.
This comprehensive n8n workflow solves the challenge of manually aggregating and analyzing sales activity data scattered across different platforms. By leveraging a powerful AI Agent (powered by OpenAI and integrated with Bright Dataโs web scraping capabilities), the workflow automatically retrieves raw activity lists, calculates individual rep performance metrics (like completion rates and task counts), ranks the team, and even suggests coaching recommendations based on predefined thresholds. The highly structured output generated by the AI is then seamlessly saved into a Google Sheet using a dedicated n8n node, making this n8n workflow an essential solution for hands-free, intelligent performance reporting. This specialized n8n template demonstrates high-level integration between AI and external tools.
The process begins with the โก Start Scraping (Manual Trigger) n8n trigger, initiating the automation. Following this, the ๐ Set MCP Source URL n8n node defines the target URL containing the sales activity data. The core intelligence resides in the ๐ค Analyze Sales Rep Performance n8n node, which operates as an AI Agent. This agent is instructed to scrape the defined URL using the ๐ Bright Data MCP Tool, analyze the tasks by userId, compute essential statistics (total, completed, incomplete tasks, and completion rate), rank the representatives, and apply a conditional check (coachingRecommended: true if the completion rate is below 70%). This AI Agent uses the ๐ง AI Brain (OpenAI) for complex analysis. The output is strictly formatted into a JSON array using the structured output parsers, ensuring data cleanliness. Subsequently, the ๐งฉ Split JSON to Individual Records code n8n node transforms the single JSON array of results into multiple individual items, one for each sales rep. The final step of this n8n workflow uses the ๐ Store Rep Performance (Google Sheets) n8n node to append each individual record as a new row in the designated Google Sheet, completing the automated reporting cycle.
To use this powerful n8n workflow and its associated n8n templates, follow these steps:
๐ง AI Brain (OpenAI) and OpenAI Chat Model n8n nodes. This requires an API key capable of accessing the specified GPT model (gpt-4.1-mini or similar).๐ Bright Data MCP Tool n8n node using your Bright Data client credentials.๐ Store Rep Performance (Google Sheets) n8n node. You will need to authenticate your Google account and specify the exact Spreadsheet ID and Sheet Name where the performance data will be stored.๐ Set MCP Source URL n8n node with the actual URL provided by your Bright Data MCP that contains the sales performance data, replacing the placeholder URL.This n8n workflow utilizes several key nodes:
โก Start Scraping (Manual Trigger): This n8n trigger node serves as the starting point for manual execution or can be replaced by a time-based n8n trigger for scheduling.
๐ Set MCP Source URL (Set n8n node): Defines the activityURL variable which holds the target URL for the AI Agent to scrape. This is crucial for customizing the n8n workflow.
๐ค Analyze Sales Rep Performance (LangChain Agent n8n node): The core intelligence. It coordinates the OpenAI model and the Bright Data tool. Its specific function is to execute a multi-step analytical prompt to derive KPIs (total tasks, completion rates, rankings) and output structured data.
๐ Bright Data MCP Tool (n8n node): Acts as the web scraping mechanism, instructed by the AI Agent to use the scrapeasmarkdown operation to fetch the data robustly.
Auto-fixing Output Parser / ๐งพ Structured Response Parser1 (LangChain n8n node): These nodes ensure that the text output from the AI analysis is converted into a reliable, defined JSON structure, vital for downstream automation.
๐งฉ Split JSON to Individual Records (Code n8n node): Executes custom JavaScript to iterate over the array of sales rep objects received from the AI Agent, creating separate n8n items for efficient bulk insertion into Google Sheets.
Use this robust n8n workflow to automatically track public holidays for distributed teams using the Nager.Date API. This powerful n8n template identifies shared holidays and sends real-time alerts to Slack while maintaining a master schedule in Notion.

Automate your Todoist weekly review using this powerful n8n workflow. It fetches completed tasks, allows project filtering via a custom n8n node, and sends a beautifully formatted email report.

Learn how to build a resilient n8n workflow that supports custom retry counts and delays exceeding 5 seconds, using core n8n nodes for advanced error handling.

Use this advanced n8n workflow to track expenses instantly via Telegram (voice or text). It leverages AI agents and Google Sheets for smart financial management and analysis.

Use this essential n8n workflow to accurately track AI Agent token usage (prompt and completion tokens) across various models and log cost estimates in Google Sheets. This n8n templates solution is crucial for cost management.

Use this advanced n8n workflow to capture execution metrics, token usage, and performance data from your AI applications and send them automatically to LangFuse for deep observability. A powerful addition to your n8n templates collection.

Building AI Agents and Automations | Growth Marketer | Entrepreneur | Book Author & Podcast Host If you need any help with Automations, feel free to reach out via linkedin: https://www.linkedin.com/in/yaronbeen/ And check out my Youtube channel: https://www.youtube.com/@YaronBeen/videos







































