NiceBox Site Manager
Manage AI-built websites through the NiceBox OpenClaw API.
Base URL:
CODEBLOCK0
Authentication:
CODEBLOCK1
This skill provides 3 main capabilities:
- * Publish article
- View messages
- Check site status
Publish article
Publish an article to your site.
CODEBLOCK2
Options:
- *
--title: Article title (required) - INLINECODE1 : Article content, usually HTML (required)
- INLINECODE2 : Article summary (optional)
- INLINECODE3 : Author name (optional)
- INLINECODE4 : Cover image URL (optional)
- INLINECODE5 :
draft or publish (default: publish)
View messages
List messages, inquiries, or leads from your site.
CODEBLOCK3
Options:
- *
--page: Page number (default: 1) - INLINECODE11 : Number of items per page (default:
20) - INLINECODE13 : Filter by read status,
0 unread / 1 read (optional)
Check site status
Check the current status of your site.
CODEBLOCK4
No additional options required.
Environment
Set your API key before using this skill:
CODEBLOCK5
Optional override for base URL:
CODEBLOCK6
Default endpoint assumptions
This skill assumes the following API paths:
- * INLINECODE16
- INLINECODE17
- INLINECODE18
If your actual backend uses different paths, update the ENDPOINT_* constants in the Python scripts.
Notes
- * All requests use the HTTP
Authorization header. - The API key is sent as plain header value:
* Authorization: YOUR_KEY
- * Output is printed as formatted JSON for easier debugging and agent use.
- If your API field names differ, update the payload fields in the scripts.
NiceBox 站点管理器
通过 NiceBox OpenClaw API 管理 AI 构建的网站。
基础 URL:
bash
https://ai.nicebox.cn/api/openclaw
身份验证:
bash
Authorization: $AIBOXAPIKEY
该技能提供 3 项主要功能:
发布文章
向您的站点发布一篇文章。
bash
python3 {baseDir}/scripts/publish_article.py \
--title Hello World \
--content
This is article content
\
--summary Optional summary \
--author NiceBox AI \
--cover https://example.com/cover.jpg \
--status publish
选项:
- * --title:文章标题(必填)
- --content:文章内容,通常为 HTML 格式(必填)
- --summary:文章摘要(可选)
- --author:作者名称(可选)
- --cover:封面图片 URL(可选)
- --status:draft(草稿)或 publish(发布),默认值为 publish
查看消息
列出您站点的消息、咨询或线索。
bash
python3 {baseDir}/scripts/list_messages.py
python3 {baseDir}/scripts/list_messages.py --page 1 --page-size 20
python3 {baseDir}/scripts/list_messages.py --is-read 0
选项:
- * --page:页码(默认值:1)
- --page-size:每页项目数(默认值:20)
- --is-read:按阅读状态筛选,0 表示未读 / 1 表示已读(可选)
检查站点状态
检查您站点的当前状态。
bash
python3 {baseDir}/scripts/site_status.py
无需额外选项。
环境设置
使用此技能前请设置您的 API 密钥:
bash
export AIBOXAPIKEY=yourapikey
可选覆盖基础 URL:
bash
export AIBOXBASEURL=https://ai.nicebox.cn/api/openclaw
默认端点假设
此技能假设以下 API 路径:
- * POST /article/publish
- GET /message/getlist
- GET /site/status
如果您的实际后端使用不同的路径,请更新 Python 脚本中的 ENDPOINT_* 常量。
注意事项
- * 所有请求均使用 HTTP Authorization 标头。
- API 密钥以纯文本标头值形式发送:
* Authorization: YOUR_KEY
- * 输出以格式化的 JSON 形式打印,便于调试和代理使用。
- 如果您的 API 字段名称不同,请更新脚本中的负载字段。