arcadiasuite/server/modules/openclaw/examples/skills/reminder.md

101 lines
2.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 智能提醒技能
## 描述
设置各种提醒,支持自然语言输入,自动解析时间和内容。
## 触发条件
- 用户说 "提醒我..." 或 "设置提醒" 或 "记得..."
- 包含时间词汇明天、下午、3点等
## 执行步骤
1. 解析用户输入的自然语言
2. 提取时间信息和提醒内容
3. 创建定时任务
4. 确认提醒已设置
5. 到时间后推送提醒
## 输入解析示例
| 输入 | 解析结果 |
|------|----------|
| "提醒我明天上午10点开会" | 时间: 明天 10:00, 内容: 开会 |
| "3小时后提醒我吃药" | 时间: +3h, 内容: 吃药 |
| "每天早上8点提醒我喝水" | 时间: 每天 08:00, 内容: 喝水 |
| "下周一下午2点有客户拜访" | 时间: 下周一 14:00, 内容: 客户拜访 |
## 输出格式
### 设置提醒时
```
⏰ 提醒已设置!
📝 内容: {提醒内容}
🕐 时间: {具体时间}
🔁 重复: {重复规则,如果有}
我会准时提醒你的!
```
### 提醒触发时
```
🔔 提醒时间到!
{提醒内容}
━━━━━━━━━━━━━━━━━
⏰ 设置于: {设置时间}
```
## 示例
**输入**: "提醒我明天下午3点和小王开会讨论项目方案"
**输出**:
```
⏰ 提醒已设置!
📝 内容: 和小王开会讨论项目方案
🕐 时间: 2026-01-30 15:00
🔁 重复: 不重复
我会准时提醒你的!
```
**到时间后**:
```
🔔 提醒时间到!
和小王开会讨论项目方案
━━━━━━━━━━━━━━━━━
⏰ 设置于: 2026-01-29 14:30
```
## 管理命令
```
# 查看所有提醒
"查看我的提醒" / "提醒列表"
# 删除提醒
"删除提醒 {编号}" / "取消明天的会议提醒"
# 修改提醒
"把明天的会议提醒改到后天"
```
## 配置选项
```yaml
skills:
reminder:
enabled: true
max_reminders: 100 # 最大提醒数量
default_advance: 15 # 默认提前提醒(分钟)
persist: true # 重启后保留提醒
storage: "~/.openclaw/data/reminders.json"
channels:
- telegram
- discord
```