
I use Claude Code to build a cold email campaign in seven steps. Claude Code researches the market, ranks segments, defines personas, plans sourcing and drafts messages. Hermes builds and enriches the list. I review the evidence, choose the offer and approve the copy before anything goes out.
To show the workflow, I gave Claude Code one input: the Pipeline.tech website. The goal was to see what each skill produced and which decisions still needed me.
Set up the skills so each one passes context forward
I run Claude Code in the VS Code terminal. A skill is a saved set of instructions for a job I run often. I keep the steps in one conversation so each skill can use the output of the previous one. The market research informs segmentation, the segments inform personas, and the buyers’ problems inform the message.
For clients, I also give it onboarding notes, sales call transcripts and relevant sales assets. The repeatable instructions keep the steps consistent. The inputs give Claude the specifics of the business.
1. Research the business and its market
Start with enough evidence for the agent to understand what the company sells, who buys and what alternatives those buyers have. In my Pipeline.tech run, the market research skill returned a 19-page report from the website input. It covered the company, its market, competitors and possible win and loss patterns.
I check material details before using a report as context. A plausible claim about contract value or market size is still something to verify. The next skill will inherit anything I leave in the report.
2. Rank segments in the total addressable market
Segmentation takes the total addressable market (TAM) and turns it into smaller markets that can support different lists and messages. Mine ranked building materials and industrial distribution highest. SMB lending, investment banking, foodservice and payments also came back.
The skill scores market size, fit with the offer, how quickly the sale can move and potential deal value. I read through the order, remove segments I wouldn’t work and ask for tighter subsegments when the market is too broad. The output is a set of segments I can actually source and write to.
3. Define the ideal customer and the personas
I ask for personas inside the segments I want to test. For the top three segments in this run, the skill returned a 27-page document. It described situations such as a sales leader inheriting an aging rep team, a one-person marketing department or a second-generation business owner. The situation tells me what would make the offer timely.
A construction operations manager sees missed deadlines and schedule conflicts every day. A CFO at the same company has a different reason to care. I check that each role exists at the companies I’m targeting, that the pain is real and that I understand how the person influences the purchase.
4. Plan where to find the companies and contacts
The sourcing skill identifies where the right companies show up. For building materials, it returned industry directories and the Google Places API alongside general B2B databases. For lending, it surfaced state Uniform Commercial Code filing indexes.
I check what each source can contribute before building a list. A small industry directory may be useful in combination with other sources. Each source needs a reason to be in the plan, and the lead builder needs to know what counts as a match.
5. Give Hermes a small, specific list request
Hermes is a Slack-based agent my team uses to find and enrich accounts and contacts. In this run, I attached the persona and sourcing documents and asked it to start with 20 building materials companies in the northern United States and two contacts per company. I chose the personas and started with free, public sources.
The first result included company, state, category, fit, estimated revenue, contact role and the evidence for the match. I then asked for enrichment. Hermes proposed a plan for approval and returned work emails with verification and sources, plus contact details where it found them.
Start with a sample you can inspect. Open the evidence column and check that the listed company and person match the actual request before asking for more. My Hermes lead generation workflow covers that handoff in detail.
6. Draft messaging and iterate on the strongest offer
I give the messaging skill the segment, the buyer’s problem and the offers I can deliver. My messaging skill asks for short emails, lowercase subject lines and an offer in the first message. I ask for several different approaches so I can judge the underlying idea.
For building materials distributors, the best first draft offered a map of contractors the distributor’s team wasn’t reaching. Other drafts focused on a retiring rep, the cost of hiring a new rep or revenue concentration. I picked the territory coverage angle and asked for three new versions that kept the same offer.
The offer needs to hold up outside the prompt. I check that my team can actually deliver the map and remove draft figures without a source. When I have a version worth working on, I move it into a Google Doc for a final edit.
7. Review the list, the claims and the offer before launch
I approve the work at each handoff because later steps build on earlier decisions. Before the campaign goes live, I check six things.
The market report describes the company and its offer accurately.
The selected segments are ones I’d want as customers.
The personas exist and have a real stake in the problem.
The sourcing plan can produce the right accounts.
A sample of the lead list contains evidence for fit and contact role.
Every number in the copy is supportable, and every asset offered is something the team can deliver.
My team uses this sequence to save research time while keeping the decisions that affect the buyer in human hands. It’s one application of the process in my AI-automated cold email stack. Start with one segment, look closely at a small list, and review the message before expanding the run.
If you’d like help building your outbound system, book a call with Pipeline.tech.




