Quick Overview
This workflow manually runs a company enrichment pipeline that reads companies from Google Sheets, uses SerpAPI web search plus Google Gemini to generate structured company details, writes the enriched data to a second Google Sheet, and marks the source rows as enriched to avoid reprocessing.
How it works
- Starts when you run the workflow manually.
- Reads all rows from a source Google Sheets worksheet and keeps only the Company Name, Website, and Enriched fields.
- Skips any row where Enriched is already set to Yes.
- For each remaining company, uses SerpAPI web search and Google Gemini (via an AI agent) to research the company and return structured JSON fields such as industry, description, target customers, headquarters, and estimated size.
- Normalizes the AI output by converting the target_customers array into a comma-separated string.
- Appends the enriched company record to an output Google Sheets worksheet.
- Updates the original source row in Google Sheets to set Enriched = Yes based on the Company Name.
Setup
- Add Google Sheets credentials and set the source spreadsheet ID and sheet name for reading companies, ensuring columns Company Name, Website, and Enriched exist.
- Set the output Google Sheets spreadsheet ID and sheet name for appending enriched results, ensuring columns Company Name, Website, Industry, Description, Target Customers, Headquarters, and Estimated Size exist.
- Add a SerpAPI credential for the web search tool.
- Add a Google Gemini API credential for the Gemini Flash model used by the AI agent.
- Confirm the “mark as enriched” update targets the same source sheet and that Company Name uniquely identifies rows for updating.