How To Use This Page
The templates below are starting points. Each one captures a pattern that has proven reliable across many tasks of the same shape. Copy the relevant template, fill in the placeholders in curly braces, and refine from there. None are meant to be perfect for your specific case; all are meant to be 80 percent of the way to a working prompt. The patterns are grouped by task shape, not by domain. A classification prompt looks the same whether you are classifying support tickets or legal clauses; the differences live in the labels and the input, not in the structure. Many of these patterns are the same skeletons that power the PANTA OS Apps library.Classification
The job: take an input, assign it to one of a fixed set of categories.- Multi label. Replace “exactly one” with “all that apply” and switch the output to a comma separated list.
- Hierarchical. Two stage chain: first classify into a top level category, then into a subcategory within that top level.
- With confidence. Add “Then on a new line, give your confidence on a 1 to 5 scale” for high stakes classification.
Extraction
The job: pull structured information out of unstructured text.- Quote the source. Add a
_sourcefield for each extracted value containing the verbatim quote it was drawn from. Useful for audit and verification. - Multi entity. When the input contains multiple entities (e.g. multiple line items on an invoice), wrap the schema in an array and add a rule about how to identify entity boundaries.
- Schema validation. Combine with the structured output features of the API for guaranteed valid JSON.
Summarization
The job: condense a longer text into a shorter one while preserving the important content.- Executive summary. Three sections: headline (one sentence), key findings (one paragraph), implications (one paragraph). Total 250 to 300 words.
- TL;DR. A single sentence at the start, followed by three to five bullets, followed by the next step.
- Multi document. Wrap each input in
<document>tags with metadata. Ask the model to identify common themes and contradictions across documents before summarizing.
Drafting
The job: produce a first draft of original content based on a brief.<style_example> tags. The model will pick up the voice more reliably than from any prose description.
Transformation
The job: convert content from one form to another while preserving meaning.- Translation. Source language to target language, with rules about terminology, formality register, and how to handle untranslatable terms.
- Format conversion. Markdown to HTML, prose to bullet list, transcript to meeting notes, regulations to plain English.
- Voice change. Formal to informal, technical to accessible, internal memo to public announcement.
- Compression and expansion. Long to short with the same information, or short to long with elaboration that is grounded in the source.
