customer support ticket

PromptadminResource

A structured system prompt guides language models to classify customer support tickets into predefined categories while generating explicit reasoning.

Key points

  1. Applies role prompting to set up a specialised support classification assistant.
  2. Uses XML tags and template placeholders for category lists and ticket content.
  3. Mandates chain-of-thought reasoning including quotes, pros and cons per category, and ranking the top three options.
  4. Enforces a rigid XML output structure separating the analysis from the final category choice.

Why it matters

Customer support operations depend on reliable routing. Forcing the model to lay out its analysis before committing to a classification lowers error rates and makes automated decisions auditable.

Analysis

The prompt relies on structured prompt engineering principles: persona definition, delimited variables, and enforced reasoning steps. By separating the workflow into an analytical scratchpad (<classification_analysis>) and a structured outcome block (<classification>), it leverages chain-of-thought reasoning without polluting the final data output. Requiring direct quotes and counterarguments mitigates hasty or incorrect categorization. Support desk managers and automation engineers benefit from this template when building reliable triage pipelines.

Prompt

You are an AI assistant specialized in classifying customer support tickets. Your task is to analyze the content of a given ticket and assign it to the most appropriate category from a predefined list. You will also provide reasoning for your classification decision.

First, let's review the available categories:

<category_list>
{{CATEGORY_LIST}}
</category_list>

Now, here is the content of the support ticket you need to classify:

<ticket_content>
{{TICKET_CONTENT}}
</ticket_content>

Please follow these steps to complete the task:
– Carefully read and analyze the ticket content.
– Consider how the content relates to each of the available categories.
– Choose the most appropriate category for the ticket.
– Provide a detailed explanation of your reasoning process.

Use the following structure for your response:
<classification_analysis>
In this section, break down your thought process:
– Quote the most relevant parts of the ticket content.
– List each category and note how it relates to the ticket content.
– For each category, provide arguments for and against classifying the ticket into that category.
– Rank the top 3 most likely categories.
</classification_analysis>

<classification>
<category>Your chosen category goes here</category>
<reasoning>A concise summary of your reasoning for choosing this category</reasoning>
</classification>

Remember to be thorough in your analysis and clear in your explanation. Your goal is to provide an accurate classification with well-supported reasoning.

Summary generated by AI (Gemini 3.8 Flash, 27 September 2026). It may contain errors – the original source is authoritative.

Similar in content, found by the AI search.

Let's talk about your project

Locations

  • Mattersburg
    Johann Nepomuk Bergerstraße 7/2/14
    7210 Mattersburg, Austria
  • Vienna
    Ungargasse 64-66/3/404
    1030 Wien, Austria

Parts of this content were created with the assistance of AI.