Unlisted
Like
leads
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 simplified branch: v65View latest version
POST any lead data to this webhook for AI-powered qualification.
- Remix this val
- Set
OPENAI_API_KEYin this val's environment variables - Customize
PROMPT.txt - Copy the HTTP endpoint from
main.tsinto your webhook source
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.