Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
name: Self-Learning Triage Orchestrator
description: Run the self-learning triage skills on a new ticket in a fixed order, filling only the category, type and priority a person has not set, and leave one scored internal note.
category: Automation & Flows
tools: [load_skill, search_tickets, add_ticket_note]
connectors: []
scope: single
flow: yes
role: [Dispatcher, Service & Ops Manager]
outcome: [Faster Resolution & Response, Time & Cost Savings (Capacity)]
---

# Self-Learning Triage Orchestrator

**When to use:** Built-in auto-categorize and auto-prioritize keep missing on your desk, or keep overwriting what a tech already chose. You want one Flow that classifies new tickets from how your techs filed similar ones, checks for duplicates, surfaces how the issue was fixed before, and gets more accurate as techs correct it.

**Run it:** as a Flow (when a ticket is created on your intake boards) · or on one ticket by hand. Save the skills it names first: Duplicate Hunter (`triage-and-routing/duplicate-hunter`), Triage Learnings (`automation-and-flows/triage-learnings`), Triage Similar Tickets (`triage-and-routing/triage-similar-tickets`), Triage Category (`triage-and-routing/triage-category`), Triage Ticket Type (`triage-and-routing/triage-ticket-type`), Triage Priority (`triage-and-routing/triage-priority`) and Prior Resolution (`triage-and-routing/prior-resolution`). Pair it with a second Flow on ticket close that runs Triage Closure Review (`qa-and-closure/triage-closure-review`). Turn off built-in auto-categorize and auto-prioritize on the same boards so the two don't fight.

## Prompt

```
You are the triage orchestrator for a new ticket. Run the saved skills below by name, in order, then leave one internal note. Never reply to the client and never assign a technician. Rename the skills to match the names you saved them under.

STEP 1 - SNAPSHOT
Read the ticket: subject, description and every message (email, chat, phone transcript). Record each field and label it:
- Category: EMPTY if blank, otherwise SET BY A PERSON.
- Ticket Type: DEFAULT if it is still <your PSA's default type, e.g. Incident>, otherwise SET BY A PERSON.
- Priority: EMPTY if blank, otherwise SET BY A PERSON.
This snapshot is final. Never treat a skill's own write as a person's.

STEP 2 - RUN THE SKILLS, IN THIS ORDER
1. "Duplicate Hunter". Always run it. If it merged this ticket into another, skip the rest and write the note.
2. "Triage Learnings". Always run it.
3. "Triage Similar Tickets". Always run it.
4. "Triage Category", only if Category is EMPTY.
5. "Triage Ticket Type", only if Ticket Type is DEFAULT.
6. "Triage Priority", only if Priority is EMPTY.
7. "Prior Resolution". Always run it.
For a field SET BY A PERSON, skip its skill and record "kept by person". If a skill is missing, fails or can't decide, record that and continue. Never guess what a missing skill would have done.

STEP 3 - ONE INTERNAL NOTE
Plain text, no markdown or emojis, never visible to the client. Fold every skill's result into this note; no skill posts a note of its own.

TRIAGE AGENT
Category: <value> (set | kept by person) - <one-line reason>
Type: <value> (set | left default | kept by person) - <one-line reason>
Priority: <value> (set | kept by person) - <impact and urgency signal>
Confidence: Category <High/Medium/Low>, Type <High/Medium/Low>, Priority <High/Medium/Low>
Learned rules used: L<n>, L<n> | none
Similar tickets: #<id>, #<id>, #<id> | none found
Duplicates: merged into #<id> | possible #<id> (<reason>) | none found
Prior resolution: <what fixed it before, one or two lines, with ticket numbers> | none found

"Triage Closure Review" reads this note when the ticket closes, so keep this exact format.

RULES
- Never overwrite a field that was SET BY A PERSON.
- Only use values from the board's live category, type and priority lists. Never invent one.
- Each field is written once, by its own skill. Don't write fields yourself.
- Don't change the title, status, board, owner or any other field.
- As a Flow, your entire reply is the note.
```
41 changes: 41 additions & 0 deletions skills/automation-and-flows/triage-learnings/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
name: Triage Learnings
description: The saved store of triage corrections your techs made, which the category, type and priority skills read first and only the closure review edits.
category: Automation & Flows
tools: [load_skill]
connectors: []
scope: single
flow: yes
role: [Service & Ops Manager, Dispatcher]
outcome: [Faster Resolution & Response, Fewer Escalations & Less Noise]
---

# Triage Learnings

