OctiAI

Categories

Troubleshooting Decision Tree Template — One‑Shot Prompt

A single-copy prompt that produces production-ready, stepwise troubleshooting trees with exact commands, expected results, and clear escalation criteria for SaaS/ecommerce suppo...

What You'll Get

How to Use

Make the first checks ultra-fast and non-invasive

Design the top-level nodes to surface reproducible, customer-provided evidence (timestamps, request IDs, curl output) before any host-level or restart steps. This reduces unnecessary escalations and preserves logs for later forensic analysis.

Works Best With

Best used when you can supply targeted technical inputs and allowed remediation scope

Prompt Template


## Goal
- Produce a production-ready, stepwise troubleshooting decision tree that diagnoses and resolves the issue. The artifact will be a clear operational deliverable used by support engineers and on-call teams to reproduce checks, run prioritized diagnostics, execute exact commands/steps, interpret expected results, and apply escalation criteria with mapped severities.

## Inputs
- Context: {{meeting_context}}
- Stakeholders / audience: {{audience}}
- Document type: {{document_type}}
- Desired tone: {{tone}}
- Required sections to include in the final artifact: {{required_sections}}
- Technical inputs the generator should assume or request during clarification: high-level symptom ({{high_level_symptom}}), platform/environment ({{platform_environment}}), product/system details, known failure modes, recent logs/screenshots text, and allowed remediation actions.

If any of the technical inputs above are missing, the prompt in the next section must ask targeted clarifying questions before producing the decision tree.

## Prompt
You are a senior support engineer and troubleshooting author. Using the inputs below, produce a single, copy-paste troubleshooting decision tree deliverable that support agents can use verbatim.

- Target audience: {{audience}}
- Deliverable type: {{document_type}}
- Tone: {{tone}}
- Meeting/context: {{meeting_context}}
- Required sections: {{required_sections}}
- Issue to diagnose: "{{high_level_symptom}}"
- Platform / environment: "{{platform_environment}}"

Task requirements (must be followed exactly):
1. If any of the technical inputs (product/system, known failure modes, recent logs/screenshots text, allowed actions) are not provided, first output a concise list of clarifying questions to collect those details, then stop. Do not proceed until answers are supplied.
2. When inputs are complete, output a stepwise decision tree that includes:
   - A short summary of the symptom and environment (1-2 sentences).
   - "Collect these details" script: a compact customer-facing checklist of required data points to reproduce the problem (exact fields to capture, e.g., timestamps, full log snippets, config values, browser/OS versions, commands run, screenshots with filenames).
   - A numbered decision tree with nodes formatted as: Condition → Exact actionable check (including exact CLI commands, UI steps, API calls, or SQL queries where applicable) → Expected result/output → If expected result differs, next node reference or corrective action.
   - Prioritize checks from fastest/least intrusive to slowest/more invasive; mark steps that require customer permission or elevated privileges.
   - For each actionable step include: Estimated time to run, required privileges, and any data risk (e.g., may restart service, may clear cache).
   - Interpretation guidance: For each possible observed output, include concise diagnostic inference (1 line) and the next recommended action.
   - A clear escalation matrix with severity mapping (e.g., Sev-1/Critical → criteria, SLAs, who to page, communication template), and explicit escalation triggers (e.g., failed recovery after X steps, data loss, security indicators).
   - "When to escalate" decision rule: after which step(s), with counters/timeouts and exact evidence required to escalate.
   - A minimal post-resolution checklist: verification steps and customer message templates for successful resolution and for partial mitigations.
3. Format the decision tree so it is machine- and human-readable: use numbered nodes, consistent node IDs (e.g., 1.0, 1.1, 2.0), and short labels. Include a one-line summary at the top and an appendix listing exact commands/queries used.
4. Keep assumptions explicit: list which facts you assumed about the environment and which must be confirmed.
5. Produce outputs ready for direct distribution to stakeholders and on-call engineers (no placeholders left in the final output).

Return only the finished troubleshooting decision tree and ancillary sections specified above. Use concise, crisp language and avoid unnecessary prose.

## Output Format
Support: Diagnosis questions → Response draft → Next steps

