A sales machine on autopilot

How a skill sets up the sales operation an agent runs: from positioning to the enriched lead, and back through the loops.

A sales machine is not a campaign. It is an operation that runs every day: understand the product, write, attract, enrich whoever arrives, qualify by usage and use each customer to bring the next. Here an agent does the repetitive work, and people decide what goes out.

One day of the machine

Requests arrive at any time and are enriched right away. In the morning the agent reads usage and hands over the day's leads. At night it writes the next batch of articles. A new release triggers a reread of the product. Every week the loops and the report come out.

00h03h06h09h12h15h18h21h24hAccess requestsUsage signalsLeads to the teamNew releaseArticle ideas

The whole machine

Left to right: where the data comes from, the routines the agent runs, what each one delivers and where a person decides. Hover an item to see its path.

Sources
Product filescode, docs, release notes
Access requeststhe site's form
Product usageevents per account
Active customersproviders, invites, cases
Site and contentvisits and reads
Agent routines
Understandingfacts and message up to dateevery release
Article ideasdrafts in the gapsdaily
Enrichmentcard and lane for the requesteach request
Usage signalswho hit the buying signaldaily
Loopsintegrations, invites, contentweekly
Reportfunnel, coverage and findingsweekly
Outputs
Fact ledgerlive, coming, internal
Positioningpromise, personas, words
Draftsarticles with FAQ and next step
Request cardcompany, goal, lane
Lead with contextpath taken, suggested message
Next integrationthe one customers ask for most
Machine reportone HTML, opens offline
Where people decide
Approves the messagebefore any text
Picks what shipsnothing ships on its own
Approves invitesfor the assisted lane
Talks to the leadpeople do the selling
Prioritizes integrationswhat goes on the roadmap
Changes the rulesconfig and spec first

The cycle, end to end

The six stages in sequence. At stage 03 the path splits: self-serve gets the invite right away, assisted goes through a person. Stage 06 returns to the start through the three loops.

01 Feed
Writesarticles, releases, integrations
Publishesa person picks
02 Attract
Access requestgoal, company, providers
Enrichescard and lane
03 Activate
Instant inviteself-serve lane
Approves the inviteassisted lane
04 Qualify
Lane checklistsample account, no risk
Buying signalagreed number
05 Convert
Lead cardpath and context
Talkswith someone already using it
First purchasebecomes a customer
06 Feed back
Integrationscustomers' providers
Invitescustomers bring peers
Contentreal cases and questions
The idea in one sentence: the product takes the person to value, the agent prepares each step with context, and a person always decides what goes out and who to talk to.

Next: the operation, pipeline by pipeline →

Each job of the machine is a pipeline: a trigger, the agent's steps, a check and the point where a person decides. This is one possible design, not a copy of any company. The skill writes yours from your product's files.

Pipeline · Understanding

From the product's files to the message

Why: nobody sells well what they cannot explain. The agent reads the whole product and writes one message that everything else uses.

agent accessreads only the files you point to; writes only in the machine's folder; never calls the network.

Input
Code and docswhat the product does
Release noteswhat changed
Team noteswhat customers ask
Explore
Fact ledgerevery fact with a sourceexplore
Sort
Livecan go into public text
Comingas 'soon', or left out
Internalnever leaves the house
Position
Positioningmain customer, promiseposition
Persona matrixby each one's job to be done
Check
Checkfacts only, nothing forbidden
Decision
Approvesthe owner reads and edits
Used by
Articles and pagesthe same story
Team manualsales and brand
Lead cardseach company's fit
Pipeline · Content

From the product to the published article

Why: loose posts bring nobody. Each text starts from a gap, shows value to one persona and ends in a next step.

agent accessreads facts, positioning and the article index; writes drafts; never publishes.

Trigger
Every dayfixed time
New releasesomething went live
Pick
Gapspersona × stage × loop without text
Write
Draftsvalue, loop hook, FAQarticle-ideas
Check
value-audit2 to 4 value elements
Failedfixes or records the finding
Decision
Picks and editswhat is worth shipping
Publish
Publishesblog, help, social
Measure
Reads and requestswhich text brought whom
Pipeline · Leads

From the access request to the enriched card

