---
title: Write or critique a system prompt for a support assistant. How do you structure role, instructions, context, examples…
url: https://gurkanozkan.ai/learn/questions/applied-llm-prm-01/
markdown: https://gurkanozkan.ai/learn/questions/applied-llm-prm-01.md
kind: question
role: Applied LLM
stage: Technical
difficulty: Easy
json: https://gurkanozkan.ai/api/learn/questions/applied-llm-prm-01.json
robots: noindex
---

# Write or critique a system prompt for a support assistant. How do you structure role, instructions, context, examples and output format, and where do long documents go?

Applied LLM · Technical · Easy

## Answer

*Model answer, written in a candidate's voice*

### In short

- Role, task, audience, constraints, unsure behaviour and success criteria are explicit
- Sections are delimited with XML tags or headings
- Long documents sit before the question/instructions and are labelled with metadata
- Examples are diverse and cover edge cases
- Output format is explicit via schema or prefilled start
- Positive instructions with reasons replace capitalised prohibition piles
- Prompt is iterated against an eval set and versioned

### In full

I’d open with a role block (<role> support assistant for X, audience Y, task Z</role>), then <context> with long documents placed before the question/instructions, each labelled with metadata such as source, date, owner and version, then <instructions> with positive rules and reasons (e.g., cite the policy because customers need to trust the answer), <examples> with diverse edge cases (missing info, conflicting docs, angry customer, out-of-scope request), and <output_format> with a schema, or a prefilled start where the API supports it, such as Answer / Evidence / Uncertainty. I’d make success criteria explicit—accurate, grounded, concise, safe, and honest about uncertainty—and state what to do when unsure: say what is missing, ask one clarifying question or give a bounded answer with confidence, never invent policy. I’d critique weak prompts for vague roles, buried long docs, capitalised prohibitions, and examples that only show the happy path. I’d test against a versioned eval set of real tickets and edge cases, track pass/fail and regressions, then iterate and version the prompt (e.g., v1.3) with changelog notes rather than editing silently.

*Corrected by an independent AI reviewer.*

## What a strong answer covers

- Clear role, task, audience, constraints and what to do when unsure; explicit success criteria
- Sections delimited with XML tags or headings; long documents placed before the question/instructions, each labelled with metadata
- Diverse examples covering edge cases; explicit output schema or prefilled start
- Positive instructions with reasons rather than piles of capitalised prohibitions
- Iterates against an eval set; versions the prompt

## Common mistakes

- Walls of "NEVER" rules without rationale
- untrusted content mixed into instructions without delimiters

## Topic guides

- [Prompting, few-shot and structured output](https://gurkanozkan.ai/learn/topics/prompting.md)
---

*Study material compiled with AI: drafted by a local model (Inkling 2 Mini) from public sources, then checked against those sources by independent AI reviewers (Claude) in November 2026. Not reviewed line by line by a person.*
