๐ฏ Few-Shot Prompt Formatter
๐ ๅฎๅ
จ & ๅฎขๆท็ซฏๅค็
Add a system instruction and a list of input โ output examples. The tool emits a clean few-shot prompt in Markdown, Anthropic-style XML tags, OpenAI messages JSON, or plain text โ ready to paste into ChatGPT, Claude, or a script.
The tool reformats your text โ it does not call any AI provider. Review the output before sending to a paid API.
How to use
- (Optional) Paste a system instruction that defines the task or persona.
- Click + Add example to add input/output pairs. 3โ5 examples is typical for few-shot.
- Pick the output format:
- Markdown โ readable, good for chat UIs.
- XML tags โ Anthropic recommends
<example>tags around each pair for Claude. - OpenAI messages JSON โ array of
{role, content}objects, ready for the Chat Completions API. - Plain โ minimal, no markup.
- Click Format and copy the result.
For Claude / Anthropic, XML tags consistently improve adherence to the example structure. For ChatGPT, Markdown or messages JSON usually works best. The OpenAI format alternates user/assistant turns for each pair, which the API treats as conversation history.