AI.Diagnostics
1.0.4
dotnet add package AI.Diagnostics --version 1.0.4
NuGet\Install-Package AI.Diagnostics -Version 1.0.4
<PackageReference Include="AI.Diagnostics" Version="1.0.4" />
<PackageVersion Include="AI.Diagnostics" Version="1.0.4" />
<PackageReference Include="AI.Diagnostics" />
paket add AI.Diagnostics --version 1.0.4
#r "nuget: AI.Diagnostics, 1.0.4"
#:package AI.Diagnostics@1.0.4
#addin nuget:?package=AI.Diagnostics&version=1.0.4
#tool nuget:?package=AI.Diagnostics&version=1.0.4
🤖 AI Diagnostics For Umbraco 17+
Analyze errors in your Umbraco website using Artificial Intelligence!
Stop wasting hours reading through log files. Let AI analyze your website's errors and give you clear, actionable solutions in plain English.
✨ Features
🧠 Smart AI Analysis
Your logs are analyzed by powerful AI models that understand common web application issues and can explain them clearly.
🔄 Automatic Grouping
If the same error appears 100 times, you'll see it as one issue with a count of "100" - not 100 separate items!
🎯 Multiple AI Options
Choose from:
- Google Gemini - Cloud-based, powerful, easy to set up
- Ollama - FREE, runs on your own computer, no internet needed
- OpenAI - Use GPT models for analysis
- Azure OpenAI (coming soon!)
🎨 Beautiful Dashboard
Easy-to-use interface right inside your Umbraco admin panel.
📊 Comprehensive Reports
Get detailed analysis with:
- Overall health summary
- Likely causes for each issue
- Step-by-step fix suggestions
- Reference documentation links
- Severity assessments
📦 Installation
Using .NET CLI
dotnet add package AI.Diagnostics
Using NuGet Package Manager
Install-Package AI.Diagnostics
Using Visual Studio
- Right-click on your project in Visual Studio
- Click "Manage NuGet Packages..."
- Click the "Browse" tab
- Search for:
AI.Diagnostics - Click "Install"
⚙️ Configuration
Step 1: Choose Your AI Provider
You need to pick ONE of these options:
🟢 Option 1: Ollama (FREE - Recommended for Beginners)
Ollama runs AI on your own computer - completely free!
- Download Ollama: Visit ollama.com and download it
- Install and start Ollama: Just run the installer
- Download an AI model: Open your terminal and run:
ollama pull llama3
That's it! Ollama will run in the background.
🔵 Option 2: Google Gemini (Easy Cloud Setup)
Google's Gemini is powerful and has a generous free tier.
- Get an API Key:
- Go to Google AI Studio
- Click "Get API Key"
- Copy your key (looks like:
AIzaSyA...)
🔵 Option 3: OpenAI
- Get an API Key:
- Go to OpenAI Platform
- Click "API Keys"
- Create one by clicking "Create new secret key"
Keep your API key safe - you'll need it in Step 2!
Step 2: Configure Your Settings
Open the file called appsettings.json in your Umbraco project and add this section:
Configuration Options
You can customize these settings:
{
"AI": {
"Diagnostics": {
"LogLevels": ["Error", "Critical"],
"MaxBatchSize": 100,
"EnableAI": true,
"AIProvider": "Ollama",
"PromptFilePath": "prompt/analysis-prompt.txt",
"Ollama": {
"Endpoint": "http://localhost:11434",
"Model": "llama3"
},
"Gemini": {
"ApiKey": "YOUR-API-KEY-HERE",
"Model": "gemini-1.5-flash"
},
"OpenAI": {
"ApiKey": "",
"Model": "",
"OrganizationId": null
}
}
}
}
Important: Replace YOUR-API-KEY-HERE with your actual API key from Step 1!
Settings explained:
LogLevels: Which severity levels to analyze
- Options:
"Trace","Debug","Information","Warning","Error","Critical" - Default:
["Error", "Critical", "Warning"]
- Options:
MaxBatchSize: Maximum number of unique issues to analyze at once
- Default: 100
EnableAI: Turn AI analysis on/off
true= AI analysis enabledfalse= Just show raw logs
AIProvider: Which AI service to use
- Options:
"Ollama"or"Gemini"or"OpenAI"(more coming soon!)
- Options:
PromptFilePath: Optional path to custom prompt file for advanced users
Step 3: Start Using It!
- Start your Umbraco website (press F5 in Visual Studio)
- Log in to the Umbraco admin panel (the backoffice)
- Click on "Settings" in the left menu
- Click "AI Diagnostics"
- Choose which types of errors to analyze (Error, Critical, or Warning)
- Select a time range (last hour, day, week, etc.)
- Click the big "Analyze Logs" button
- Wait a few seconds while AI does its magic! ✨
Understanding Your Results
The analysis report includes:
📈 Summary Statistics
- Total logs analyzed
- Number of unique issues found
- Overall health assessment from AI
🔍 Detailed Analysis for Each Issue
- Log Entry: The actual error message and when it occurred
- Occurrence Count: How many times this exact issue appeared
- Likely Cause: AI's explanation of what's wrong (in plain English!)
- Suggested Fixes: Step-by-step solutions to try (ordered from easiest to most complex)
- Reference Links: Helpful documentation and guides
- Severity Assessment: How serious the issue is (Low, Medium, High, Critical)
🚀 Coming Soon
We're actively working on exciting new features:
- ✅ Azure OpenAI: Enterprise-grade OpenAI for Azure customers
- 📄 Export to PDF/Excel: Download analysis reports
- 📊 Trend Analysis: Track if errors are increasing or decreasing over time
- 🎨 Enhanced Visualizations: More charts and graphs
🐛 Issues & Support
Found a bug or have a suggestion? We'd love to hear from you!
👉 Report Issues: GitHub Issues
When reporting an issue, please include:
- What you expected to happen
- What actually happened
- Error messages (if any)
- Your configuration (without API keys!)
- Steps to reproduce
📜 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
Built with:
- ❤️ Love for the Umbraco community
- 🤖 Powered by AI (Gemini, Ollama, and more!)
- ☕ Lots of coffee
Happy debugging! 🎉
Made with ❤️ for the Umbraco community
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Umbraco.Cms.Api.Common (>= 17.1.0)
- Umbraco.Cms.Api.Management (>= 17.1.0)
- Umbraco.Cms.Web.Common (>= 17.1.0)
- Umbraco.Cms.Web.Website (>= 17.1.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.