🤖
智能告警处理
接收飞书群告警,LLM 自动分类、诊断、生成修复方案
# 克隆项目
git clone https://github.com/FLM210/ai-fixer.git
cd ai-fixer
# 一键启动
make up
# 访问管理后台
open http://localhost:5173ai-fixer 的核心是一个基于 LangGraph 的状态机工作流,将告警处理抽象为严谨的步骤,确保每一步诊断和修复都在可控和安全的前提下进行:
graph TD
Alert[飞书群告警] --> Bot[机器人检测]
Bot --> Triage[LLM 分类与初步分析]
Triage --> Diagnose[诊断问题并获取上下文]
Diagnose --> Card1[发送诊断确认卡片]
Card1 -->|用户点击确认| Propose[生成修复方案]
Propose --> Evaluate[策略与围栏评估]
Evaluate --> Card2[发送方案确认卡片]
Card2 -->|用户点击确认| Execute[执行修复步骤]
Execute --> Verify[验证修复结果]
Verify --> Notify[发送最终结果卡片]
classDef default fill:#f9f9f9,stroke:#333,stroke-width:1px;
classDef highlight fill:#e1f5fe,stroke:#0288d1,stroke-width:2px;
classDef warning fill:#fff3e0,stroke:#f57c00,stroke-width:2px;
class Card1,Card2 warning;
class Triage,Diagnose,Propose highlight;