PromptItIn logoPromptItIn
Prompt building

Few-shot prompt formatter

Showing the AI two or three examples is often the fastest way to get the answer you want. Add yours here and copy a prompt laid out so the model follows the pattern.

Free tool · Updated

Example 1
Example 2
Layout
Few-shot prompt

Write the task and at least one example, and the prompt shows here.

How to use it

  1. Write the task, or tap Try an example.
  2. Name your input and output, like Review and Sentiment.
  3. Fill in two to five examples. Add the new input if you have it.
  4. Pick a layout and copy the prompt.

Tips

  • Three to five varied examples work better than many similar ones.
  • Cover the tricky cases, like a mixed review, not only the easy ones.
  • Keep every output in exactly the same format. The model copies it closely.
  • XML tags work well with Claude. Labels work well everywhere.

Frequently asked questions

What is few-shot prompting?

Giving the AI a few examples of inputs and the outputs you want, so it copies the pattern for a new input. It's useful for sorting, extracting, rewriting and keeping a consistent format.

How many examples should I use?

Usually three to five. One example (one-shot) can work for simple formats. More than ten rarely helps and costs more tokens.

Which layout should I pick?

Labels are simple and work in any AI. XML tags keep long examples clearly apart and suit Claude. Markdown reads well in chat apps.

Is my text sent anywhere?

No. The prompt is put together in your browser.

Step-by-Step Prompt GeneratorWrap any question in a chain-of-thought prompt: step by step, plan first, break it down or check the answer. Show the reasoning or keep it apart. Free.Meta Prompt GeneratorDescribe your task and get a meta prompt: paste it into ChatGPT, Claude or Gemini and the AI asks you a few questions, then writes the best prompt for it. Free.Prompt Framework BuilderSay what you need, pick a framework like RACE, CO-STAR or RISE, and our AI writes a structured prompt with every part of the framework filled in. Free.AI Token CounterPaste any text to estimate its tokens, words and characters, and see how much of a 1M-token context window it fills. Free, private, runs in your browser.

All free tools

Want a full prompt, not just keywords?

PromptItIn turns a rough idea into a clear prompt for ChatGPT, Claude, Gemini or any image model. Free to start.

Open the prompt generatorAdd to Chrome, free