AI Agent Error Handling Decision Tree Auto-Generator
Input your agent's tool list and common error scenarios to automatically generate a comprehensive error-handling decision tree, including retry strategies, fallback plans, and user notification templates.
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]
How to use this prompt
- 1Copy the complete prompt above.
- 2Replace the topic, subject, or style variables.
- 3Save effective changes to build your own version.


