Prompting & Workflows Intermediate Project 21 of 21

Build an AI Tool Troubleshooter with AI

Build a smart diagnostic tool that helps users debug AI workflows and choose the right tools for their problems.

What You'll Build

An intelligent error diagnosis system that interprets AI error messages and suggests fixes
A tool recommendation engine that suggests MCP servers vs plugins based on user needs
A workflow optimizer that designs multi-model AI solutions for complex problems
A step-by-step troubleshooting guide generator for common AI tool issues
An interactive Q&A system that asks clarifying questions to narrow down solutions

What You'll Need

Claude or ChatGPT

Either AI tool works perfectly. We'll be using advanced prompting techniques that both handle well.

Text Editor

Notepad, VS Code, or any text editor to save your generated HTML file and test the tool.

Step-by-Step Instructions

1

Create the Error Diagnosis System

First, we'll build the core component that can interpret AI error messages and provide solutions. This combines the error debugging knowledge with intelligent problem-solving.

Prompt
Create an HTML troubleshooting tool called "AI Tool Troubleshooter". Build a single-page application with these sections: 1. **Error Diagnosis Section**: - Input field for users to paste error messages - When they submit, show common AI error types (API limits, context overflow, connection issues, invalid syntax, authentication errors) - For each error type, provide specific solutions and next steps - Include a severity indicator (Low/Medium/High) 2. **Quick Error Reference**: - Create expandable cards for the 8 most common AI tool errors - Each card shows: Error pattern, What it means, How to fix it, Prevention tips Make it dark-themed with a clean, professional interface. Include CSS animations for smooth interactions. Use a modern color scheme with blues and greens.

What to look for: The AI should generate a complete HTML file with an error input system, reference cards for common issues, and interactive elements. The design should be clean and the error solutions should be specific and actionable.

2

Add the Tool Recommendation Engine

Now we'll enhance the troubleshooter with intelligent recommendations about when to use MCPs vs plugins vs different AI models.

Prompt
Add a "Tool Recommendation" section to the existing HTML. Create a questionnaire system that asks users about their needs and recommends the right approach: **Questions to include:** - What are you trying to accomplish? (dropdown: coding, data analysis, content creation, automation, research) - Do you need real-time data access? (yes/no) - Are you working with local files or external APIs? - Do you want something that works across different AI models? - What's your technical comfort level? (beginner/intermediate/advanced) **Recommendation Logic:** - MCP Servers: When they need data access, local file operations, or cross-model compatibility - Plugins: When they want simple, specific functionality within one AI tool - Multi-model workflow: When they need different AI strengths for different parts of a complex task Show recommendations as cards with: - Recommended approach - Why this fits their needs - Setup difficulty (Easy/Medium/Hard) - Example use cases - Next steps to get started Update the styling to match the existing design.

What to look for: The AI should add an interactive questionnaire that logically leads to MCP, plugin, or workflow recommendations. Each recommendation should explain the reasoning and provide concrete next steps.

3

Build the Workflow Optimizer

This step creates a system that designs multi-model AI workflows, showing users when to use Claude vs ChatGPT vs other tools together.

Prompt
Add a "Workflow Builder" section that creates custom multi-model AI workflows. Include: **Project Input Form:** - Project description (text area) - Goals (checkboxes: speed, accuracy, creativity, cost-effectiveness, specific expertise) - Complexity level (simple task, multi-step process, ongoing workflow) - Resources available (which AI tools they have access to) **Workflow Generator:** Based on inputs, generate a step-by-step workflow showing: - Which AI tool to use for each step (Claude, ChatGPT, specialized tools) - Why that tool is best for that step - How to hand off between tools - Expected time and complexity - Tips for optimization **Common Workflow Templates:** Show 5 pre-built workflow examples: 1. "Content Creation Pipeline" (research → writing → editing → formatting) 2. "Code Development Workflow" (planning → coding → debugging → documentation) 3. "Data Analysis Project" (cleaning → analysis → visualization → reporting) 4. "Learning & Research" (questions → research → synthesis → application) 5. "Creative Problem Solving" (brainstorming → evaluation → refinement → execution) Each template should be clickable and show the full workflow breakdown. Style it consistently with the existing design using the same color scheme and animations.

What to look for: The AI should create an intelligent system that asks about project needs and generates specific workflows showing which AI tools to use at each step, with clear reasoning and handoff instructions.

4

Create Interactive Troubleshooting Guides

Now we'll add step-by-step troubleshooting flows that guide users through solving specific problems with decision trees and interactive elements.

