AI-powered lead qualifying from any data source.
main.ts ingests all inbound POST request data and passes it to the OpenAI agent in
agent.ts.match for the criteria in
PROMPT.txt.{ "name": "(normalized name)", "match": "(true or false)", "reasoning": "(explanation)" }
leads SQLite table with the columns:
id — auto-incremented, starts at 1timestamp — Unix timestampinput_data — JSON of your POST bodyoutput_data — JSON of AI responsemain.ts dashboard shows a history of all lead assessments,
successful matches first. Clicking any lead shows the full inbound and output
data from the assessment.OPENAI_API_KEY
as an environment variablePROMPT.txt (Don't remove any fields from the
structured response)main.ts:
leads SQLite table with one column for
your original input_data and a second column for the AI evaluator's
output_data. You also have a dashboard of this data hosted at the
main.ts val endpoint.PROMPT.txt and they'll be added to output_data. You can
use this to expand the AI's assessment, enrich your leads, or even just
normalize lead data coming from different sources.your-val-endpoint.val.run?source=signup-page). The parameters will be
bundled in the _query object of input_data. This can be useful for
tracking where a lead was forwarded from.