Few-Shot Classification Prompt

A compact few-shot prompt for labeling text with balanced examples, an explicit label set, and an escape label.

few-shotclassificationexamples
Setup time30 minutes (estimate)
Estimated costExamples add input tokens to every call; keep the example set small.
ToolsNo specific tool (works with any chat model API)
VerificationNot yet independently verified

Guidelines

Prompt

Classify the support message into exactly one label:
billing | bug | feature_request | account_access | other

Message: "I was charged twice this month."
Label: billing

Message: "The export button does nothing on Safari."
Label: bug

Message: "Could you add dark mode?"
Label: feature_request

Message: "I can't log in after resetting my password."
Label: account_access

Message: "Do you have an office in Berlin?"
Label: other

Message: "{{message}}"
Label:

Evaluate against a labeled set of at least ~100 real messages and inspect the confusion matrix before deploying.

Failure modes

Markdown version: /blueprints/few-shot-classifier.md

Want a deeper build of this?

Vote for an extended, fully tested version (more tools, a full workflow file). Votes decide what we build next.

– votes

Get one fully built blueprint a week

A weekly email: one blueprint with config, cost, setup time and failure modes, plus a vote on what we build next.

Related blueprints