Spot Workplace Discrimination Patterns with AI and n8n

This workflow automates the detection of workplace discrimination patterns using Glassdoor data, AI analysis, and data visualization. It simplifies identifying disparities among demographic groups in employee reviews, saving HR teams hours of manual work.
manualTrigger
lmChatOpenAi
httpRequest
+6
Workflow Identifier: 1919
NODES in Use: manualTrigger, set, httpRequest, html, lmChatOpenAi, merge, code, quickChart, chainLlm
Spot workplace bias with n8n and AI

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What This Workflow Does ⚙️

This workflow finds bias in workplace reviews on Glassdoor by looking at ratings from different groups of people.

It scrapes data, uses AI to get numbers from reviews, runs statistics, and makes charts to show differences between groups.

The result is easy-to-understand reports about workplace fairness for HR teams.


Who Should Use This Workflow

HR analysts and diversity officers who want to find discrimination in employee feedback fast and clear.

It works best for medium to large US companies with enough Glassdoor reviews to analyze.


Tools and Services Used

  • ScrapingBee: Gets the webpage data from Glassdoor.
  • OpenAI API: Reads HTML and pulls out rating numbers for analysis.
  • QuickChart API: Makes graphs and charts from the data.
  • n8n: Runs the whole automated workflow.

Inputs, Process, and Outputs

Inputs

  • Company name (like “Twilio”) to find reviews.
  • API Keys for ScrapingBee, OpenAI, and QuickChart.

Process Steps

  1. Scrape Glassdoor search results for the company.
  2. Extract the company’s Glassdoor page URL.
  3. Scrape company overview and reviews pages.
  4. Extract HTML blocks for overall reviews and demographic ratings.
  5. Use OpenAI models to get numbers from HTML.
  6. Calculate averages, variance, Z-scores, and effect sizes.
  7. Calculate p-values with code for statistical significance.
  8. Create bar chart and scatterplot with QuickChart.
  9. Generate an AI summary that explains the numbers in easy words.

Outputs

  • Clear charts showing rating differences by demographic group.
  • Statistical scores telling how big and significant differences are.
  • Readable AI commentary summarizing key insights.

Beginner step-by-step: How to Use This Workflow in n8n

Step 1: Download and Import

  1. Use the Download button on this page to get the workflow file.
  2. Open n8n Editor and select Import from File.
  3. Upload the downloaded workflow file to add it in your n8n.

Step 2: Configure API Credentials and Variables

  1. Add ScrapingBee API Key in the HTTP Request nodes that scrape Glassdoor.
  2. Enter OpenAI API Key in the OpenAI Chat nodes.
  3. Input QuickChart API key if needed (usually none is required).
  4. Set the company name string in the Set node labeled company_name, e.g., “Twilio”.
  5. Check and update IDs, URLs, or email addresses if the workflow uses notifications or storage nodes.

Step 3: Test the Workflow

  1. Run the workflow manually using the Manual Trigger node.
  2. Watch data go through each node and fix any errors shown.
  3. Confirm charts and summaries output well at the end.

Step 4: Activate for Production

  1. Turn on the workflow by enabling it in n8n.
  2. Set triggers for scheduled runs if repeated analysis is wanted.
  3. Monitor API usage to avoid cost surprises.
  4. Consider running this workflow on self-host n8n if you want full control over automation.

Customization Ideas

  • Change company name anytime to analyze other companies.
  • Add new demographic groups by editing the labels in the demographic Set node.
  • Tweak the thresholds for p-values or effect sizes in the code node.
  • Change colors, labels, or fonts in charts by editing the scatterplot options.
  • Upgrade OpenAI chat models for better data extraction or summaries by changing the model name.

Handling Edge Cases and Failures

  • If ScrapingBee returns no data, check API keys and update CSS selectors in extract nodes.
  • If OpenAI nodes fail or timeout, reduce HTML size sent or increase node timeout.
  • If charts have missing data, ensure all demographic groups have enough review counts.

Summary of Benefits and Results

✓ Saves time and reduces errors in analyzing Glassdoor reviews.

✓ Shows clear measurement of workplace bias by demographic.

✓ Provides charts that HR teams can understand quickly.

✓ Gives AI-written summaries that explain complex stats simply.

→ Enables fairer workplace policies based on data.

Spot workplace bias with n8n and AI

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

Yes, if the service can handle JavaScript and proxies like ScrapingBee does for Glassdoor.
Yes, OpenAI API credits are used for extraction and analysis nodes.
Only publicly available Glassdoor data is accessed by the workflow.
The workflow works best with companies that have many reviews for accurate statistics.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.