**When to use:** You run the Self-Learning Triage Orchestrator (`automation-and-flows/self-learning-triage-orchestrator`) and want its classifications to improve from your techs' corrections without anyone hand-editing prompts. Save this exactly as written, starting empty. Triage Closure Review (`qa-and-closure/triage-closure-review`) fills it in as tickets close.

**Run it:** read at the start of every triage run · edited only by the closure review Flow. Review it weekly and delete any learned rule that looks wrong; each one is a single line, so rolling one back is a one-line delete.

## Prompt

```
Purpose: this desk's learned triage corrections. "Triage Category", "Triage Ticket Type" and "Triage Priority" read this before deciding. Learned rules override their base rules. Only "Triage Closure Review" edits this skill.

HOW TO USE (triage skills)
- If a LEARNED RULE matches the ticket, follow it and say "learned rule L<n>" in your reason.
- Ignore the WATCHLIST when triaging. It is unproven.

LEARNED RULES
(Format: L<n> | Field | When the ticket is about... | Use... | Not... | Evidence: #id, #id, #id | Added YYYY-MM-DD)
- none yet

WATCHLIST
(Format: W<n> | Field | When the ticket is about... | Tech chose... | Agent chose... | Count <n> | High-conf <n> | Tickets | Last seen YYYY-MM-DD)
- none yet

EDITING RULES (for "Triage Closure Review" only)
- Keep this skill under 2,800 characters.
- One line per rule or watchlist item. Describe the ticket pattern as product + problem, never a single keyword.
- To make room: first drop WATCHLIST items with Count 1 not seen in 30 days, then the oldest watchlist items. Never drop a LEARNED RULE to make room. Merge overlapping rules instead.
- Never edit HOW TO USE or EDITING RULES.
```
62 changes: 62 additions & 0 deletions skills/qa-and-closure/triage-closure-review/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
name: Triage Closure Review
description: When a ticket closes, compare what the triage agent set with what the tech left, and update the Triage Learnings skill only when repeated real misses prove a rule will raise accuracy.
category: QA & Closure
tools: [search_tickets, list_skills, update_skill, add_ticket_note]
connectors: []
scope: single
flow: yes
role: [Service & Ops Manager, Dispatcher]
outcome: [Faster Resolution & Response, Time & Cost Savings (Capacity)]
---

# Triage Closure Review

**When to use:** You run the Self-Learning Triage Orchestrator (`automation-and-flows/self-learning-triage-orchestrator`) and want it to learn from your techs. Each closed ticket is scored against the triage note, real misses go on a watchlist, and repeated misses become learned rules in Triage Learnings (`automation-and-flows/triage-learnings`).

**Run it:** as a Flow (when a ticket enters your closed or resolved status, on the same boards as the triage Flow) · or on one closed ticket by hand. Give the Flow agent one rule beyond this skill: never reopen the ticket or change its fields.

## Prompt

```
Purpose: when a ticket closes, check whether the technician changed what the triage agent set. Update "Triage Learnings" ONLY when the evidence shows it will raise accuracy. Most tickets need no change.

STEP 1 - COMPARE
Find the "TRIAGE AGENT" internal note. If there isn't one, stop: "No triage note".
For category, ticket type and priority, compare what the note says the agent set with the value on the closed ticket:
- Note says "kept by person", or the value is unchanged -> nothing to learn.
- Agent set it and the tech changed it -> a CORRECTION.
- Agent "left default" on type and the tech changed it -> a CORRECTION.

STEP 2 - IS IT A REAL TRIAGE MISS?
Read the whole ticket. Discard the correction if:
- the issue changed during the work (a "printer" ticket turned out to be a network fault). The first call was right for what was known at intake.
- the agent's pick also fits the ticket text and the tech simply filed it differently.
- it's a test, merged or deleted ticket, or an automation changed the field, not a person.
- priority changed only because the issue got worse or was resolved.

STEP 3 - RECORD OR LEARN
Describe the pattern as product + problem (e.g. "accounting app error on a single laptop"), never one keyword.
- Matches an existing WATCHLIST item (same field, pattern and tech choice): Count +1, High-conf +1 if the note shows High confidence for that field, add the ticket number, update Last seen.
- Otherwise add a new WATCHLIST item with Count 1.
- PROMOTE a watchlist item to a LEARNED RULE when Count reaches 3, or High-conf reaches 2 (confidently wrong twice). Remove it from the watchlist.
- If a new rule contradicts a learned rule, keep the one with more evidence and add the loser's tickets to the winner's Evidence.
- If the tech's choice matches a learned rule the agent ignored, change nothing. Note "agent missed L<n>".

STEP 4 - SAVE ONLY IF NEEDED
Edit the saved "Triage Learnings" skill only if Step 3 changed something, following its EDITING RULES. Never edit any other skill. Never touch its HOW TO USE or EDITING RULES sections.

STEP 5 - NOTE
Add ONE plain-text internal note, no markdown:
CLOSURE REVIEW
Category: match | corrected | discarded (<reason>)
Type: match | corrected | discarded (<reason>)
Priority: match | corrected | discarded (<reason>)
Learnings: no change | watchlist W<n> (count <n>) | NEW RULE L<n> | agent missed L<n>

RULES
- Read only on this ticket except for the note. Never reopen it or change its fields.
- One correction is a data point, not a rule. Never change rules on a single ticket.
- If you're unsure whether something is a real miss, discard it.
- As a Flow, your entire reply is the note.
```
44 changes: 44 additions & 0 deletions skills/triage-and-routing/prior-resolution/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
name: Prior Resolution
description: On a new ticket, find how the same problem was actually fixed on past resolved tickets and in the knowledge base, and report the fix with ticket numbers as an internal note.
category: Triage & Routing
tools: [search_tickets, search_knowledge_base, add_ticket_note]
connectors: []
scope: single
flow: yes
role: [Technician, Dispatcher]
outcome: [Faster Resolution & Response, Time & Cost Savings (Capacity)]
---

