Skip to content

Answer threads

Each week, the 10 Reddit, Hacker News and X threads where buyers ask about your problem, each answered helpfully as you, every claim checked.

Kind
Agent task
Price
$2.30 per 10 answers
Your time
12 minutes
Approval
Goes out on its own
Post.answer
You, to your agent

Answer 10 Reddit and Hacker News threads this week where landlords ask how to track rent, spend up to $3, and show me the plan first.

curl -X POST "https://api.sb/leaseline.app/posts/answer?mode=try" \
  -H "Authorization: Bearer $SB_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"goal":"Answer 10 Reddit and Hacker News threads this week where landlords ask how to track rent, spend up to $3, and show me the plan first.","budget":{"amount":3,"currency":"USD"}}'
npx startup-builder do Post.answer --try --data '{"goal":"Answer 10 Reddit and Hacker News threads this week where landlords ask how to track rent, spend up to $3, and show me the plan first.","budget":{"amount":3,"currency":"USD"}}'
{
  "name": "do",
  "arguments": {
    "mode": "try",
    "code": "return await $.Post.answer({ goal: 'Answer 10 Reddit and Hacker News threads this week where landlords ask how to track rent, spend up to $3, and show me the plan first.', budget: { amount: 3, currency: 'USD' } })"
  }
}
import { $ } from 'startup-builder'

const result = await $.try.Post.answer({ goal: 'Answer 10 Reddit and Hacker News threads this week where landlords ask how to track rent, spend up to $3, and show me the plan first.', budget: { amount: 3, currency: 'USD' } })
Response
{
  "mode": "try",
  "stored": false,
  "estimate": "About $2.30 per 10 answers",
  "sample": {
    "venue": "Reddit",
    "thread": "r/Landlord: how do you track who paid?",
    "answered": "yes",
    "named the product": "no",
    "replies": "3 by day 2"
  }
}
Try mode reads, stores nothing and spends nothingAPI referenceIts Nouns

What you get

  • 10 answers · Each week, the 10 Reddit, Hacker News and X threads where buyers ask about your problem, each answered helpfully as you, every claim checked. · Post
  • read · Threads read this week.
  • fit · Threads that cleared the fit score.
  • posted[] · Each answer: site, thread, URL, and whether it named the product.
  • held[] · Each fit thread not answered, with the reason, such as a thread full of tool pitches, where one more would read as an ad.

Connect once: Reddit, Hacker News, X account. How long: About 10 minutes.

Trigger

It runs weekly, and when a problem post lands on a Monitor over your phrases.

TypeScript
every.week(($) => $.Post.answer({ phrases: 'from-map', venues: ['reddit', 'hacker-news', 'x'], take: 10 }))

Steps

Your agent does these steps, one row per step; each step’s check is part of its row and its price.

StepVerbReturnsPriceApproval
1. Search the problem phrases on each siteKeyword.searchThreads from the last 7 days that ask about the problemAbout 3.8¢Runs on its own
2. Judge each thread’s fitCollection.queryA relevance score per thread, with the line that shows the asker has the problemAbout 20¢Runs on its own
3. Write each answer as youContent.draftAn answer that helps first, in your voice, naming the product only when the thread asks for toolsAbout 12¢Runs on its own
4. Post on Reddit and Hacker News as youPost.publishEach answer live in its thread, read back; X answers go through your account at $0About $1.92Goes out on its own
5. Read the replies two days laterKeyword.searchReplies to each answer, which hand a reply that asks for more to Answer every inboundAbout 1.9¢Runs on its own

Calls: Keyword.search, then Collection.query, then Content.draft, then Post.publish, then Keyword.search.

About $2.30 per 10 answers, each time it runs, capped at $3.00.

Example: give it a goal

Answer 10 Reddit and Hacker News threads this week where landlords ask how to track rent, spend up to $3, and show me the plan first.

The plan it shows runs 5 steps, priced before it spends anything; Run it above shows the result it returns.

When something fails

Each failure, and what happens next
WhenThen
An answer fails the gradeIt is rewritten once with the findings; a second failure holds the thread with the reason, and that answer is not billed.
A site removes an answerIt is recorded with the stated reason, and the agent reads that community’s pinned posts again before its next answer there.
Fewer threads clear fit than takeIt answers the ones that clear it and stops: “only 7 cleared the fit line” is a finished week.
You call it twice for one threadIt never posts twice in a thread: it is idempotent per thread.

Each step retries three times, then falls through to the next route; one item's failure lands in skipped with its reason, never failing the call. Before a step would cross maxCost it stops and returns what it has, with a resume link. Each step's idempotency key is the call's key plus the step and the item: leaseline-post-answer-1-<step>-<item>.

How it is graded

A second model reads each answer beside the thread, the best answers already in it and your offer. It passes when it answers the asker before it mentions anything, every claim holds against your records, and it reads like the thread’s best answers. A miss is redone at no charge.

