The Logic Layer: An OpenAI Agent Qualifies 17,000 Accounts Inside Clay Before a Rep Touches Them
Qualify a wide, messy account list with an AI logic layer so reps only work accounts that actually fit the ICP, before spending enrichment credits.
by Shreesh Naik
- hard
- Nov 12, 2026
Shown: The source shows the workflow or result so you can inspect it.
Read the source (stage2.capital)(opens in a new tab)The workflow
The workflow as recorded. Replace anything in [BRACKETS] with your own details.
Upload the wide list into Clay with company name, domain, and firmographics. Build the logic layer in OpenAI's Responses API, not ChatGPT or Claygent: a saved prompt with step-by-step decision-tree logic and a JSON schema output (account_fit: good, poor, or manual_review, plus one sentence of reasoning). Wire it into Clay with two HTTP API enrichments: the first posts the prompt ID and the row's company details to the Responses API and returns a response ID, and the second fetches the finished evaluation by that ID. Extract the fit rating and reasoning into Clay columns, filter to account_fit = good, and push only the qualified rows to the CRM or sequencer with the fit rationale attached. Keep refining the prompt as feedback comes in, and only spend enrichment money after qualification, never before.
How it went
No separate result detail is recorded for this play. The source shows the workflow or result so you can inspect it.
A filtered list of qualified accounts in the CRM or sequencer, each carrying the fit rationale so the rep knows why the account is worth working.
How to try it
A deliberately wide account list (from Sales Navigator, ZoomInfo, or Apollo) as a CSV with company name, domain, and basic firmographics, plus a written ICP decision tree (for example, only accept companies that sell a consumer-facing digital product, and the account keywords that must be present).
Not recorded for this play. Check the source before you rely on it.
Worth knowing
No hard performance lift data yet: Rally is rebuilding its outbound engine from scratch and expects to see measured results in Q3, so the results line is the author's read, not a measured outcome. The post is a VC fund's blog write-up of a consultant's build, not the consultant's own repo, so there is no code to clone, only the build steps to copy.
Source and credit
Shreesh Naik
The source shows the workflow or result so you can inspect it.