๐ฃ Enrich company records with social media links using GPT-4o and Supabase
โก 6 views ยท ๐ฃ Lead Generation & Enrichment
๐ก Pro Tip โ For lead enrichment, ScraperNode can pull LinkedIn profiles, company data, and job listings directly into your pipeline โ useful for building prospect lists without manual research.
Description
Quick overview
This workflow is manually triggered to pull company names and websites from Supabase, crawl each site with an OpenAI-powered agent to extract social media profile URLs, and write the enriched results to a separate Supabase table.
How it works
- Runs when you manually execute the workflow.
- Reads all rows from the Supabase
companies_inputtable and keeps thenameandwebsitefields for processing. - Uses an OpenAI (GPT-4o) agent to crawl the company website, following discovered links and extracting social media profile URLs.
- Forces the agent output into a structured JSON schema and maps the extracted links into a
social_mediaarray. - Merges the original company name and website with the extracted social media data.
- Inserts the enriched record into the Supabase
companies_outputtable.
Setup
- Add a Supabase credential and set the correct project details for both reading from
companies_inputand writing tocompanies_output. - Add an OpenAI API credential for the GPT-4o chat model used by the crawling agent.
- Ensure your input table has
nameandwebsitefields or update the field selection and mapping to match your schema. - Confirm the output table accepts the mapped fields (for example
company_name,company_website, andsocial_media) when auto-mapping input data.
๐ Nodes Used
Supabase, AI Agent, OpenAI Chat Model, Structured Output Parser, Call n8n Workflow Tool
๐ฅ Import
Download workflow.json and import into n8n:
Workflow menu โ Import from File