360 Secure SkillHub
360 安全技能中心

Nano Diary Hook

该 Skill 用 curl 向 Nano 日记平台的 webhook 接口发送日期与纯文本内容,创建或更新指定日期的日记;若该日期已有手写日记,平台会异步用 AI 合并内容。需要先在日记平台生成个人 webhook token 并配置为环境变量。

fengye607
fengye607
热度 58.81
最近更新 2026-05-17 13:30:38
分类:生活依赖:代码执行 / 第三方 API应用场景:笔记整理 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add nano-diary-hook
Metadata
name
nano-diary-hook
description
Post diary entries to a Nano diary platform via webhook. Supports creating new entries and AI-powered merging with existing handwritten diaries.
version
1.0.0
metadata
{"openclaw":{"requires":{"env":["NANO_DIARY_HOOK_TOKEN"],"bins":["curl"],"primaryEnv":"NANO_DIARY_HOOK_TOKEN"}}}

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:

POST https://image.yezishop.vip/api/diary-hook/${NANO_DIARY_HOOK_TOKEN}

Headers:

Content-Type: application/json

Request body:

{
  "date": "YYYY-MM-DD",
  "content": "Diary content text"
}
  • date (required): Date in YYYY-MM-DD format, e.g. 2026-03-06
  • content (required): The diary content as plain text

Example:

curl -X POST "https://image.yezishop.vip/api/diary-hook/${NANO_DIARY_HOOK_TOKEN}" \
  -H "Content-Type: application/json" \
  -d '{"date": "2026-03-06", "content": "Today I learned how to publish OpenClaw skills to ClawHub."}'

Response

Success (new diary created):

{ "success": true, "merged": false, "diary_id": 123 }

Success (merged with existing handwritten diary via AI):

{ "success": true, "merged": true, "diary_id": 123 }

Error responses:

{ "success": false, "error": "date and content are required" }
{ "success": false, "error": "date must be in YYYY-MM-DD format" }
{ "success": false, "error": "Invalid token" }

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.