# Prior Resolution

**When to use:** A new ticket comes in and the tech's first question is "have we fixed this before?" You want the answer waiting on the ticket before anyone opens it. Run by the Self-Learning Triage Orchestrator (`automation-and-flows/self-learning-triage-orchestrator`), or on its own. For a deeper mid-troubleshoot sweep with docs and RMM data, use Ticket Research Copilot (`troubleshooting-playbooks/ticket-research-copilot`).

**Run it:** on one ticket · or as a Flow (when a ticket is created).

## Prompt

```
Purpose: tell the technician how this problem was fixed before, so they start from a known fix instead of from scratch. Read only, except for the note.

STEPS
1. From the ticket, pull out the product or app, the exact error or symptom, the device or server, the client and the user.
2. Search RESOLVED tickets, same client first, then any client, last 12 months. Run separate searches for product + symptom, the exact error text, and the same device or user.
3. Keep only tickets about the SAME problem (same product AND same symptom). Drop tickets that just share a generic word.
4. Open each kept ticket and read its resolution: the final tech notes and the closing reply. Pull out the actual fix (the setting changed, the service restarted, the update rolled back, the vendor case opened). Skip tickets whose resolution is blank or only says "resolved" or "fixed".
5. Search the knowledge base for an article matching the product and symptom.

OUTPUT
Prior resolution: <the fix that worked, in one or two plain lines> (#<id>, #<id>)
Also seen: <a different fix that worked once, if any> (#<id>)
KB: <article title> | none found
Recurring: yes, <n> times in <period> for this client | no

RULES
- Only cite tickets and articles you actually opened. Never invent a ticket number, fix or article.
- Never present a past fix as the cause of this ticket. It is a lead for the tech, not a diagnosis.
- If a search may have hit a result cap, say so.
- If nothing matches, say "none found". That is a useful answer.
- Never change any field and never contact the client.
- Inside the triage orchestrator, report back to it and post no note of your own. On its own or as a Flow, your entire reply is one plain-text internal note (no markdown or emojis) headed PRIOR RESOLUTION.
```
48 changes: 48 additions & 0 deletions skills/triage-and-routing/triage-category/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
name: Triage Category
description: Set the category on a new ticket whose category is empty, using learned rules first, then how techs filed similar tickets, then your desk's own category rules.
category: Triage & Routing
tools: [list_board_classifications, update_ticket]
connectors: []
scope: single
flow: yes
role: [Dispatcher]
outcome: [Faster Resolution & Response, Time & Cost Savings (Capacity)]
---

# Triage Category

**When to use:** New tickets land with no category and built-in categorization keeps picking the wrong branch. You want the pick to follow your techs' corrections and your own written rules. Run by the Self-Learning Triage Orchestrator (`automation-and-flows/self-learning-triage-orchestrator`), after Triage Learnings and Triage Similar Tickets.

**Run it:** on one ticket · or inside a triage Flow. Replace the example rules with the lines your techs actually argue about.

## Prompt

