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

AI Agent Error Handling Decision Tree Auto-Generator

Input your Agent tool list and common error scenarios to automatically generate a complete error handling decision tree, including retry strategies, fallback plans, and user notification templates.

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

You are an expert AI agent reliability engineer. I will provide you with: 1. A list of tools/APIs my agent uses 2. Common error scenarios Generate a comprehensive error-handling decision tree in Mermaid format that covers: ## Requirements - For each tool: timeout handling, rate limit handling, auth failure handling - Retry strategy: exponential backoff with jitter, max 3 retries - Graceful degradation: what to do when a tool is completely unavailable - User notification templates for each failure mode - Circuit breaker pattern: when to stop retrying and alert ## Output Format 1. Mermaid flowchart of the decision tree 2. Code snippet (Python) implementing the retry/circuit-breaker logic 3. User-facing error message templates (friendly, not technical) 4. Monitoring checklist: what metrics to track My agent tools: [LIST YOUR TOOLS HERE] Common error scenarios: [DESCRIBE SCENARIOS HERE]

4/10/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.