Intelligent Inspection - 智能巡检
Overview
Intelligent Inspection is an intelligent workplace monitoring system that:
- - Captures images from surveillance cameras
- Uses AI to analyze images based on user-defined inspection criteria
- Sends alerts via Feishu (or other configured channels)
- Supports guided configuration and isolated settings
This skill is designed for workplace safety, security monitoring, and employee presence verification.
Core Features
1. Guided Configuration
- - First-time setup wizard collects camera parameters
- User-friendly prompts for API endpoints, tokens, and device settings
- Configuration isolation in dedicated config file
2. Flexible Inspection Tasks
- - Customizable AI prompts for different inspection scenarios
- Support for multiple camera devices and channels
- Configurable patrol schedules and triggers
3. AI-Powered Analysis
- - Integration with OpenClaw's AI models
- User-defined analysis criteria through custom prompts
- Structured response handling for consistent results
4. Multi-Channel Alerting
- - Primary integration with Feishu messaging
- Automatic fallback to other configured channels
- Rich message formatting with images and metadata
Setup Requirements
Camera System Requirements
- EZVIZ Cloud API (萤石云)
- Generic RTSP/ONVIF cameras (via camsnap skill)
- Custom HTTP-based capture endpoints
Authentication Requirements
- - Camera API access tokens or credentials
- Feishu bot permissions (if using Feishu alerts)
OpenClaw Requirements
- -
feishu channel configured (for Feishu alerts) - AI model with vision capabilities (e.g., qwen3-max, GPT-4 Vision)
Usage Scenarios
Employee Presence Monitoring
- - Detect if employees are at their workstations
- Monitor break room usage
- Track attendance during working hours
Security Patrols
- - Verify door/window status
- Check for unauthorized access
- Monitor restricted areas
Facility Inspections
- - Equipment status verification
- Environmental condition monitoring
- Compliance checks
Workflow
1. Initial Setup (First Run)
When the skill runs for the first time:
- 1. Prompt user for camera system type
- Collect API endpoint, access token, device serial, channel number
- Ask for default inspection prompt template
- Confirm alert channel preferences
- Save configuration to INLINECODE1
2. Patrol Execution
For subsequent runs:
- 1. Load configuration from config file
- Capture image using configured camera parameters
- Generate AI analysis prompt based on patrol task
- Execute AI analysis using OpenClaw's vision model
- Format and send alert via configured channels
3. Configuration Management
- - Configuration stored in isolated JSON file
- Users can edit config file directly for advanced settings
- Skill validates configuration on each run
- Option to reset configuration and re-run setup
Configuration File Structure
The configuration file (intelligent-inspection-config.json) contains:
CODEBLOCK0
Error Handling
- - Invalid camera credentials: Clear error messages with setup guidance
- AI analysis failures: Retry logic with fallback prompts
- Alert delivery failures: Log errors and attempt alternative channels
- Missing configuration: Automatically trigger setup wizard
Privacy and Security
- - Camera credentials stored locally only
- Images processed through secure AI endpoints
- No data retention beyond immediate patrol execution
- Compliance with workplace monitoring regulations recommended
Integration Points
OpenClaw Tools Used
- -
message: For sending alerts via configured channels - INLINECODE4 /
exec: For camera image capture - AI model calls: For image analysis
External Dependencies
- - Camera system APIs (EZVIZ, RTSP, etc.)
- Feishu bot (if configured as alert channel)
Examples
Basic Employee Monitoring
CODEBLOCK1
Custom Inspection Task
CODEBLOCK2
Reset Configuration
CODEBLOCK3
Version History
- - v1.0.0: Initial release with EZVIZ support and Feishu alerts
Intelligent Inspection - 智能巡检
概述
智能巡检是一个智能工作场所监控系统,能够:
- - 从监控摄像头捕获图像
- 基于用户定义的巡检标准,利用AI分析图像
- 通过飞书(或其他已配置渠道)发送告警
- 支持引导式配置和隔离设置
该技能专为工作场所安全、安保监控和员工在岗验证而设计。
核心功能
1. 引导式配置
- - 首次设置向导收集摄像头参数
- 友好的提示引导输入API端点、令牌和设备设置
- 配置隔离存储在专用配置文件中
2. 灵活的巡检任务
- - 可自定义的AI提示词,适用于不同巡检场景
- 支持多个摄像头设备和通道
- 可配置的巡检计划与触发条件
3. AI驱动分析
- - 集成OpenClaw的AI模型
- 通过自定义提示词定义用户分析标准
- 结构化响应处理,确保结果一致性
4. 多渠道告警
- - 主要集成飞书消息通知
- 自动回退到其他已配置渠道
- 包含图片和元数据的富消息格式
设置要求
摄像头系统要求
- 萤石云API
- 通用RTSP/ONVIF摄像头(通过camsnap技能)
- 自定义基于HTTP的捕获端点
认证要求
- - 摄像头API访问令牌或凭证
- 飞书机器人权限(如使用飞书告警)
OpenClaw要求
- - 已配置feishu渠道(用于飞书告警)
- 具备视觉能力的AI模型(例如qwen3-max、GPT-4 Vision)
使用场景
员工在岗监控
- - 检测员工是否在工位上
- 监控休息室使用情况
- 跟踪工作时间的出勤情况
安全巡逻
设施巡检
工作流程
1. 初始设置(首次运行)
技能首次运行时:
- 1. 提示用户选择摄像头系统类型
- 收集API端点、访问令牌、设备序列号、通道号
- 询问默认巡检提示词模板
- 确认告警渠道偏好
- 保存配置至~/.openclaw/workspace/intelligent-inspection-config.json
2. 巡检执行
后续运行时:
- 1. 从配置文件加载配置
- 使用已配置的摄像头参数捕获图像
- 基于巡检任务生成AI分析提示词
- 使用OpenClaw的视觉模型执行AI分析
- 通过已配置渠道格式化并发送告警
3. 配置管理
- - 配置存储在独立的JSON文件中
- 用户可直接编辑配置文件进行高级设置
- 技能每次运行时验证配置
- 可选择重置配置并重新运行设置
配置文件结构
配置文件(intelligent-inspection-config.json)包含:
json
{
camera: {
type: ezviz,
apiUrl: https://open.ys7.com/api/open/cloud/v1/capture/save,
accessToken: your-access-token,
deviceSerial: C12345678,
channelNo: 1,
projectId: intelligent-inspection-project
},
inspection: {
defaultPrompt: 请分析这张图片中是否有员工在工位上。如果没有人,请回复离岗;如果有人,请回复在岗。,
alertOn: [离岗],
includeImage: true
},
alerts: {
enabled: true,
channels: [feishu],
fallbackToDefault: true
}
}
错误处理
- - 无效的摄像头凭证:提供清晰的错误信息并附带设置引导
- AI分析失败:重试逻辑并附带备用提示词
- 告警投递失败:记录错误并尝试使用替代渠道
- 缺少配置:自动触发设置向导
隐私与安全
- - 摄像头凭证仅本地存储
- 图像通过安全的AI端点处理
- 不保留超出当前巡检执行范围的数据
- 建议遵守工作场所监控相关法规
集成点
使用的OpenClaw工具
- - message:通过已配置渠道发送告警
- web_fetch/exec:用于摄像头图像捕获
- AI模型调用:用于图像分析
外部依赖
- - 摄像头系统API(萤石云、RTSP等)
- 飞书机器人(如配置为告警渠道)
示例
基础员工监控
执行智能巡检任务
自定义巡检任务
执行智能巡检:检查会议室是否有人使用
重置配置
重置智能巡检配置
版本历史