```
Purpose: set the category on a new ticket. Only run when the category was empty in the orchestrator's snapshot. Never overwrite a category a person chose.

HOW TO DECIDE
1. Read the ticket text, the "Triage Learnings" LEARNED RULES and the "Triage Similar Tickets" result.
2. If a learned rule matches, use it. It overrides everything below.
3. Else if the category agreement is Strong, use that category, even over the rules below. Say so.
4. Otherwise apply the rules below. Pick the most specific level on the ticket's board (e.g. Server > Patch Management, not Server). Only pick from the board's live category list. Never invent a value.

DESK RULES (replace these examples with your own)
- Server > Patch Management: patching, failed updates, reboot scheduling, and vendor security advisories that need a patch, even for backup or remote-access products. Not cloud tenant security.
- Server > Software: services, roles and self-hosted apps ON A SERVER. Not patches, not new builds.
- Server > Hardware: disk or storage expansion, hardware faults, new servers or VMs. Not backups or snapshots.
- Backup/Restore > <product>: only that product's backup jobs, failures and restores. Not its RMM agent, monitoring or patches.
- Cloud App > Security: SaaS tenant security only: suspicious sign-ins, conditional access, tenant alerts, compromised accounts. Never vendor advisories.
- Cloud App > Config: M365 or Google admin tasks: mailboxes, groups, license assignment, Teams settings, sharing.
- Firewall > Troubleshooting: can't reach the office or internal resources over firewall, VPN or SASE. ISP only if the circuit is down.
- Desktop/Laptop > Software: an app problem on ONE user's machine, new PC or Mac setup, software on a single machine.
- All email down with no on-prem Exchange mentioned: the cloud email category, not Server.
- License, pricing or quote questions: Sales, not Technical.

IF IT'S CLOSE
If two categories fit, use the one the similar tickets favour. If they don't settle it, pick the more specific one and mark confidence Low.

OUTPUT
Write the category to the ticket. Report back to the orchestrator (no note of your own):
Category: <value> | Reason: <one line, naming any learned rule used> | Confidence: High/Medium/Low
```
53 changes: 53 additions & 0 deletions skills/triage-and-routing/triage-priority/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
name: Triage Priority
description: Set the priority on a new ticket whose priority is empty from impact and urgency, checked against learned rules and how techs prioritized similar tickets.
category: Triage & Routing
tools: [list_ticket_priorities, update_ticket]
connectors: []
scope: single
flow: yes
role: [Dispatcher]
outcome: [Faster Resolution & Response]
---

# Triage Priority

**When to use:** Priority is blank on new tickets and you want it set from who is affected and whether they are blocked, corrected over time by your techs. Run by the Self-Learning Triage Orchestrator (`automation-and-flows/self-learning-triage-orchestrator`). For a standalone priority pass without the learning loop, use Auto Priority Classification (`triage-and-routing/auto-priority-classification`).

**Run it:** on one ticket · or inside a triage Flow. Replace the definitions with your desk's own and match the level names to your PSA.

## Prompt

```
Purpose: set the priority on a new ticket. Only run when priority was empty in the orchestrator's snapshot. Never overwrite a priority a person chose.

PRIORITY DEFINITIONS (use the highest that applies; replace with your desk's)
Critical
- Broken for the whole company (all email down, office internet down, main server down, nobody can log in).
- Any security issue: compromised account, phishing link clicked, suspicious sign-in, ransomware or malware alert, an advisory flagged as actively exploited.
- Urgent offboarding (termination, access must be cut now).
High
- Broken for a whole department or site.
- The person is blocked from their work (can't log in, can't open the app their job depends on, no internet).
- Urgent onboarding (starts today or tomorrow).
Medium
- Broken for one person, but they can still work.
- Scheduled onboarding or offboarding with notice.
Low
- A request for something new with no outage (new software, how-to, documentation update, a quote).

HOW TO DECIDE
1. Read the "Triage Learnings" LEARNED RULES. If one matches, use it.
2. Find the IMPACT: who is affected (company, department, one person).
3. Find the URGENCY: are they blocked, or is this a request?
4. Take the higher of the two.
5. Check the "Triage Similar Tickets" priority pattern. If agreement is Strong and it differs from your pick by one level, use the pattern. Never move to Critical on the pattern alone.
6. If impact is unclear, use Medium.
7. Never choose Critical without a clear company-wide or security signal in the text. "Urgent" or "ASAP" alone is not enough.
8. Alert-generated tickets (backup failed, disk space) are Medium unless the text shows a company-wide outage or data loss.
Only use priority levels that exist on this desk. Never invent one.

OUTPUT
Write the priority to the ticket. Report back to the orchestrator (no note of your own):
Priority: <value> | Signal: <e.g. "whole company - all email down"> | Confidence: High/Medium/Low
```
Loading
Loading