Change it

AskCompiles to
Only Reddit, and never name the product.Post.answer
Answer within an hour of a new thread, not weekly.Monitor.create
Turn the best answer into a page on my site.Page.answer
TypeScript
import { $, workflow } from 'startup-builder'

export default workflow({
  name: 'post-answer',
  verb: 'Post.answer',
  input: { phrases: "string[] | 'from-map'", venues: 'string[]', take: 'integer', fit: 'number' },
  trigger: { schedule: 'weekly' },
  maxCost: 3,
  grade: { evaluator: 'the thread, its best answers, the Offer', passWhen: 'helps first; every claim holds; reads like the best answers', remedy: 'redo' },
  execute: async (ctx, { phrases = 'from-map', venues = ['reddit', 'hacker-news', 'x'], take = 10, fit = 0.7 }) => {
    const threads = await ctx.step('find', () => $.Keyword.search({ keywords: phrases, venues, since: '7d', kind: 'problem-question', maxCost: 0.05 }))
    const ranked = await ctx.step('judge', () => $.Collection.query({ rows: threads, score: 'fit', min: fit, limit: take }))
    const answers = []
    for (const t of ranked.rows) {
      const draft = await ctx.step(`write:${t.id}`, () => $.Content.draft({ kind: 'reply', thread: t, from: 'offer', mention: 'when-asked', maxCost: 0.02 }))
      answers.push(await ctx.step(`post:${t.id}`, () => $.Post.publish({ replyTo: t.url, body: draft.body, maxCost: 0.25 })))   // graded before it posts
    }
    return { read: threads.length, fit: ranked.rows.length, posted: answers }
  },
})

Extend it with extends: 'Post.answer' and base(), or compose your own from these steps.

Works with

Plays that order it: Community answers, Engagement bridge, Give before you ask, Owned community, Tools on request.

It serves Publish and post, and runs in Hands-on, Launch and search. It deepens Content marketing.

For agents

For agents: the guide, its approvals, retries and lookups
FactValue
GuidePost.answer
Guide approvallimits
GoalAnswer 10 Reddit and Hacker News threads this week where landlords ask how to track rent, spend up to $3, and show me the plan first. It may change counts, the order of steps, soft filters and the route a read takes, and it stops early when the goal is met. It never relaxes your words, raises its own budget, answers its own approval, calls a Play or acts outside your standing approval.
Triggerevery.week(($) => $.Post.answer({ phrases: 'from-map', venues: ['reddit', 'hacker-news', 'x'], take: 10 }))
RetryThree times with backoff, then the next route; the same idempotency key never charges, sends or posts twice
Idempotency keyleaseline-post-answer-1
LookupsA find: input asks unless exactly one record fits
Step
1. Search the problem phrases on each site
2. Judge each thread’s fit
3. Write each answer as you
4. Post on Reddit and Hacker News as you Action class publish
5. Read the replies two days later

The amounts live once, on the hub (approvals).

Who does each step, and how it is checked
StepFunctionDoerCheckerAssuranceInputs
1. Search the problem phrases on each sitecodeCodeCode checks each result against its declared typemeasured$0.phrases, $0.venues
2. Judge each thread’s fitagenticThe Content lead agentA second model grades the outputgraded$1.threads, $0.fit
3. Write each answer as youagenticThe Content lead agentAdversarial review by a second model: Pass, or held with the reason, such as a tool mention in a thread that asked for nonegraded$2.fit, offer, $0.mention
4. Post on Reddit and Hacker News as youagenticThe Content lead agentCode reads the result back from where it landedmeasured$3.passed
5. Read the replies two days latercodeCodeCode checks each result against its declared typemeasured$4.urls

The doer is never the checker, and the weakest assurance on the path is the whole call’s.

Under the hood

Under the hood: the Systems, Nouns and Events it touches
KindWhat it touches
SystemsSites and content, Social
NounsKeyword, Collection, Content, Action, Post
EventsCollection.queried, Content.drafted, Action.evaluated, Post.published

Reference

Inputs, outputs, its Event and its errors
NameTypeDefaultMeaning
phrasesstring[] | 'from-map''from-map'The problem in the buyer’s words, or the question-form terms from your Keyword opportunity map.
venuesVenueId[]['reddit', 'hacker-news', 'x']Where to look and answer.
takeinteger10Answers a week, at most. It never pads: 7 good threads means 7 answers.
fitnumber0.7The relevance score a thread needs, 0 to 1: a buyer asking about the problem, not a rival’s promo thread.
mention'never' | 'when-asked''when-asked'Name the product only when the thread asks for tools.
maxCostnumber3.00The most this call spends each time it runs, in USD. It stops before a step would cross it and returns what it has, with a resume link.

Emits Post.answered. Refuses with max-cost before it spends, and with the Data calls and Accounts groups (refusals).

Contents