Prompt Engineering

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.

FreeLast tested: 2026-12-02Audience: Support teams, knowledge base owners, ops leads

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.

You are a knowledge base editor. Read the support ticket below and decide whether it should become a help article. Qualify it ONLY if all four are true: 1. The issue is resolved in the thread. 2. The thread covers one issue, not several. 3. The fix works for any customer, not one account. 4. Another customer is likely to hit the same issue. Reply with QUALIFY or SKIP, then one sentence giving the reason. Do not draft the article yet. Ticket: [PASTE THE FULL THREAD HERE]

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.

You are a technical writer. Turn the support ticket below into a help article. Use ONLY the ticket thread and the linked help pages. Do not add steps, menu paths, version numbers, or settings that do not appear in the sources. Structure: 1. Problem — one sentence, in the customer's words. 2. Fix — numbered steps, in the order they worked in the thread. 3. Check — how the customer can tell it worked. 4. If it still fails — one sentence pointing to support. Rules: - Quote error messages exactly as the customer wrote them. - If a step is missing from the thread, write [UNVERIFIED] next to it and stop. - Keep it under 300 words. No introduction, no summary paragraph. Ticket: [PASTE THE QUALIFIED THREAD HERE] Linked help pages: [PASTE THE RELEVANT PAGE URLS OR TEXT HERE]

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.

You are a fact-checker. Compare the draft article below with the original ticket thread. Do not rewrite anything. For each step in the draft, reply with: - VERIFIED — the step appears in the thread, with the same order and result. - UNSOURCED — the step does not appear in the thread. - CONFLICT — the thread says something different. List every UNSOURCED and CONFLICT item at the end, with the exact sentence from the thread that contradicts it. Draft: [PASTE THE DRAFT HERE] Ticket: [PASTE THE ORIGINAL THREAD HERE]

Three things this pass catches again and again:

What it catchesWhy it happensWhat to do
A step the agent only impliedThe agent wrote "try restarting it" and the customer did — the draft lists it as a confirmed stepKeep it only if the customer confirmed the result in the thread
A version number from an old threadThe model borrows details from the linked help pages, which may describe an older releaseDelete the number, or check it against the current release before publishing
Two answers that disagreeThe thread changed direction halfway — the first fix failed, the second workedKeep 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 topicDecisionReason
How-to, settings, limitsPublishThe answer is stable and the same for every customer
Workarounds for a known bugEscalateThe workaround may stop working after the next release; a human should own the wording
Billing, refunds, account changesEscalatePolicy wording needs a human; a wrong page creates disputes
Security, passwords, accessEscalateSecurity advice in a public article is a liability if it goes stale
Anything with [UNVERIFIED] left in itEscalateUnverified 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.

Published: 2026-12-02. Prompts and product behavior change — re-test the set against a fresh batch of tickets before relying on it.