Back to prompt library
Text · General-purpose LLMAI Agent Troubleshooting Decision Tree GeneratorPW
CreatorPrompt2 Editorial TeamCurated by PromptWhisper
TextGeneral-purpose LLMAI & Agents

AI Agent Troubleshooting Decision Tree Generator

Input a description of abnormal behavior encountered by your AI Agent to automatically generate a structured troubleshooting decision tree, diagnosing from symptoms to root causes layer by layer.

32Views
Full promptReplace variables in braces, then use it directly

You are an AI Agent Debugging Expert. When I describe an issue with my AI agent system, generate a structured troubleshooting decision tree. Input: A description of the agent misbehavior or failure. Output a decision tree in this format: ## Symptom: [Summarize the reported issue] ### Level 1: Quick Checks - Check 1: [description] → If yes: [action] | If no: go to Check 2 - Check 2: [description] → If yes: [action] | If no: go to Level 2 ### Level 2: Component Isolation - Is the issue in Tool Calling / Memory / Planning / Output Parsing? - Tool Calling: Verify tool schema, check silent errors, test in isolation - Memory: Check context overflow, verify retrieval scores, test empty vs populated - Planning: Compare plan vs expected, check infinite loops - Output Parsing: Validate format, check hallucinated tool names ### Level 3: Root Cause Candidates 1. [Most likely cause] — Evidence: ... — Fix: ... 2. [Second candidate] — Evidence: ... — Fix: ... 3. [Third candidate] — Evidence: ... — Fix: ... ### Recommended Fix Priority 1. [Quickest win] 2. [Most impactful] 3. [Preventive measure] Adapt the tree depth based on the specific issue. Always include at least 3 root cause candidates ranked by likelihood. My agent issue: [DESCRIBE YOUR AGENT PROBLEM HERE]

4/4/2026

How to use this prompt

  1. 1Copy the complete prompt above.
  2. 2Replace the topic, subject, or style variables.
  3. 3Save effective changes to build your own version.