Case study · AI outreach SaaS
Colderly: an AI agent that runs B2B outreach end to end
I designed, built and launched Colderly on my own. It takes a sales team from deciding who to sell to, through finding and qualifying those people, to a personalized video and email in each prospect's inbox. An AI agent can run every step, and a person approves anything that costs money or sends mail.
- Role
- Founder & CEO · sole engineer
- When
- Where
- Remote
- Links
- colderly.io
- Lead search, 200M+ records
- 25 s+→< 100 ms
- Great Britain filter: 93 ms
- Video render per lead
- 126 s→34 s3.7× faster
- System prompt served from cache
- ~15.9k tokens
- Every call after the first
- MCP tools for outside agents
- 54
- Paid steps wait for a person
On this page
Architecture
Diagram as text
- Web app → Main API: REST · SSE
- Outside agents → Main API: MCP · API key
- Main API → Sending platforms: launch
- Main API → OpenAI API: tool calls
- Main API → PostgreSQL: read-only SQL
- Main API → MongoDB: state
- Main API → Companion workers: HMAC jobs
- Eval harness → OpenAI API: offline evals
- Companion workers → Zoom Clips: upload clips
Diagram as text
- User → Agent runner: message
- Agent runner → Approval gate: proposal
- Approval gate → User: approve?
- Agent runner → Event log: events
- Agent runner → LLM: prompt
- Agent runner → Colderly tools: tool calls
- Agent runner → memory.md: context
- Eval harness → LLM: before/after
Context
Cold outreach usually runs on a separate tool for each step: a lead database, a scraper, an enrichment service, an email verifier, a copywriter, a video tool and a sender. Data drifts between them, and real personalization takes hours per lead.
Colderly puts the whole pipeline in one product and hands the repetitive work to AI. I started it in September 2025, built every part myself, and launched it in October 2026.
What I owned
- Product
- AI agents
- Backend
- Data
- Video pipeline
- Frontend
- DevOps
- Founded the company and run it as CEO.
- Built every part as the sole engineer: the data layer, sourcing and enrichment, video rendering, sending integrations, the in-app agent, the MCP server and the web app.
- Wrote the 15-stage outreach playbook the agent follows, from discovery and ICP to launch and replies.
The pipeline
Each stage is a product feature and an agent tool. The diamonds mark approval gates: the agent proposes the plan and its credit cost, and nothing runs until the user agrees.
Define the ICP
The agent reads the client's website, works out who their best buyers are, and saves the approved business profile and ICP to memory so it never asks again.
Source leads
The ICP decides the source. Counting is free, so the agent sizes the audience before anyone spends a credit.
Contact database200M+ records by role, industry, company size and location. The default for SaaS, agencies and professional firms.Google MapsLocal businesses found over a map grid through rotating proxies, then enriched to find the decision maker.Plan and approval before any scrape or import
Qualify
An LLM scores every lead against the campaign's ICP and copies the fits into a shortlist, best first, one per company.
Verify emails
The user picks valid-only or catch-all too, and each survivor gets a verification status.
Approval before verification spends credits
Personalize
One webcam recording becomes a video per lead: the bubble over a scroll of the lead's own website, with a voice-cloned greeting that says their name. Personalized first lines and one email template per list complete the message.
Launch
Leads, lines and video links go to the user's sender (PlusVibe, Smartlead, Instantly or EmailBison), or the clip goes out as a Zoom share.
Approval before any real mail goes out
Handle replies
Replies come back to the user, and the playbook's last stages cover reply handling and what to test next.
The agent layer
The same pipeline is exposed to two kinds of agent, and both follow the same rules.
In-app strategist
Works through the staged playbook, asks each stage's questions in one batch, shows plans as cards for approval, and hands all writing to dedicated copywriting tools. It replies in English, Bangla or Banglish.
- discovery
- icp
- positioning
- targeting
- database
- qualify
- verification
- video
- personalization
- copy
- outreach
- launch
- replies
- testing
MCP server
54 tools let an outside agent such as Claude run a campaign end to end. The outside agent writes the copy itself, and the server checks it against the same writing rules.
get_memoryread_websitesave_business_profilecount_contactsimport_contactsstart_enrichmentverify_emailsset_fit_scorescreate_shortlistset_personalized_linessave_email_templatecreate_campaignsend_to_platformlaunch_platform_campaign
How a paid step runs over MCP
| Step | What happens |
|---|---|
| count_contacts | Free. The agent checks the audience size for the ICP filters. |
| import_contacts | Returns a proposal with its credit cost. Nothing is imported yet. |
| user approves | Reviews the plan and the cost in chat, and agrees. |
| confirm_action | Runs the approved import and returns a job id at once. |
| get_contact_import | The agent checks the job by id instead of waiting on a long call. |
Guardrails
Spending and sending only propose
Tools that cost credits, send real mail or delete data return a plan. They run only through
confirm_action, after the user agrees.Free estimates come first
Counts and campaign and verification estimates cost nothing, so the agent prices a plan before asking for approval.
Long jobs are asynchronous
Scrapes, imports, enrichment and verification return an id the agent checks later, so no call blocks on a slow job.
Writing rules are checked on the server
The agent reads the rules before writing, and the save tools apply the same rules and say exactly what to fix.
Outside text stays data
Website and lead text in tool results is marked as data, never instructions, which blocks prompt injection from scraped pages.
No secrets in chat
Users connect Zoom accounts, proxies and sending platforms in the dashboard. Keys never pass through the agent.
Approved context persists
The business profile and ICP live in a memory file the user approved, so every session starts from what's already decided.
Facts are never invented
The agent may not make up results, pains or triggers, and it labels any guess as a hypothesis.
Hard problems
Keeping 200M+ records fast to search
- Lead search, 200M+ records
- 25 s+→< 100 ms
- Great Britain filter: 93 ms
Problem
The lead database lives in PostgreSQL. Rows are clustered by country, so sorting by id walked tens of millions of rows before the first match.
For broad filters the planner chose sequential scans that ran into those clusters: a Great Britain search took over 25 seconds and timed out.
Approach
- Search reads matching ids through the indexes in a read-only transaction, with sequential scans switched off and no
ORDER BY. - Each set of matching ids is cached for 15 minutes under a hash of the filters, and identical searches in flight share one query.
- A page is a 50-id slice fetched by primary key, about 20 ms on the server.
Result
Single-filter searches run in under 100 ms on a cold cache, and the Great Britain search takes 93 ms.
Thousands of personalized videos on a small server
- Video render per lead
- 126 s→34 s3.7× faster
- Videos per worker, 4 vCPU VPS
- ~19 / hour
- Two workers double throughput
Problem
Every lead gets a video: the sender's webcam bubble over a scroll of the lead's own website, with a voice-cloned greeting that uses their name.
The first renderer piped every frame as a PNG into a single-threaded VP9 encoder, which fell about a minute behind per minute of video.
Approach
- Chrome's screencast now writes JPEG frames to disk with their timestamps while the page scrolls. Nothing is encoded live.
- Capture stops at the bottom of the page and the last frame is held, so a short site doesn't cost a full minute of capture.
- One FFmpeg pass builds the video: frames, fps, the masked webcam overlay, x264. A sales video is appended by stream copy in about 0.03 s.
- A planner spreads each batch across the user's Zoom accounts and days, within each account's daily cap.
Result
Render time per lead dropped from 126 s to 34 s on the same machine, 3.7× faster.
On a 4 vCPU, 8 GB VPS one worker makes about 19 videos an hour, and two workers double that.
An agent that is reliable and affordable
- System prompt served from cache
- ~15.9k tokens
- Every call after the first
Problem
The agent carries an 8.5k-token playbook and the user's memory into every call, and it can start paid jobs and send real mail.
Approach
- The system prompt is ordered for the provider's prefix cache: fixed instructions, then the playbook, then the user's
memory.mdlast. - An offline eval harness runs the real line writer, copywriter and scorer on real lists and reports rule compliance and agreement with hand-labeled fit scores, so prompt changes ship on numbers.
- Lead scoring sends 25 leads per call in JSON mode with 3 calls in flight, and reads back only a score and a short reason, so lead text can't steer the agent.
- Runs are resumable: approvals and questions pause the loop, and the model transcript and the UI event log are kept as separate logs.
Result
After the first call, the whole ~15.9k-token prompt, tools included, is served from cache.
Stack
- AI
- OpenAI API
- MCP SDK
- Tool calling
- JSON mode
- Prompt caching
- Evals
- Backend
- TypeScript
- Node.js
- Express
- Zod
- Data
- PostgreSQL
- MongoDB
- Redis
- BullMQ
- AWS S3
- Media
- Puppeteer
- Chrome DevTools Protocol
- FFmpeg
- Voice cloning
- Frontend
- React
- Vite
- Redux Toolkit
- React Query
- Mapbox GL
Outcomes
- Launched in October 2026. New accounts join from a waitlist and are approved by hand.
- One product covers ICP research, sourcing, qualification, verification, video, copy and launch.
- Any MCP-capable agent can run a campaign end to end, with a person approving every paid step.
What this shows
For teams hiring an AI Engineer or Forward Deployed Engineer:
- Agent design that holds up in production: tool-calling loops, approval gates, resumable runs, memory and prompt-injection defenses.
- Evals before prompt changes, and prompt caching to keep cost down.
- Data and media engineering at scale: 200M+ records and thousands of rendered videos on modest hardware.
- Full ownership from a customer's problem to a launched product, as a founder.