e
lead-extraction-tool
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data β all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v10View latest version
An AI-powered lead extractor that scans websites to find email addresses and contact information.
Rendering mermaid diagram...
- You enter a website URL in the form
- An OpenAI Agent (GPT-4o-mini) receives the URL and uses a
scrape_urltool - The agent strategically crawls the site β prioritizing about/team/contact pages
- Emails are extracted from
mailto:links and page text via regex - The agent returns structured lead data (email, name, role, source page)
- Results are displayed in a table with a "copy all emails" button
- Set the
OPENAI_API_KEYenvironment variable β Get your key
- Frontend: React + Twind (Tailwind)
- Backend: Hono API on Val Town
- AI: OpenAI Agents SDK (
@openai/agents) - Scraping: Cheerio HTML parser