PROMPT STRUCTURE.
Great prompts do not just ask AI a question. They give it a role, the right context, clear instructions, an example to follow, a format to return, and critical rules it must not break.
ROLE
Who should the AI be?
Set the perspective, expertise, and responsibility before giving the task.
CONTEXT
What does the AI need to know?
Provide relevant background, files, data, audience, references, and constraints.
TASK
What exactly should it do?
Break the outcome into explicit, ordered, measurable actions.
EXAMPLE
What should the result look like?
Show the desired style, structure, tone, or pattern — and what to avoid.
OUTPUT
How should the answer be returned?
Specify the exact format so the result is ready to use.
CRITICAL
What must not be forgotten?
Repeat non-negotiable requirements near the end and ask for a final check.
Start with the role
Tell the AI who it should act as, what that role means in this task, and what the overall objective is. This gives the model direction before the detailed instructions arrive.
Role: You are a [specific role]. Role explanation: Your responsibility is to [explain what the role should focus on]. Task: Your task is to [describe the desired outcome].
Analyze this support ticket.
The AI does not know the priority rules, available evidence, desired action, or response format.
You are an AI support-triage analyst. Classify this ticket using the supplied priority rules, identify missing evidence, and return a concise JSON recommendation without inventing facts.
Do not just tell AI what to make. Tell it who it is and what success looks like.
Give it useful context
Context is the information AI needs to perform the task correctly instead of guessing. Include relevant images, documents, websites, code, data, previous work, brand guidelines, audience, examples, constraints, and background information.
CONTEXT You are reviewing support tickets for a SaaS application. Use the following priority definitions: - P0: service unavailable or widespread data loss - P1: a major feature is unusable for one or more customers - P2: how-to questions, minor bugs, and feature requests The product notes say that report exports can fail when a workspace has more than 10,000 records. The current incident status is unknown. The ticket, account details, and incident status are the source of truth. The output will be reviewed by a support engineer, so distinguish confirmed evidence from assumptions and identify missing information.
Relevant context is better than more context. Do not dump unrelated information into the prompt.
Break tasks into steps
Tasks are the most important part of a prompt. Explain exactly what the AI should do and how it should do it. A sequence of smaller actions gives the model a process, not just a vague outcome.
TASKS 1. Read the ticket and identify the customer's core problem. 2. Compare the evidence with the supplied priority definitions. 3. Assign P0, P1, or P2, and explain the decision. 4. Extract the product area, error details, and missing evidence. 5. Recommend the next diagnostic or support action. 6. Draft a brief customer reply based only on confirmed facts. 7. Return the result in the required JSON schema. 8. Check that no unsupported fix, timeline, or account detail was added.
Instead of “make it fast,” request optimized images, fonts, animations, and component loading. Instead of “make it professional,” request consistent typography, hierarchy, whitespace, restrained motion, accessible contrast, and responsive layouts.
If a requirement matters, write it explicitly. Do not expect AI to infer it.
Add one example
Examples show the AI what you mean. They are especially useful for subjective requirements such as writing style, design, code structure, tone, and formatting.
EXAMPLE RESPONSE
INPUT:
"Our team cannot export the quarterly report. It fails with error
E402 after we select CSV. We need this for a meeting in two hours."
DESIRED:
{
"summary": "CSV export fails with error E402 for a quarterly report.",
"priority": "P1",
"product_area": "Report exports",
"evidence": ["CSV export", "error E402", "meeting in two hours"],
"next_action": "Request the workspace ID and check export incident status.",
"customer_reply": "Thanks for reporting this. Please share your workspace ID and the approximate time of the failed export so we can investigate."
}
AVOID:
"This is a confirmed platform outage and will be fixed before your meeting."
Do not convert urgency into an unsupported incident or promise.This gives the model a concrete input-output pattern, shows how evidence should be separated from assumptions, and demonstrates what a safe response must avoid.
Specify the output
A technically correct response is not always useful. Tell AI exactly how you want the answer returned so you receive something structured and ready to use.
OUTPUT FORMAT
Return valid JSON and no additional commentary:
{
"summary": "one-sentence problem summary",
"priority": "P0 | P1 | P2",
"product_area": "affected feature",
"evidence": ["confirmed detail"],
"next_action": "recommended support action",
"customer_reply": "reply under 60 words"
}WHY IT MATTERS
Output instructions prevent a long essay when what you need is structured data that another person, workflow, or application can reliably review or process.
Repeat critical instructions
Important requirements can get lost inside a long prompt. Repeat critical constraints near the end, especially for coding agents, large documents, complex design tasks, and multi-step workflows.
CRITICAL
Before completing the task, verify that:
- The classification is supported by the supplied evidence.
- Do not invent an incident, fix, timeline, or account detail.
- Clearly identify what information is missing.
- Return exactly the requested JSON structure.
- Keep the customer reply concise and empathetic.
- Confirm that every critical instruction has been followed.If a requirement matters, say it at the beginning and repeat it under CRITICAL at the end.
THE COMPLETE FRAMEWORK.
ROLE → CONTEXT → TASK → EXAMPLE → OUTPUT → CRITICAL
PUT IT ALL TOGETHER.
Here is a complete example for an AI support-triage assistant. It combines every part of the framework and keeps the result grounded, structured, and safe to use in a real workflow.
ROLE
You are an AI support-triage analyst.
Your responsibility is to classify incoming support tickets, identify
the customer's actual problem, and recommend the next action without
inventing facts or promising an outcome we cannot verify.
CONTEXT
You work for a SaaS product with three support priorities:
- P0: service unavailable or widespread data loss
- P1: a major feature is unusable for one or more customers
- P2: how-to questions, minor bugs, and feature requests
Use only the ticket, the product notes, and the incident status
provided below. If the evidence is insufficient, say so.
TASK
1. Summarize the customer's problem in one sentence.
2. Classify the ticket as P0, P1, or P2.
3. Extract the product area and any reproducible error details.
4. Recommend the next action for the support team.
5. Draft a concise reply that is empathetic and does not overpromise.
EXAMPLE
GOOD:
The customer cannot export a report after the latest update.
Priority: P1
Next action: Request the workspace ID and export error timestamp,
then check the export service incident status.
AVOID:
The export bug is fixed and engineering is deploying a patch today.
This invents a resolution and a timeline that were not provided.
OUTPUT
Return valid JSON with exactly these keys:
{
"summary": "string",
"priority": "P0 | P1 | P2",
"product_area": "string",
"evidence": ["string"],
"next_action": "string",
"customer_reply": "string"
}
CRITICAL
- Use only the supplied evidence.
- Never invent an incident, fix, timeline, or account detail.
- If priority is uncertain, explain what evidence is missing.
- Keep the customer reply under 60 words.
- Validate that the response is valid JSON before finalizing.REUSABLE PROMPT CHECKLIST