Automate Company Data Enrichment with n8n and AI Agents

This n8n workflow automates company data enrichment by combining AI research agents, Google Sheets, and web tools to extract structured company information such as domains, pricing plans, and integrations. It solves the tedious task of manual research by providing up-to-date actionable insights through automation.
ManualTrigger
GoogleSheets
agent
+9
Workflow Identifier: 1196
NODES in Use: ManualTrigger, Set, lmChatOpenAi, toolWorkflow, toolSerpApi, outputParserStructured, SplitInBatches, GoogleSheets, Merge, StickyNote, ScheduleTrigger, agent

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

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What This Automation Does

This workflow gets company info from a list in Google Sheets and updates that list automatically.
It uses AI to find details like website, LinkedIn, pricing, free trials, and case studies.
This stops wasting time on slow, manual research and adds correct data fast.
You get detailed and fresh company profiles with no typing needed.

The system reads companies one by one from a spreadsheet.
It asks the GPT-4 AI agent to dig up facts about each company with help from Google search data and website content scraping.

Then it checks the AI answer to keep data neat and fills the Google Sheet row automatically, marking each as done.
This runs manually or on a schedule, so your list stays up to date by itself.


Who Should Use This Workflow

This workflow is best for business analysts and marketing teams who need to study many companies.
It suits users who want to save hours weekly by avoiding manual lookups.

If managing company data in Google Sheets and needing extra details like pricing and LinkedIn, this is helpful.
Non-technical users who prefer easy automation without coding can also use it.


Tools and Services Used

  • Google Sheets API: Reads and writes company data in spreadsheet.
  • OpenAI API (GPT-4): Runs AI agent to research company info.
  • SerpAPI or ScrapingBee API: Searches Google results to help AI find pricing and case studies.
  • n8n automation platform: Pulls data, calls APIs, processes info, and updates sheets on schedule.

Beginner Step-by-Step: How to Build This in n8n

Step 1: Import Workflow

  1. Download the workflow file using the Download button on this page.
  2. Open the n8n editor where you manage automations.
  3. Click “Import from File” and select the downloaded workflow JSON.

Step 2: Setup Credentials and IDs

  1. Add your OpenAI API Key in the Credentials section.
  2. Add your SerpAPI or ScrapingBee API Key similarly.
  3. Edit Google Sheets nodes to use your spreadsheet’s document ID and sheet name.

Step 3: Customize Prompts and Inputs if Needed

  1. Check the AI company researcher agent prompt; it contains a clear prompt about what company info to find.
  2. Adjust any field names or extra info you want included in the prompt.

Step 4: Test Workflow

  1. Run the workflow manually by clicking “Test Workflow” using the Manual Trigger node.
  2. Check the Google Sheet updates after the run finishes for correct data.

Step 5: Activate Workflow for Production

  1. Enable the Schedule Trigger node to run every 2 hours or chosen time.
  2. Turn the workflow active in n8n to run automatically.
  3. If using self-host n8n, visit self-host n8n for hosting options.

Inputs → Processing → Outputs

Inputs

  • Google Sheet with rows containing company names and empty fields for info.
  • API Keys for OpenAI and Google search scraping (SerpAPI or ScrapingBee).

Processing Steps

  • Get rows needing company data enrichment from Google Sheets.
  • Use SplitInBatches to handle companies one at a time.
  • Send company names to OpenAI GPT-4 with a prompt asking for domain, LinkedIn, B2B/B2C, pricing, APIs, trials, and case studies.
  • Use SerpAPI or ScrapingBee to pull Google search results about pricing and case studies.
  • Extract website content in a sub-workflow to help analyze company details.
  • Parse AI response into structured JSON fields.
  • Merge enriched data back with original row info.
  • Update Google Sheet row with all found company info and mark as “done”.

Outputs

  • Google Sheet updated with accurate and fresh company data.
  • Rows marked as completed to avoid duplicate work next run.

Customizations ✏️

  • Change AI prompt in the AI company researcher to include CEO name, revenue, or more details.
  • Switch from SerpAPI to ScrapingBee by replacing the relevant node and updating the API key.
  • Modify the Google Sheets filter to enrich only certain companies by market or location.
  • Extend AI prompt and sheet columns to capture more integrations or tools.
  • Adjust the schedule trigger node timing for how often the workflow runs.

Troubleshooting 🔧

Invalid API key error in OpenAI node

Check the OpenAI API Key in n8n credentials.
Make sure it is current and typed correctly.

Google Sheets update fails with “row not found”

Ensure the row number matches the Google Sheet’s layout.
Try refreshing the node’s schema or recheck filters.

AI researcher returns incomplete or null data

Reduce batch size to avoid API limits.
Clarify prompt, or check usage limits with OpenAI.


Pre-Production Checklist ✅

  • Confirm Google Sheets document ID and sheet name are correct in nodes.
  • Test connections to OpenAI, SerpAPI, or ScrapingBee in n8n settings.
  • Run some test companies manually to check accuracy.
  • Validate AI output matches expected JSON structure in the parser.
  • Backup Google Sheet data before large updates.

Deployment Guide

After testing, turn the workflow live in n8n.
Set the schedule trigger to your preferred interval.

Watch the execution logs for errors.
Update API keys or prompt if the company list grows bigger.

With self-host n8n, you can run this workflow on your own server anytime.


Summary

✓ Saves hours every week by replacing manual company research.
✓ Automatically gets detailed company info from AI and web data.
✓ Updates Google Sheets with fresh, structured business intelligence.
✓ Runs on schedule or on demand for convenience.
✓ Works well for analysts and marketing teams needing accurate data fast.


Frequently Asked Questions

Go to n8n Credentials. Add new credentials for OpenAI and SerpAPI. Enter API keys exactly. Save and test connection before using.
This happens if the row number from the filter or batch node does not match sheet layout. Check filters and refresh schema in the Google Sheets node.
Reduce batch size to lower API load, check your OpenAI usage limits, and make the prompt instructions clearer and more specific.
Yes, by activating the Schedule Trigger node in n8n you can run the workflow every few hours or on any interval you choose.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free