Why: a request with context turns into a good conversation. Without it, it turns into a generic email nobody answers.

agent accessreads the requests and the company's public pages; writes the card; never contacts anyone on its own and keeps no personal data beyond what the person sent.

Input
Access requestgoal, company, providers, referrer
Enrich
Company sitesegment, size, what it sells
Providerswhich integrate, which are missing
Historyarticles read, who referred
Classify
Persona and laneself-serve or assisted
Fitwhat it solves for this company
Card
Request cardsummary, lane, first message
Decision
Instant inviteself-serve lane
Approvesassisted lane
Then
Activationsample account and checklist
Integrations loopa missing provider gets counted
Pipeline · Qualification

From usage to a lead with context

Why: a lead is someone already using the product, not someone who filled in a field. The team steps in at the agreed signal and arrives knowing the path the person took.

agent accessreads usage events aggregated per account; writes the card and a draft message; a person does the talking.

Signal
Usage eventschecklist steps, actions
Check
Buying signalthe lane's numberdaily
Stalled accountstuck at one step
Build
Lead cardgoal, path, providers
Help on the stepthe article that unblocks it
Suggest
First messagedraft with the company's case
Customer successdecides whether to send
Decision
Talksa person on the team
Outcome
First purchasebecomes a customer
Not nowthe reason becomes an article or a priority
Pipeline · Loops

From the customer to the next request

Why: a funnel ends at the customer. The machine uses each group of customers to bring the next one. The metric is new requests per activated cohort.

agent accessreads named providers, invites and cases; writes the ranking, page specs and ideas; a person prioritizes and publishes.

Cohort
This month's customersactivated cohort
Signals
Providers namedcounted per request
Inviteswho brought whom
Use caseswhat worked, with permission
Agent
Integration rankinghow many customers each unlocksweekly
Case ideasfor the content pipeline
Decision
Prioritizeswhat goes on the roadmap
Write
Integration pagespec line by line
Publish
Livewhen the integration ships
Attract
New requeststhe provider's customers, referrals
Pipeline · Measurement

From the week to a tuned machine

Why: the machine only improves if someone reads the numbers and changes the rules in the right place, not in the middle of a text.

agent accessreads the machine's folder and aggregated numbers; writes the report; changes rules and spec only with approval.

Read
Funnel by stageentry and exit of each
Coveragepersona × stage with text
Findingswhat failed the check
Report
Reportwhat is missing, what to confirmweekly
Decision
Decides what changesrule, signal, priority
Change
config.jsonrules and signals
Machine specroutines and workflows
Sweep
Re-sweepevery text against the new rule
Run
Routinesrun the new machine
Notice what repeats: the agent reads and prepares, a check holds back what is wrong, and every output to the world goes through a person. No pipeline publishes, invites to the assisted lane or sends a message on its own.

Next: how to set it up →

From zero to a running machine

sales-machine-scaffold is a skill for coding agents such as Claude Code. It has no dependencies at all: it reads only the files you point to and writes only inside sales-machine/. What it delivers at the end is the spec of the finished machine, which another agent loads to operate it.

  1. Copy the skill into your agent's skills folder.
  2. Run setup in the project with the product's files. The agent reads what it finds and asks what is missing.
  3. Run the sequence up to the report and answer whatever is left [to confirm].
  4. Approve the positioning. Everything after it uses that message.
  5. Run system-spec: out comes the machine in HCL and the operator's instructions.
  6. In an agent project, load system/operator.md and system/sales-machine.hcl, grant the access in the table below and schedule the routines.
  7. On every new release, run it again. Old versions stay in history/.
# copy the skill into your agent's skills folder
git clone https://github.com/devton/sales-machine-scaffold \
    .claude/skills/sales-machine-scaffold

# then, inside the project that holds your product's files
/sales-machine-scaffold setup
/sales-machine-scaffold explore
# ... position, machine, loops, article-ideas, landing, manual,
#     value-audit, system-spec
/sales-machine-scaffold report

The eleven commands

