π£ Enrich company records with social media URLs using Supabase and GPT-4o
β‘ 30 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 pulls companies from Supabase, uses an OpenAI (GPT-4o) agent to crawl each company website and collect social media profile URLs via HTTP requests and HTML parsing, and then writes the enriched company record (name, website, and social links) back to Supabase.
How it works
- Runs manually and loads all company records from a Supabase
companies_inputtable. - Keeps only each companyβs
nameandwebsitefields and sends the website to an OpenAI (GPT-4o) agent. - The agent fetches page text (HTML converted to Markdown) and extracts links from pages (anchor hrefs), following additional URLs as needed to find social profiles.
- The agent returns a structured JSON object of social media platforms and their profile URLs.
- The workflow combines the extracted social links with the original company name and website.
- Inserts the enriched record into the Supabase
companies_outputtable.
Setup
- Add a Supabase credential and set the correct workspace/project so the workflow can read from
companies_inputand write tocompanies_output. - Add an OpenAI API key in the OpenAI Chat Model node (configured for GPT-4o).
- Ensure your input table contains
nameandwebsitefields (or update the field mapping to match your schema).
π 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