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

valdottown

leads

AI-powered lead qualifying from any data source
Unlisted
Like
leads
Home
Code
7
PROMPT.txt
README.md
agent.ts
dashboard.tsx
db.ts
H
main.ts
testing.ts
Branches
3
Pull requests
Remixes
1
History
Environment variables
1
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 simplified branch: v65
View latest version
README.md

Leads

POST any lead data to this webhook for AI-powered qualification.

Getting started

  1. Remix this val
  2. Set OPENAI_API_KEY in this val's environment variables
  3. Customize PROMPT.txt
  4. Copy the HTTP endpoint from main.ts into your webhook source

How it works

POST any JSON to this val's HTTP endpoint. The data is sent to an OpenAI agent along with the instructions in PROMPT.txt. The agent uses web search to research the lead and returns a structured assessment.

The input and AI output are stored in SQLite. The dashboard at main.ts shows all leads, with ideal matches first.

Query parameters are captured too - add ?source=rb2b or any other params and they'll be stored with the input data.

FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.