Each one is /sales-machine-scaffold <command> and can be rerun on its own.

  1. setupreads what it finds and asks the rest: how people get in, the main button, what never to say
  2. explorefact ledger with source and status
  3. positionmain customer, promise, persona matrix
  4. machinethe six stages, lanes and buying signals
  5. loopsintegrations, invites and content, with owner and metric
  6. article-ideasa batch of articles in the gaps
  7. landingwhat each page says, line by line
  8. manualbrand and sales manual, training outline
  9. value-auditchecks every text against the rules
  10. system-specthe finished machine, in HCL, for an agent to run
  11. reportone HTML that sums it all up and opens offline

The rules that keep the machine honest

Almost everything that goes wrong in a sale like this is text promising what the product does not do. So everything about the product lives in one file, sales-machine/config.json, and every text goes through these rules before it reaches a person.

RuleWhere it lives
Revenue stays in the houseneverSay and internalOnly: price, plan, limit, "free", "trial" and internal numbers never show up.
The button tells the truthaccess.primaryCta in every text. Invite-only never promises open sign-up.
Regulated topics in their own flowregulatedTopics: one true sentence, only where it is needed. Never sold as an absence.
Done is not liveexplore tags every fact: live, coming or internal. What cannot be confirmed stays [to confirm].
A lead is a usage signallanes[].buyingSignal: one number per lane, agreed beforehand.
Every text feeds a loopvalue-audit requires 2 to 4 value elements, a loop hook, an FAQ and the right button.
{
  "access": {
    "mode": "invite-only",
    "primaryCta": "Request access",
    "forbiddenCtas": ["Create your account", "Sign up free"]
  },
  "lanes": [
    { "id": "self-serve", "buyingSignal": "<N uses in 30 days>" },
    { "id": "assisted",   "buyingSignal": "<first real purchase>" }
  ],
  "neverSay": ["prices", "plans", "limits", "free", "trial", "customer names"],
  "internalOnly": ["revenue levers", "internal metrics"],
  "regulatedTopics": [
    { "topic": "identity checks",
      "rule": "<the only true sentence, inside the flow that needs it>" }
  ]
}

What the operating agent needs at hand

The skill installs and connects nothing. Another agent runs the machine, and it needs small access, one per job. This is the list the spec asks for, by function: pick the tool you already use.

FunctionWhat forAccess
Agent schedulerruns each routine on time or on an eventcreate and run its own tasks
Product repositoryfacts and release notesread only
Request formthe access requestsread requests
Public web pagesenrich the company cardread, no login and no personal data
Usage eventsbuying signals and stalled accountsaggregated numbers per account
Board or CRMhand the card to the teamcreate and comment, never close
Mailing listinvites and messagesdraft; a person sends
Site or blogarticles and pagespropose a change, never publish

The leads pipeline, in the spec

The spec describes the finished machine: who does what, when, with which input and output, and where it stops. HCL is used only because it is easy to read and validate. Nothing in it is executed; it is not infrastructure. This piece is the leads pipeline from part 2:

source "access_requests" {
  kind            = "form"
  path_or_channel = "<channel>"
  refresh         = "on event"
}

event "access_requested" {
  captures = ["goal", "company", "providers", "referrer"]
}

routine "enrich_requests" {
  on          = event.access_requested
  agent       = agent.operator
  runs        = workflow.lead_enrich
  delivers_to = handoff.request_card
}

workflow "lead_enrich" {
  inputs = [source.access_requests, "positioning.md", "loops.md"]

  step "company" {
    does = "Read the company's public pages: segment, size, what it sells"
  }

  step "providers" {
    does = "Match named providers with integrations; count the missing ones"
  }

  step "lane" {
    does = "Pick persona and lane, write the fit and a first message"
    uses = [rule.facts_only, rule.no_personal_data, rule.never_say]
  }

  outputs     = ["leads/<date>/<request>.md", "loops/providers.json"]
  review_gate = gate.lead
}

gate "lead" {
  checks  = ["only public company data", "lane named", "no promise outside the facts"]
  on_fail = "hold the card and hand it off with the FAIL"
}

handoff "request_card" {
  from     = agent.operator
  to       = role.sales
  artifact = "leads/<date>/<request>.md"
  when     = "assisted lane, after gate.lead passes"
}

Where the person steps in

The skill, its docs and a full example run on an open source product are in the sales-machine-scaffold repository.

greetz bebedaselva