PROMPT ENGINEERING FOR SUPPORT TICKETS TO KNOWLEDGE BASE
Every resolved support ticket already contains a help article — the question, the diagnosis, and the fix, written in the customer's own words. The slow part is turning that thread into a page a stranger can follow. A small set of prompts can do the drafting, if the prompts are told what to keep, what to leave out, and when to stop. This guide gives you that set: triage, draft, fact-check, and a publish-or-escalate rule.
Start with triage, not drafting
Most tickets should never become articles. A ticket about one customer's expired card, a one-off outage, or a thread that ends with "let me check with engineering" has nothing reusable in it. Drafting from those threads produces pages that confuse the next reader. The first prompt in the set is a gate, not a writer: it decides whether a ticket qualifies at all.
A ticket qualifies when all four of these hold: it is resolved, it covers one issue, the answer does not depend on one customer's account, and the same question is likely to come up again. Anything else stays in the inbox.
Run this prompt over a batch of resolved tickets and the pattern becomes clear fast: the tickets that qualify are usually the short, boring ones — a setting in the wrong place, a step in the wrong order, a limit the customer did not know about. The long, dramatic threads almost never qualify, because the fix was specific to one setup. For the triage patterns behind this gate, see Prompt Engineering for Customer Support Automation.
The drafting prompt
Once a ticket qualifies, the drafting prompt turns the thread into a page. The prompt needs three things: the source material, the shape of the output, and a rule for what to do with gaps. The gap rule matters most. Without it, the model fills missing steps from general knowledge, and the article ends up describing a product that does not exist.
The [UNVERIFIED] marker is the whole point of this prompt. A draft with two marked gaps is useful — a human fills the gaps in minutes. A draft that silently invents the missing steps is worse than no draft, because it looks finished.
A second pass that checks facts
Never publish the first draft. Run a separate verification prompt against the same thread. Separating drafting from checking works because the second prompt has a different job: it is not allowed to write, only to compare.
Three things this pass catches again and again:
| What it catches | Why it happens | What to do |
|---|---|---|
| A step the agent only implied | The agent wrote "try restarting it" and the customer did — the draft lists it as a confirmed step | Keep it only if the customer confirmed the result in the thread |
| A version number from an old thread | The model borrows details from the linked help pages, which may describe an older release | Delete the number, or check it against the current release before publishing |
| Two answers that disagree | The thread changed direction halfway — the first fix failed, the second worked | Keep only the fix that resolved the ticket; cut the failed one |
If the checker returns more than two UNSOURCED or CONFLICT items, the ticket was a bad source. Discard the draft and pick another ticket — patching a bad draft takes longer than drafting from a clean thread.
Publish or escalate
Even a verified draft is not automatically publishable. Some topics should never become a self-service page, no matter how clean the thread is. The last prompt in the set is a decision, and its default answer should be "escalate" — publishing is the exception that needs a reason.
| Draft topic | Decision | Reason |
|---|---|---|
| How-to, settings, limits | Publish | The answer is stable and the same for every customer |
| Workarounds for a known bug | Escalate | The workaround may stop working after the next release; a human should own the wording |
| Billing, refunds, account changes | Escalate | Policy wording needs a human; a wrong page creates disputes |
| Security, passwords, access | Escalate | Security advice in a public article is a liability if it goes stale |
| Anything with [UNVERIFIED] left in it | Escalate | Unverified steps must be confirmed by a human before anyone reads them |
Escalated drafts are not wasted work. Send them to the person who owns the topic with the checker output attached — the draft plus the list of what could not be verified is a faster starting point than a blank page.
Keep the article alive
A knowledge base article is a promise that the steps still work. The promise breaks the moment the product changes or a new ticket contradicts the page. Build one habit into the workflow: whenever a new ticket contradicts a published article, link the ticket to the article and flag it for review instead of answering from memory.
Two triggers are enough to start with. First, a product release that touches a setting, a menu, or a limit mentioned in an article — re-run the fact-check prompt on that article against the release notes. Second, a ticket where the agent's fix differs from what the article says — that ticket is either a correction or a sign the article is out of date, and either way a human should decide which one. For the automation around this loop, see AI Workflow: Knowledge Base Documentation Automation.
One last detail: after publishing, point the support team's reply templates at the article instead of pasting the steps into every ticket. The next time the question arrives, the agent sends one link — and the article earns its keep by cutting the next ticket short. The same three-prompt habit applies to the products in the YesAI software library: the tickets change, the gate stays the same.
Related reading
Limits and notes
This guide contains no measured results — the prompts are templates to run against a team's own tickets, and the time saved depends on ticket volume and how many threads qualify. Treat the triage numbers as a starting point and adjust the gate after the first batch.
- Strip personal data first: never paste customer names, emails, account IDs, or payment details into a prompt. Redact the thread before it leaves the helpdesk.
- Human review before publish: the fact-check prompt catches invented steps, but it cannot judge policy or security. A human still approves every article, and billing or security topics always go to the person who owns them.
- Model output drifts: the same prompt can produce different drafts after a model update. Re-run the fact-check prompt on the published articles after any model change, and keep the original ticket linked to each article so the source is never lost.
Published: 2026-12-02. Prompts and product behavior change — re-test the set against a fresh batch of tickets before relying on it.