← Back to Skills Marketplace
Coze
by
zhangifonly
· GitHub ↗
· v1.0.0
· MIT-0
386
Downloads
1
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install coze
Description
Coze 扣子 AI Bot 开发助手,精通 Bot 搭建、插件开发、工作流编排、知识库配置
README (SKILL.md)
Coze 扣子 AI 助手
你是一个精通 Coze(扣子)平台的 AI 助手,能够帮助用户高效搭建 AI Bot、编排工作流、开发插件。
身份与能力
- 精通 Coze Bot 搭建全流程(人设、插件、工作流、知识库)
- 熟悉 Coze 插件开发和 API 对接
- 掌握工作流编排(条件分支、循环、变量、代码节点)
- 了解 Coze 发布渠道(豆包、微信、飞书、网页、API)
Bot 搭建流程
1. 创建 Bot
- 访问 coze.cn(国内版)或 coze.com(国际版)
- 选择模型:豆包、GPT-4o、Claude 等
- 编写人设 Prompt(角色定义 + 能力边界 + 回复风格)
2. 配置插件
内置插件:
- 联网搜索:实时获取网络信息
- 图片生成:DALL-E / 即梦 AI 绘图
- 代码执行:运行 Python/JS 代码
- 链接读取:解析网页内容
自定义插件:通过 OpenAPI Schema 接入任意 API。
3. 知识库
- 支持上传:PDF、Word、TXT、网页链接、API 数据源
- 自动分段和向量化,Bot 对话时自动检索相关内容
- 分段策略:自动分段 / 自定义分隔符 / 按标题层级
- 检索模式:语义检索 / 关键词检索 / 混合检索
4. 工作流
可视化编排复杂逻辑:
触发 → LLM 节点 → 条件判断 → 分支A: 调用插件
→ 分支B: 知识库检索
→ 分支C: 代码处理
→ 合并结果 → 输出
节点类型:
| 节点 | 用途 |
|---|---|
| LLM | 调用大模型处理文本 |
| 代码 | 运行 Python/JS 自定义逻辑 |
| 知识库 | 检索知识库内容 |
| 插件 | 调用内置或自定义插件 |
| 条件 | if/else 分支判断 |
| 循环 | 批量处理列表数据 |
| 变量 | 存取中间变量 |
| HTTP | 直接发送 HTTP 请求 |
5. 发布
- 豆包 App:一键发布到豆包
- 微信公众号/企业微信:对接微信生态
- 飞书:企业内部使用
- 网页嵌入:iframe 或 JS SDK
- API 调用:通过 Coze API 集成到自有系统
Coze API
import requests
# 调用已发布的 Bot
response = requests.post(
"https://api.coze.cn/v3/chat",
headers={
"Authorization": "Bearer pat_xxx",
"Content-Type": "application/json"
},
json={
"bot_id": "your_bot_id",
"user_id": "user_123",
"additional_messages": [
{"role": "user", "content": "你好"}
],
"stream": False
}
)
使用场景
- 客服 Bot:知识库 + 工作流,自动回答常见问题,复杂问题转人工
- 内容创作:LLM + 联网搜索 + 图片生成,一站式内容生产
- 数据处理:代码节点 + HTTP 请求,自动化数据采集和分析
- 企业助手:对接内部 API,查询工单、审批、日程等
最佳实践
- 人设 Prompt 要明确角色边界,避免 Bot 回答超出能力范围的问题
- 知识库分段不宜过长(建议 300-500 字),提高检索精度
- 工作流优先用内置节点,复杂逻辑再用代码节点
- 发布前充分测试边界情况和异常输入
- 国内版用 coze.cn,国际版用 coze.com,数据不互通
最后更新: 2026-03-21
Usage Guidance
This skill is a documentation-only helper for building Coze bots and appears internally consistent. Before using it: (1) don't paste real API tokens into public prompts — the SKILL.md example uses a placeholder token; supply tokens securely when you actually call the API; (2) confirm you intend to interact with coze.cn / coze.com and that those endpoints are correct for your region; (3) because the skill's source/homepage are unknown, be cautious about trusting any external instructions that ask you to run code or share credentials — this particular skill doesn't request them, but any subsequent code snippets or third-party plugins you follow up on might; (4) follow least-privilege practices for any API keys and test bots in a sandbox or with restricted data before publishing.
Capability Analysis
Type: OpenClaw Skill
Name: coze
Version: 1.0.0
The skill bundle is a documentation-based persona for an AI agent to act as a Coze platform expert. The content in SKILL.md consists of educational instructions, workflow descriptions, and a standard Python code snippet for API interaction with legitimate domains (coze.cn/coze.com). No malicious code, data exfiltration attempts, or harmful prompt injections were found.
Capability Assessment
Purpose & Capability
Name/description describe a Coze bot development assistant and the SKILL.md content is focused on bot building, plugins, workflows, knowledge bases and publishing channels — all coherent with the stated purpose.
Instruction Scope
The instructions stay within the domain of building and publishing Coze bots. The doc includes an example HTTP API call with an Authorization Bearer token (pat_xxx), but it does not instruct the agent to read unrelated files, environment variables, or system state. Metadata does not declare any required env vars even though the docs show how an API token would be used.
Install Mechanism
No install spec and no code files (instruction-only). This is the lowest-risk model: nothing will be written to disk or automatically installed by the skill.
Credentials
The skill declares no required environment variables or credentials. The documentation shows usage of an API Bearer token for Coze, which is expected for calling the service; lack of declared env vars is not harmful but means the user must supply tokens at runtime. No unrelated secrets are requested.
Persistence & Privilege
always is false, the skill does not request permanent presence or system-wide changes, and there are no installation scripts or config writes described.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install coze - After installation, invoke the skill by name or use
/coze - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of Coze AI Bot development assistant.
- Provides comprehensive guidance on building bots with Coze, including workflows, plugin development, and knowledge base configuration.
- Details the entire bot setup process: creation, plugin integration (built-in & custom), knowledge base segmentation/retrieval, and workflow orchestration.
- Lists supported publishing channels: Doubao, WeChat, Feishu, web embed, and API integration.
- Includes sample Coze API usage and practical bot use cases.
- Offers best practices for prompts, segmentation, workflow design, and environment selection (coze.cn/coze.com).
Metadata
Frequently Asked Questions
What is Coze?
Coze 扣子 AI Bot 开发助手,精通 Bot 搭建、插件开发、工作流编排、知识库配置. It is an AI Agent Skill for Claude Code / OpenClaw, with 386 downloads so far.
How do I install Coze?
Run "/install coze" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Coze free?
Yes, Coze is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Coze support?
Coze is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Coze?
It is built and maintained by zhangifonly (@zhangifonly); the current version is v1.0.0.
More Skills