• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
e

exsoylentgreen

lead-extraction-tool

Public
Starter template with client-side React & Hono server
Remix of templates/reactHonoStarter
Like
lead-extraction-tool
Home
Code
4
backend
2
frontend
4
README.md
H
index.ts
Connections
Environment variables
1
Branches
1
Pull requests
Remixes
History
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.
Sign up now
Code
/
README.md
Code
/
README.md
Search
…
Viewing readonly version of main branch: v10
View latest version
README.md

πŸ” Lead Extraction Tool

An AI-powered lead extractor that scans websites to find email addresses and contact information.

How it works

Rendering mermaid diagram...
  1. You enter a website URL in the form
  2. An OpenAI Agent (GPT-4o-mini) receives the URL and uses a scrape_url tool
  3. The agent strategically crawls the site β€” prioritizing about/team/contact pages
  4. Emails are extracted from mailto: links and page text via regex
  5. The agent returns structured lead data (email, name, role, source page)
  6. Results are displayed in a table with a "copy all emails" button

Setup

  1. Set the OPENAI_API_KEY environment variable β†’ Get your key

Tech Stack

  • Frontend: React + Twind (Tailwind)
  • Backend: Hono API on Val Town
  • AI: OpenAI Agents SDK (@openai/agents)
  • Scraping: Cheerio HTML parser
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
AboutAlternativesPricingBlogNewsletterCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
Β© 2026 Val Town, Inc.