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
- Take the Level 1 draft (the task rephrased in natural language).
- Dress it with the 4 ingredients: Role + Context + Task + Format.
- Add an anti-hallucination guardrail (βif info is missing, say soβ).
- Few-shot if needed: 2-3 examples for a precise tone/format.
- 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.
π My note
A training byBaxIA