Skip to main content
A post can collect thousands of comments. Reading them all with a language model costs too much, so teams often read a sample. Here each comment is one small request with three questions: how it feels about the post, whether the commenter wants the product, and whether it is spam. You pay for the input tokens, the comment and your questions, and there is no output to pay for.

The decisions

Rewrite the descriptions for your own posts. Descriptions that say where one outcome ends and the next begins do most of the work (write good decisions). The context below is the comment alone, which keeps each request small. If your questions need the post, send it with the comment as JSON, such as {"post": caption, "comment": text}. Every comment then pays for the caption’s tokens too.

Price a post first

The estimate runs no model and charges nothing. Longer comments cost more, so price a few typical ones.

Score every comment

Each comment is one request. This runs as many at once as your tier allows, and paces them to stay under its requests limit. Score many texts explains the pacing and your tier’s limits.
Each comment’s idempotency key comes from its ID. Run the same comments again within 24 hours and the ones already answered come back without a second charge (retries and idempotency).

Add them up per post

  • Spam is set aside before the other counts, so bots don’t move them.
  • sentiment counts each comment once, under its likeliest feeling.
  • expected buyers adds up the probability of buying intent across comments. When the probabilities are well calibrated on your comments, that sum is the number of comments you can expect to show intent, with no threshold to choose. Check it on comments you have labelled.
Every threshold here, such as 0.5 for spam, is yours to set. Pick each one on comments whose answers you know (act on the answer).

What was measured

Nothing yet. These three decisions have no measured accuracy, unlike most recipes in this tab. Before you rely on them, label two or three hundred of your own comments, including spam, other languages and comments that only tag a friend. Then compare models on them. If the answers miss your audience’s way of writing, tune the wording or fine-tune a model on your labels.