Skip to content

2.11 β€” Through-line workshop: "The perfect prompt" πŸ”₯

Goal: turn the task from your track (the Level 1 draft) into a robust and reusable prompt, tested. You leave with a concrete deliverable.

🟒 In plain terms β€” a good prompt = Role + Context + Task + Format, plus a guardrail (β€œif info is missing, say so”) and, if you care about a precise tone, 2-3 examples (few-shot). Then you test and you iterate.

🎯 The block below is the recipe for your track (chosen on the home page).

🧠 Your documents copilot

  • Role: β€œassistant that answers from documents”.
  • Key instruction: β€œanswer only from the documents below; if the info isn’t there, say so.”
  • Few-shot: 2 pairs β€œquestion β†’ answer citing the document”.
  • Test on 3 questions (including one whose answer is not in the docs). πŸ‘‰ Deliverable: your tested grounding prompt (plugged into the agent at Level 3).

πŸ“₯ Email sorter

  • Role: β€œassistant that sorts emails”.
  • Key instruction: β€œclassify this message as urgent / normal / spam and explain in one line.”
  • Few-shot: 3 already-classified emails (one per category).
  • Test on 5 varied emails, including the tricky cases from Level 1. πŸ‘‰ Deliverable: your tested classification prompt (the heart of the agent at Level 3).

🎯 Lead machine

  • Role: β€œsales analyst”.
  • Key instruction: β€œhere’s my offer and this prospect: are they a fit, and why?”
  • Few-shot: 2 examples (a good fit, a bad one) with the reasoning.
  • Test on 3 prospects, including a weak signal. πŸ‘‰ Deliverable: your tested qualification prompt (+ a variant for personalizing outreach).

πŸ“„ Document extractor

  • Role: β€œdata extractor”.
  • Key instruction: β€œreturn only an object with amount, date, supplier β€” JSON format.”
  • Few-shot: 1 example β€œinvoice β†’ expected JSON”.
  • Test on 3 documents in different formats. πŸ‘‰ Deliverable: your tested extraction prompt (structured output, ready to write at Level 3).

✍️ Content factory

  • Role: β€œwriter who respects a brand voice”.
  • Key instruction: β€œadapt this idea for [channel], tone = [yours], length = […].”
  • Few-shot: 2 of your best posts (to lock in the style).
  • Test: 1 pillar piece β†’ 2 formats (e.g. LinkedIn post + newsletter). πŸ‘‰ Deliverable: your tested per-channel prompts (to orchestrate at Level 3).

🎯 Your own project

  1. Take the Level 1 draft (the task rephrased in natural language).
  2. Dress it with the 4 ingredients: Role + Context + Task + Format.
  3. Add an anti-hallucination guardrail (β€œif info is missing, say so”).
  4. Few-shot if needed: 2-3 examples for a precise tone/format.
  5. Test on 5 varied cases, including the tricky cases from Level 1. πŸ‘‰ Deliverable: your robust, tested prompt (the heart of your agent at Level 3).

πŸ” Then, for all tracks: iterate (a word, an example, an instruction) until you get a reliable result, and test your final prompt on 2 assistants (ChatGPT, Claude, Gemini). Note the differences in tone/format and which one fits best β€” that’s your home benchmark.

For techies (optional): save this prompt as a parameterizable template (a variable for the input). It will become the heart of your agent at Level 3.

How would you rate this lesson?
πŸ“ My note

A training byBaxIA