Nano Diary Hook
Post diary content to a user's Nano diary platform via webhook token.
When to use
Use this skill when the user wants to:
- - Write or submit a diary entry for a specific date
- Log daily thoughts, activities, or reflections to their diary
- Send AI-generated diary content to their Nano account
Environment
- -
NANO_DIARY_HOOK_TOKEN (required): The user's personal webhook token, generated from Nano diary settings page.
API
Endpoint:
CODEBLOCK0
Headers:
CODEBLOCK1
Request body:
CODEBLOCK2
- -
date (required): Date in YYYY-MM-DD format, e.g. INLINECODE3 - INLINECODE4 (required): The diary content as plain text
Example:
CODEBLOCK3
Response
Success (new diary created):
CODEBLOCK4
Success (merged with existing handwritten diary via AI):
CODEBLOCK5
Error responses:
CODEBLOCK6
Behavior
- - If no diary exists for the given date, a new entry is created.
- If a diary already exists with handwritten content, the submitted content is automatically merged with it using AI to produce a coherent combined entry.
- If a diary exists but has no handwritten content, the submitted content is saved directly.
Notes
- - Content should be plain text (not Markdown or HTML).
- One diary entry per date. Submitting again for the same date will update the existing entry.
- The merge process is asynchronous; the API responds immediately while AI merging happens in the background.
Nano Diary Hook
通过 webhook 令牌将日记内容发布到用户的 Nano 日记平台。
使用场景
当用户希望执行以下操作时,可使用此技能:
- - 为特定日期撰写或提交日记条目
- 将每日想法、活动或反思记录到日记中
- 将 AI 生成的日记内容发送到其 Nano 账户
环境变量
- - NANODIARYHOOK_TOKEN(必需):用户的个人 webhook 令牌,从 Nano 日记设置页面生成。
API
接口地址:
POST https://image.yezishop.vip/api/diary-hook/${NANODIARYHOOK_TOKEN}
请求头:
Content-Type: application/json
请求体:
json
{
date: YYYY-MM-DD,
content: 日记内容文本
}
- - date(必需):日期,格式为 YYYY-MM-DD,例如 2026-03-06
- content(必需):纯文本格式的日记内容
示例:
bash
curl -X POST https://image.yezishop.vip/api/diary-hook/${NANODIARYHOOK_TOKEN} \
-H Content-Type: application/json \
-d {date: 2026-03-06, content: 今天我学会了如何将 OpenClaw 技能发布到 ClawHub。}
响应
成功(创建新日记):
json
{ success: true, merged: false, diary_id: 123 }
成功(通过 AI 与现有手写日记合并):
json
{ success: true, merged: true, diary_id: 123 }
错误响应:
json
{ success: false, error: date and content are required }
{ success: false, error: date must be in YYYY-MM-DD format }
{ success: false, error: Invalid token }
行为说明
- - 如果指定日期不存在日记,则创建新条目。
- 如果已存在手写内容的日记,则提交的内容将通过 AI 自动与之合并,生成连贯的整合条目。
- 如果存在日记但无手写内容,则直接保存提交的内容。
注意事项
- - 内容应为纯文本(非 Markdown 或 HTML)。
- 每个日期仅对应一条日记条目。对同一日期再次提交将更新现有条目。
- 合并过程为异步操作;API 会立即响应,AI 合并则在后台进行。