Prompt
Add an "Interactive Troubleshooting" section with decision-tree style problem solving. Create these troubleshooting flows: **1. "My AI Tool Won't Work" Flow:** - Start: Is it giving you an error message? (Yes → Error diagnosis / No → Performance issues) - Branch into specific solutions based on responses - Include checkboxes for "I tried this" to track progress **2. "I'm Not Getting Good Results" Flow:** - Questions about prompt quality, task complexity, tool choice - Leads to specific improvements (better prompting, different tool, workflow changes) **3. "Setup Problems" Flow:** - API keys, authentication, installation issues - Step-by-step resolution with verification checkboxes **4. "Integration Issues" Flow:** - Problems connecting tools, data transfer, workflow handoffs - Diagnostic questions leading to specific solutions **Interactive Features:** - Each step has "Yes/No" or multiple choice buttons - Progress indicator showing where they are in the troubleshooting process - "Start Over" and "Go Back" options - Success indicators when they complete steps - Final "Solution Summary" that recaps what they tried **Visual Design:** - Use a flowchart-like layout with connected steps - Different colors for questions (blue), actions (green), and problems (orange) - Smooth animations between steps - Clear visual hierarchy Make sure it integrates smoothly with the existing sections and maintains consistent styling.

What to look for: The AI should create interactive decision trees that guide users step-by-step through common problems. Each flow should have clear branching logic, progress tracking, and actionable solutions.

5

Add Smart Q&A and Final Polish

Finally, we'll add an intelligent Q&A system that asks clarifying questions to narrow down solutions, plus polish the overall experience.

Prompt
Complete the AI Tool Troubleshooter by adding these final components: **1. Smart Q&A Assistant:** - Chat-like interface where users can describe their problem in natural language - System asks follow-up questions to narrow down the issue: * "What AI tool are you using?" * "When did this problem start?" * "What were you trying to accomplish?" * "Can you share the exact error or unexpected behavior?" - Based on answers, it routes them to the most relevant section (Error Diagnosis, Tool Recommendations, Workflow Builder, or Troubleshooting Guides) - Include common question shortcuts like "Setup help", "Error codes", "Tool comparison" **2. Navigation & Polish:** - Add a sticky header with navigation between all sections - Create a "Getting Started" welcome modal that explains how to use the tool - Add a search function that searches across all sections - Include "Quick Access" buttons for most common issues - Add a "Save Progress" feature that remembers where users were **3. Help Resources:** - "Need More Help?" section with links to: * AI tool documentation * Community forums * Video tutorials * Common troubleshooting checklists - Add export functionality to save troubleshooting results as a PDF or text file **4. Final Improvements:** - Ensure all sections work together seamlessly - Add loading animations and smooth transitions - Include tooltips for technical terms - Add a feedback system ("Was this helpful?" buttons) - Mobile-responsive design improvements Test all functionality and make sure the user experience flows logically from problem identification to solution.

What to look for: The AI should create a polished, complete troubleshooting tool with intelligent Q&A, smooth navigation between sections, and professional finishing touches. The final result should feel like a comprehensive AI diagnostic assistant.

Common Issues

The AI generates too much code in one response

If the output gets cut off, ask the AI to "continue from where you left off" or break the request into smaller pieces. You can also ask it to focus on just the HTML structure first, then the CSS, then the JavaScript.

Interactive elements don't work properly

Make sure you're testing the HTML file in a proper web browser, not just viewing the code. If buttons or forms aren't responding, ask the AI to "debug the JavaScript functionality and fix any event listener issues."

The troubleshooting logic seems too simple

Ask the AI to "make the decision trees more sophisticated" and "add more branching scenarios." You can also request specific edge cases you want covered based on your own AI tool experiences.

Sections don't integrate well together

After building all sections, ask the AI to "review the entire tool and improve the connections between sections" and "add cross-references so users can easily move between related features."

What You Learned

AI Error Pattern Recognition

You practiced building systems that can diagnose and solve AI tool problems, applying the error debugging knowledge from this week's tutorial.

MCP vs Plugin Decision Logic

You built intelligent recommendation systems that understand when to suggest MCPs versus plugins based on user needs and technical requirements.

Multi-Model Workflow Design

You created systems that automatically design workflows using different AI tools together, applying the multi-model strategies from this week's tutorial.

Complex Interactive Systems

You learned to prompt AI tools to create sophisticated interactive applications with decision trees, Q&A flows, and integrated functionality.

Tips for Going Further

Add Real API Integration

Connect your troubleshooter to actual AI tool APIs so it can test connections and diagnose real-time issues. Start with simple status checks and expand from there.

Build a Learning Database

Expand the tool to learn from user interactions. Track which solutions work most often and surface the best answers first for similar problems.

Create Specialized Versions

Build focused troubleshooters for specific use cases: "Coding AI Troubleshooter," "Content Creation AI Helper," or "Data Analysis AI Debugger" with deeper, more specialized knowledge.

Add Community Features

Let users submit their own solutions and troubleshooting tips. Create a community-driven knowledge base that grows over time with real user experiences.