Trigger the workflow from a Clay Audiences segment of qualified accounts. Find up to five security, compliance or technology leaders, rank them by title in a code step, and verify a work email. Write the message from the account's live signal, the inherited why-we-won and the buyer's title, then pass a conditional that requires a verified email, a campaign ID and send_to_lemlist = true. Everything else is held with a reason.
An Audiences segment trigger feeds a people search, a deterministic ranking step, email verification and a message code step, then a three-condition conditional that either adds the lead to Lemlist or holds it with a reason.
Flow: Qualified segment -> Find up to 5 leaders -> Rank titles -> Verified email -> Write message -> Gate (email, campaign ID, approval) -> Lemlist OR Hold with reason
Read the full walkthrough, with the runs and what went wrong: How to turn closed-won deals into a signal-led pipeline in Clay
What you need before you start
Set the inputs and ownership rules before you connect live systems.
Inputs
- Signal Loop · Qualified (string, required) — Clay Audiences segment the workflow listens to. The installer creates it.
- signal_summary (string, required) — Buyer-safe signal sentence from the discovery workflow.
- signal_evidence_url (url, optional) — Official notice URL, stored for the rep.
- inherited_why_we_won (string, required) — Win reason carried from HubSpot.
Expected outputs
- delivery_status (string, required) — uploaded_to_lemlist, ready_for_paused_campaign, held_no_verified_email or held_campaign_not_configured.
- subject (string, required) — Draft subject.
- email_body (string, required) — Draft message for human review.
Step 1
Account enters the qualified segment
Activate only accounts the discovery Claygent qualified.
Configuration: {"trigger": "audience_segment", "entity": "ACCOUNT"}
Step 2
Find up to 5 security, compliance or technology leaders
Search for the buyer the win reason implies.
Configuration: {"action": "cpj-find-lists-of-people-v2", "limit": 5}
Step 3
Rank titles and pick one
Deterministic, arguable scoring instead of a model.
Configuration: {"scores": {"CISO": 120, "Director of information security": 115, "Information security manager": 110, "Data protection": 105, "Compliance": 90, "CTO": 80, "CIO": 75, "Risk": 65, "Junior/assistant": -70}}
Step 4
Find a verified work email
Hold rather than guess when nothing verified returns.
Configuration: {"action": "findymail-find-work-email-from-linkedin"}
Step 5
Write subject and message
Compose from the live signal, inherited win reason and buyer title.
Configuration: {"node": "code", "send_to_lemlist_default": false}
Step 6
Gate before Lemlist
Require a verified email, a campaign ID and explicit approval.
Configuration: {"all_of": ["email not empty", "campaign_id not empty", "send_to_lemlist = true"]}
Step 7
Add approved lead to a paused Lemlist campaign
Hand off with subject, message, evidence URL and title as custom fields.
Configuration: {"action": "lemlist-add-lead-to-campaign-v2", "allowDuplicates": false}
How to test the Clay workflow
We built this in Clay and ran it against 2 real scenarios to confirm it behaves exactly as described. Here’s what we checked, and what it took to get there.
- Qualified account, public-sector award (NHS England supplier) — confirmed working as expected.
- Qualified account, public-sector award (SCAPE supplier) — confirmed working as expected.
We last ran this in Clay on 2026-09-23, and every scenario worked as expected. It cost nothing to test — zero Clay credits used.
What we had to fix along the way
- The demo build set the approval flag inside the message step because its campaign was paused; the bundle ships the flag false and the campaign ID blank.
- Lemlist connectivity was verified by adding leads to a paused campaign; nothing was sent.
Install it in your Clay workspace
One download has everything: the workflow, an installer and a START-HERE guide.
- Download the zip and unzip it.
- Open START-HERE.txt. It lists the one-time setup, such as Clay's CLI and any CRM fields.
- Double-click Install (Mac).command or Install (Windows).bat.
The installer checks you're signed in to Clay, asks before changing anything and adds the workflow as an unpublished draft. Nothing runs and nothing is sent until you publish it.
Prefer a hand? Our fractional GTM engineering team can install it for you.
Guardrails and limitations
Guardrails
- The downloadable bundle ships with send_to_lemlist = False and a blank campaign ID.
- Keep the Lemlist campaign paused until a person has reviewed the copy.
- No verified email means the row is held, never sent to an unverified address.
Current limitations
- The download leaves out the demo's HubSpot writeback. Add your own CRM step after the gate if you want qualified accounts recorded in HubSpot.
- The message copy is a starting draft for a compliance-software seller; rewrite it for your offer.
- HubSpot and Lemlist must be connected in Clay before the draft can run.
Common questions
How do I stop Clay from emailing leads automatically?
Put a conditional before the Lemlist step that requires a verified email, a campaign ID and an explicit approval flag. Ship the flag as false and keep the campaign paused until a person has read the copy.
Why rank buyer titles in code instead of with AI?
It is cheap, repeatable and easy to argue with. When a rep disagrees with a pick, you change a number, not a prompt.

