360 Secure SkillHub
360 安全技能中心

采用强大模型,一键生成小红书图文,助力品牌曝光和转化。适用于用户希望“生成小红书笔记/小红书文案/笔记”时,通过API自动生成结果而非手动撰写。

通过 Python 脚本调用小念AI的一次性生成接口,把用户需求转成 task_description,并按受众、语气、人设、生成篇数、图片数量等参数生成小红书笔记的标题、正文、标签与配图链接,默认生成 1 篇。

yc556600
yc556600
热度 66.71
最近更新 2026-05-17 15:07:52
分类:营销依赖:代码执行 / 第三方 API应用场景:文案创作 / 社交媒体

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add xhs-note-gen
Metadata
name
xhs-note-gen
description
小红书笔记生成服务,当用户要求"生成小红书笔记/小红书文案/笔记"并希望通过 小念AI来 生成结果而不是手动编写时使用。

xhs-note-gen

Use this skill to generate XiaoHongShu (小红书) notes via external API.

Prereqs

  1. The service is running on:
  • https://xiaonian.cc/employee-console/dashboard/v2/api
  1. Endpoint
  • Uses one-shot endpoint: POST /content/quick-note/generate
  • No auth required

Workflow

  1. Convert the user request into:
  • task_description: the user’s requirement (keep it verbatim, add constraints if provided)
  • Defaults (unless user specifies):
    • audience: 小红书用户
    • tone: 友好自然
    • character: 专业分享者
    • generate_num: 默认 1(只生成 1 篇笔记;如需多版备选再改成 2/3)
  1. Run the script (calls quick-note; --generate-num 表示生成“多篇不同版本的文案备选”; 图片数量用 --image-num 控制,不需要用 generate-num 来换图片张数):
python3 skills/local/xhs-note-gen/scripts/xhs_note_gen.py \
  --task-description "<task_description>" \
  --audience "<audience>" \
  --tone "<tone>" \
  --character "<character>" \
  --generate-num 3

Optional controls:

  • Disable images: --no-generate-image
  • Change image count (default 1): --image-num 3
  • Set note type explicitly (optional): --note-type "工具测评类"
  1. The script prints JSON containing:
  • notes[] with title, content, tags, image_urls, note_type
  1. Return to the user:
  • A clean, readable list of generated notes
  • Include hashtags if available

Troubleshooting

  • Task FAILED / success: false:

    • Surface message from response.
  • Want field details:

    • Read references/content-marketing-dashboard-api.md.