Give three sample abstracts to set criteria
Consistent screening decisions that match your inclusion logic, not the model's generic interpretation of "relevant".
Get dramatically better answers from any AI
A beginner-to-advanced ladder of prompting techniques, each taught through a weak → strong prompt pair: be specific, give context, assign roles, show examples, structure with tags, think step by step, and ground answers in your sources. 18+ copy-ready examples.
In this chapter you will learn how to shape AI output by combining techniques such as assigning roles, providing clear context and audience, specifying exact formats and lengths, and using delimiters or tags to separate instructions from data. You will also see how step‑by‑step reasoning, grounding answers in supplied documents, and self‑critique loops improve accuracy and auditability. By applying these methods you can produce reliable, structured results—from executive summaries and legal drafts to support replies and data pipelines—without the model hallucinating or deviating from your constraints.
This chapter teaches you to turn a vague ask into a prompt that gets a specific, useful answer on the first try. It works through thirteen techniques in order of difficulty, from the wording of a single request to the multi-step pipelines that chain several prompts together.
The beginner tier fixes the most common failure. "Summarise this" invites a generic essay; being specific about the audience, the length, and what to include leaves nothing for the model to guess wrong. Giving context and audience does the same job differently — the same question about a p-value gets a better answer depending on whether you say you're a first-year student or a peer reviewer. Specifying format and length turns "explain X" into three short paragraphs or a table, so you get something scannable instead of a wall of text.
The intermediate tier shapes the response, not just its content. Assigning a role — "you are a peer reviewer", "you are a sceptical CFO" — shifts the model's standards, not just its vocabulary, raising the bar above a generic "check this". Few-shot examples show the input-to-output pattern you want instead of describing it, which pins the format more reliably than words alone. Delimiters — tags wrapped around pasted text — stop the model confusing your instructions with the data you handed it, which matters when that data contains sentence-like instructions of its own. Constraints, paired with an explicit "if you don't know, say so", are the first defence against a confident, invented answer.
The advanced tier is for jobs harder than a one-off chat message. Chain-of-thought — asking the model to reason step by step before answering — catches wrong shortcuts on multi-step problems, though it only adds length on a simple lookup. Decomposing a task into a chain of prompts (extract, then cluster, then write) beats asking for everything at once, and each stage maps onto a separate node in an n8n workflow. Structured JSON output lets the next tool in that pipeline parse the answer directly instead of scraping text. Grounding — answer only from the pasted source, quote the sentence, say "not stated" otherwise — is the strongest defence against hallucination, forcing the model to point at evidence instead of recalling it from memory. Self-critique closes the loop: the model drafts, grades its own work against a checklist, then hands back an improved version.
None of this works alone on a genuinely hard task, which is why the final technique — putting it all together — stacks role, context, delimiters, constraints, format, and step-by-step reasoning into one prompt. Real work usually needs several of these at once. The chapter's worked examples carry this across different jobs: a scientist grounding an answer in a pasted methods section, a support team using chain-of-thought to triage a ticket before replying, an investor scoring a pitch deck as strict JSON, a recruiter chaining CV screening into a draft shortlist for a human to approve. The techniques stay the same handful throughout — only the job changes.
Combine specific prompts, clear context, role assignment, examples, tags, step‑by‑step reasoning, and source grounding to steer the model toward accurate, structured output.
Use step‑by‑step reasoning, ground the response in supplied documents, and include self‑critique loops so the model checks its output against your constraints before responding.
Say what you actually want
Summarize this paper.
Summarize this paper in 5 bullet points for a first-year student: the research question, the method in one line, the key finding (with the number), the main limitation, and why it matters.
Make this email better.
Rewrite this email to my supervisor to be more concise and polite. Keep it under 80 words, keep the meeting request, and remove the apologetic tone.
Is this result significant?
I'm a biology master's student. I ran a t-test and got p=0.04 with n=12. Explain whether this is statistically significant, what the small sample size means for how much I should trust it, and what I should check before reporting it.
Compare these three sequencing methods.
Compare Illumina, Nanopore, and PacBio sequencing as a markdown table with columns: method | read length | accuracy | cost | best use case. One short phrase per cell.
Explain CRISPR.
Explain CRISPR gene editing in exactly 3 short paragraphs: (1) what it is, (2) how the cut-and-repair works, (3) one real research use. Avoid jargon a high-schooler would not know.
Shape the response
Check my methods section.
You are a careful peer reviewer for a molecular biology journal. Review my methods section below for any detail missing that would stop someone reproducing the experiment. List each gap as a specific question.
Turn these notes into flashcards.
Turn these notes into Q&A flashcards. Follow this format exactly: Note: Mitochondria produce ATP. Q: What do mitochondria produce? → A: ATP. Now do the same for each note below: [your notes]
Classify these customer messages.
Classify each message as bug / feature-request / praise. Examples: "It crashes on save" → bug "Could you add dark mode?" → feature-request "Love the new update!" → praise Now classify: [messages]
Extract the genes mentioned in this abstract: [pastes a long abstract]
Extract every gene named in the abstract between the tags. Return only a comma-separated list. <abstract> …paper text here… </abstract>
What does this paper say about side effects?
Using only the text below, list the side effects reported. Do not add side effects from your own knowledge. If none are mentioned, reply exactly: 'None reported in this text.'
Reasoning & pipelines
A culture doubles every 3 min and fills the flask at 60 min. When is it half full?
A culture doubles every 3 min and fills the flask at 60 min. When is it half full? Think step by step, show your reasoning, then give the final answer on the last line.
Which of these two experimental designs is better?
Compare these two experimental designs. First list the assumptions each one makes, then the failure modes of each, then conclude which is better and under what condition.
Read these 20 papers and write me a literature review.
Stage 1 — for each paper, extract {method, finding, limitation} as JSON. Stage 2 (separate prompt) — given those 20 records, group them by method and write one paragraph per group with citations.
Pull out the key facts from this paper.
Return ONLY valid JSON, no prose and no markdown fences: {"title": string, "organism": string, "main_finding": string, "sample_size": number}
Does this paper support using CRISPR base editing for this disease?
Answer only from the text below. For every claim you make, quote the exact sentence it came from. If the text does not address the question, say so explicitly.
Summarize what the documents say about dosage.
Summarize what the documents say about dosage. After each point, add the source in brackets like [Doc 2]. Do not include anything not stated in the documents.
Write an abstract for my study.
Draft an abstract for my study. Then critique your draft against these criteria: ≤200 words, states the method, states the result with a number, no hype words. Then give the improved version.
Help me review this paper.
You are a critical peer reviewer in molecular biology. [role] I am a master's student deciding whether to cite this paper. [context] Using ONLY the text in <paper>…</paper>, do the following: [delimiters + constraint] 1. Think through the study's design before judging it. [chain-of-thought] 2. Then output a markdown table: claim | evidence in paper | how solid (1–5). [format] If a claim has no supporting evidence in the text, mark it "unsupported". [grounding]
Answer from memory, then scroll up to re-read anything you blank on.
A prompt that tells the model exactly what you need and who it is for.
You will be able to craft a prompt that includes specific background information and defines the target audience so the AI returns a relevant response.
A prompt that shows the model three labelled sample abstracts so it learns your relevance boundary.
Produce a single prompt that reliably tags new abstracts as Relevant, Not Relevant, or Borderline
A prompt that forces the model to reason through each part of a regression result before giving a conclusion.
Generate a multi‑step explanation of a regression output that can be verified line by line
A prompt that tells the model to act as a specific professional or persona.
You will be able to ask the model to respond from the perspective of an expert role, yielding more authoritative results.
A prompt that limits the model to answer only from provided text, quoting the supporting sentence or stating "not stated" when absent.
Obtain answers to methodological questions that are directly traceable to the supplied text
A prompt that provides one or more example input–output pairs to illustrate the desired pattern.
You will be able to include sample demonstrations in a prompt so the model mimics the format and style you need.
A multi‑part prompt that uses delimiters to separate instructions, data, and asks the model to reason stepwise while citing a provided excerpt.
You will be able to produce an answer that walks through logical steps and references specific source text you supply.
24 outcomes in all — one per recipe below.
Give three sample abstracts to set criteria
Consistent screening decisions that match your inclusion logic, not the model's generic interpretation of "relevant".
Unsure about a regression result
Visible reasoning you can check line-by-line, instead of a confident conclusion with no audit trail.
Need answers that stick to a pasted methods section
Answers traceable to the actual paper, not to training memory — essential before citing a claim in your own work.
Need a seasoned‑investor’s take on my pitch deck
Pointed, investor-perspective feedback that surfaces the questions your deck does not yet answer.
Need an Instagram caption that meets exact length and tone
A post that fits the platform and tone without back-and-forth trimming.
Intro misses the mark for experienced designers
An intro that resonates with your actual audience rather than an imagined average reader.
First draft of YouTube intro feels flat
A stronger draft produced autonomously, because the model reviews its own work before handing it to you.
Memo paragraph with weak evidence
A sharper memo paragraph where every claim is backed and logical gaps are closed before the document reaches the IC.
Medical instructions are confusing
A patient-friendly explanation you can hand out with confidence, because the constraint keeps every safety-relevant detail in place — you review the rewrite against the original before use.
A structured insight document produced reliably, because no single prompt tries to do extraction, synthesis, and writing all at once.
Multiple job ads in one prompt
Clean, per-role outputs with no cross-contamination between the documents.
Need a brand‑compliant, legally safe offer letter
Offer letters that need minimal legal review because the tone, structure, and restrictions were all stated upfront.
Long incident report
A reliable pipeline from incident prose to trackable tickets, with no action item lost in a single-prompt summary.
Need a LinkedIn search string for specific titles, skills and region
A working Boolean or X-ray string you can paste into LinkedIn Recruiter or a search engine in under a minute.
Need a CV shortlist that explains gaps and raises questions
A reasoned shortlist draft that surfaces the strongest candidates and flags gaps, while keeping the human in control of the final call.
Customer replies that sound like your business, not like a generic helpdesk template.
Month‑end variance data that goes straight into a spreadsheet
Machine-readable variance data that feeds downstream tools without manual reformatting.
Need a brief board‑ready financial recap
A summary that goes into the board pack without editing, because the constraints were stated precisely.
Need a quick, comparable scorecard for pitch decks
A consistent, machine-readable scorecard for every deck you review, with sourcing gaps surfaced before the partner meeting.
Need a consistent, copy‑paste standup update each week
A standup summary that drops straight into your template, consistent week to week.
Want a skeptical buyer to rip apart your pitch
A list of hard questions and weak spots in your pitch, found in a two-minute prompt rather than a lost deal.
Need a ready‑to‑send follow‑up email after a demo
A follow-up email you can send after one read-through instead of several rounds of edits.
Generic outreach gets ignored
A personalised InMail or email draft that references something specific to the candidate and avoids the phrases that get ignored.
Need a support bot that only uses the help article
Support replies that never promise something the docs do not say.
Support tickets lead to endless back‑and‑forth
Replies that identify the root cause first, reducing back-and-forth with the customer.
Need due‑diligence answers from a pasted CIM
Diligence answers traceable to the actual document, not to the model's training memory about the industry — critical before putting a fact in an investment memo.
Dictated encounter needs a structured note
A structured first-draft note in seconds that the clinician reviews, corrects, and signs — the AI drafts, the clinician remains fully responsible for the clinical record.
Vague request to summarize a paper
Vague prompts get vague answers. Name the exact output you want. Naming the length, audience, and the exact things to include leaves nothing for the model to guess wrong.
Model jumps to a shortcut on multi‑step word problems
Ask the model to reason before answering; accuracy on multi-step problems jumps. Forcing the steps out loud stops the model blurting a wrong shortcut (the flask is half full at 57 min, not 30).
I need a specific paper review
Real prompts stack the techniques: role + context + delimiters + constraints + format + thinking, all at once. No single trick is enough for hard tasks. Stacking role, context, structure, constraints, and step-by-step thinking is what separates a throwaway prompt from a reliable one.
When I need only the side effects listed
Tell the model what to avoid and how to handle gaps. Explicit limits and a defined "if you don't know" path are the single biggest defense against confident, made-up answers.
Need a plain answer to my t‑test
Tell the model who it is helping and what for — the same question gets a different, better answer. Context (who you are, the real numbers, your actual worry) lets the model pitch the depth correctly and answer the question behind the question.
Need a literature review from many papers
Break a big task into stages — and in n8n, each stage can be its own node. Smaller steps are more reliable and debuggable, and they map directly onto a multi-node n8n pipeline.
When instructions get mixed with pasted text
Separate your instructions from the data you paste, so the model never confuses the two. Tags make it unambiguous what is instruction vs. content — essential when the pasted text itself contains sentences that look like commands.
Want the model to follow an exact Q‑and‑A flashcard layout
Give 2–3 examples of the input→output you want; the model copies the pattern. One worked example pins the exact format more reliably than any description of it.
Want a clear side‑by‑side view of sequencing methods
If you need a table, a list, or a fixed length — ask for it explicitly. A requested structure gives you a scannable, consistent answer instead of a wall of text you have to re-read.
When you need a specific answer with sources
Make the model show its receipts. Quoting and citing forces the model to find real evidence instead of paraphrasing from memory.
Need reproducibility check of my methods
A persona activates the right vocabulary, depth, and standards. "Peer reviewer" shifts the model into reproducibility-checking mode and raises the bar far above a generic "check this".
My abstract is vague
Have the model grade and fix its own first draft. The second pass catches the weaknesses of the first — a cheap, automatic quality boost.
When I need the answer to feed another tool
When the answer feeds another tool, demand a strict schema. A strict schema lets the next n8n node parse the output directly, instead of fragile text-scraping.
The same set on /recipes, filtered by tool and role.
A tight walkthrough of Anthropic's own prompt-engineering workshop — the core moves in under half an hour.
What prompting looks like in real engineering practice — beyond the one-off demo prompts.
No — clarity beats length. Specifics help, but padding adds noise the model has to wade through. Give it the role, the context, the task, and the constraints it actually needs, then stop. A tight, well-structured prompt usually beats a long rambling one.
Be specific about the task, the audience, and the output you want. "Write about dogs" gets a generic essay; "In 5 numbered steps, explain crate training to a first-time owner, ≤150 words, no jargon" gets exactly what you need. Vague in, vague out.
It is asking the model to reason step by step before giving its answer ("think through it first, then conclude"). Use it for multi-step problems — maths, logic, planning, debugging — where the reasoning matters. For simple lookups it just adds length.
Ground it: paste the source material and tell it to answer using only that, to quote where possible, and to say "I don't know" when the answer isn't there. Most confident-but-wrong answers come from asking a model to recall facts from memory instead of giving it the facts.
Often they are the fastest quality boost. Showing one to three worked examples of the input → output you want lets the model copy the pattern and format precisely, which is far more reliable than describing the format in words.
Less fiddly than it was — you rarely need magic words. But clear instructions, the right context, and structure still change the output materially, and they matter most when the prompt drives an agent or a pipeline rather than a one-off chat.
Prompting is how you word the request; context engineering is what information the model sees and how it is organised. Prompt engineering is the natural first step — once your asks are clear, context engineering is the sequel.
RoleContextFew-shot examplesDelimiters / tagsConstraintsChain-of-thoughtPrompt chainingGroundingZero-shotHallucinationAsk, share, or report — over on the Heidelberg AI community forum.