- Diagnosis questions: compact "collect these details" script designed for support intake.
- Response draft: the decision tree and interpretation guidance, including exact commands/steps and expected results.
- Next steps: prioritized corrective actions, escalation criteria with severity mapping, and post-resolution checklist.

## Guardrails
- Separate facts vs assumptions: include an explicit "Assumptions" block listing any assumed versions, configs, permissions, or missing inputs.
- Do not claim policy or security conclusions without citing the exact evidence from logs or config lines provided in input.
- Mark any step that risks data loss or service interruption and require explicit customer consent before proceeding.
- If commands require elevated privileges, state the minimum required role.
- Do not include credentials, secrets, or personal data in outputs.

## Examples
Mini excerpt (decision → check → expected → next):
1.0 Symptom: Service returns 502 on API calls
- Collect: timestamp, full request ID header, curl -v output
- 1.1 Check: curl --header "x-request-id: <id>" -i https://api.example.com/health
  - Expected: HTTP/1.1 200 OK with JSON {"status":"ok"}
  - If 502 observed → 1.2
- 1.2 Check: On app host run sudo journalctl -u api.service -n 200 | grep -i error
  - Expected: no repeated "connection refused" errors
  - If repeated connection refused → infer: upstream dependency down → escalate to backend team (Sev-2) after 3 failed attempts within 10 minutes.

Variables

Usage Notes

Not for

Do not include

Troubleshooting Decision Tree Template — One‑Shot Prompt

One-shot prompt template that generates machine- and human-readable decision trees: reproducible checks, prioritized diagnostics, exact CLI/UI/API steps, interpretation guidance, and an explicit escalation matrix for support managers and senior agents.

Turn this into a working asset in minutes.

Import into Workspace to auto-fill variables, adapt output style, and iterate with OctiAI's prompt editor.

What you'll get

Output format

Markdown

Best used when

Avoid when

Sign in to save, like, or rate this prompt.

Made for

What to fill in

Use the guidance below to complete each placeholder with the right level of detail.

Meeting Context

Provide the key details needed for this variable.

Audience

Provide the key details needed for this variable.

Document Type

Provide the key details needed for this variable.

Tone

Provide the key details needed for this variable.

Required Sections

Provide the key details needed for this variable.

High Level Symptom

Provide the key details needed for this variable.

Platform Environment

Provide the key details needed for this variable.

Rules

Canonical Examples

Input: Intermittent 502 errors on checkout API during peak traffic on a Kubernetes-hosted SaaS checkout service (NGINX LB -> API pods -> Postgres). Audience: support engineers & on-call. Tone: direct/actionable. Document type: troubleshooting decision tree. Required sections: summary, collect details, numbered decision tree, escalation matrix, post-resolution checklist, assumptions, appendix.

Loading result...

Failed to load output.


1.0 Symptom: Checkout API returns intermittent 502 during peak. 1.1 Check LB health: curl -I ... → Expected 200. 1.2 On Kubernetes: kubectl get pods, kubectl logs ... → Expected no repeated upstream errors. Escalate to backend (Sev-2) after 3 failed recoveries in 15m or data-loss indicators.

Why it works: This example shows a complete, production-ready decision tree that support/on-call can copy-paste. It prioritizes quick, non-invasive checks first (LB health, 1-step curl), then pod-level logs and DB connection checks, marking steps that require elevated privileges or customer consent. It includes explicit escalation triggers and a short appendix with exact commands so agents can act immediately.

Input: User requested a troubleshooting decision tree template but only supplied meeting_context and document_type; missing high_level_symptom and platform_environment.

Loading result...

Failed to load output.


Support: Diagnosis questions → Response draft → Next steps

Diagnosis questions (required before producing the decision tree)
- Please provide the high-level symptom to diagnose (required). Examples: "Checkout API returns 502s", "Customers 

Why it works: This example demonstrates the prompt's required early-clarification behavior: it outputs a concise set of targeted technical clarifying questions and stops rather than producing an incomplete decision tree. It prevents hallucination by forcing required inputs before proceeding.

Works Best With

Best used when you can supply targeted technical inputs and allowed remediation scope