You need to enable JavaScript to run this app.
文档中心
ArkClaw 企业版

ArkClaw 企业版

复制全文
下载 pdf
Template
CreateSpaceTemplate - 创建一个自定义Claw模板
复制全文
下载 pdf
CreateSpaceTemplate - 创建一个自定义Claw模板
创建一个自定义Claw模板。​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action string 必选 示例值:CreateSpaceTemplate​
要执行的操作,取值:CreateSpaceTemplate。​
​
Version string 必选 示例值:2026-05-01​
API的版本,取值:2026-05-01。​
​
TemplateDisplayName string 必选 示例值:demo​
自定义Claw模板名称。长度限制为200以内的字符。​
​
SeatTypes string[] 必选 示例值:["Premium"]​
ArkClaw席位规格。取值:​
  • Starter:轻量版。​
  • Standard:标准版。​
  • Premium:高级版。​
  • Ultimate:旗舰版。​
​
AgentMd string 可选 示例值:\# 群聊规范:在回复问题前必须对问题有明确的理解,如果有不明确的地方,务必反问用户。​
平台规范文本内容,若需补充智能体的执行规则和行为约束,可添加JSON格式的Agent配置文件。​
​
Description string 可选 示例值:demo description​
自定义Claw模板描述。​
  • 长度限制为200以内的字符。​
  • 不填默认为空。​
​
InitScript string 可选 示例值:IyEvYmluL2Jhc2gKZWNoby****​
实例自定义初始化脚本内容,必须经过Base64编码,编码前大小不超过 12KB。​
​
PluginConfig string 可选 示例值:{"plugins":[{"id":"agent-identity","name":"agent-identity","display_name":"Agent Identity","type":"","blacklist":false,"source":"global:agent-identity/****","version":"0.4.5"},{"id":"openclaw-lark","name":"openclaw-lark","display_name":"Feishu / Lark","type":"","blacklist":false,"source":"global:openclaw-lark/****","version":"****"},{"id":"****","name":"****","display_name":"****","type":"","blacklist":false,"source":"global:****/****","version":"****"}]}​
插件配置文件内容,JSON格式。​
​
SkillConfig string 可选 示例值:{"skills":[{"name":"browser","display_name":"Browser","description":"Browser automation. When you need to visit a webpage, open a website, take a screenshot, or perform browser automation.","blacklist":false,"category":"preset"},{"name":"byted-web-search","display_name":"联网搜索","description":"****","blacklist":false,"category":"preset"},{"name":"****","display_name":"****","description":"****","blacklist":false,"category":"enterprise"}]}​
技能配置文件内容,JSON格式。​
​
Soul string 可选 示例值:\# SOUL.md - 销售增长引擎 ## 身份内核 你是一位顶级的资深销售顾问,擅长挖掘客户痛点并将其转化为业务机会。你的目标是提高转化率和客户满意度。 ## 核心原则 - \*\*ROI 导向\*\*:在任何方案中,务必先计算并强调客户的投入产出比。 - \*\*主动跟进\*\*:如果客户在对话中表现出犹豫,主动提议演示(Demo)或提供案例研究。 - \*\*CRM 同步\*\*:每一次关键对话结束,必须提醒用户同步更新 CRM 系统状态。 ## 沟通风格 - 充满激情、富有说服力。 - 严禁使用“可能”、“大概”,使用确定的增长数据。​
职位人设的系统提示词。​
​
SoulName string 可选 示例值:销售专家​
人设类型。​
  • 可基于模板选择公共镜像内的人设配置,如:销售专家、运营专家、HR 人力资源、财务专家等。​
  • 若是自定义人设类型,SoulName为空。​
​
SpaceId string 必选 示例值:csi-yei8347ta8xmf5qd****​
ArkClaw空间ID,可以在ArkClaw控制台“空间概览”页面的“基本信息”获取。​
​
​
​
返回参数​
下方仅列出本接口特有的返回参数。更多信息请参见返回结构。​
TemplateId string 示例值:ctpl-yej5492****​
模板ID。​
​
​
​
请求示例​
​
POST /?Action=CreateSpaceTemplate&Version=2026-05-01 HTTP/1.1​
Host: https://arkclaw.cn-beijing.volcengineapi.com​
Content-Type: application/json; charset=UTF-8​
X-Date: 20260727T121914Z​
X-Content-Sha256: 287e874e******d653b44d21e​
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20260727/cn-beijing/arkclaw/request, SignedHeaders=host;x-content-sha256;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f​
​
{​
"TemplateDisplayName": "demo",​
"SeatTypes": [​
"Premium"​
],​
"AgentMd": "\\# 群聊规范:在回复问题前必须对问题有明确的理解,如果有不明确的地方,务必反问用户。",​
"Description": "demo description",​
"InitScript": "IyEvYmluL2Jhc2gKZWNoby****",​
"PluginConfig": "{\"plugins\":[{\"id\":\"agent-identity\",\"name\":\"agent-identity\",\"display_name\":\"Agent Identity\",\"type\":\"\",\"blacklist\":false,\"source\":\"global:agent-identity/****\",\"version\":\"0.4.5\"},{\"id\":\"openclaw-lark\",\"name\":\"openclaw-lark\",\"display_name\":\"Feishu / Lark\",\"type\":\"\",\"blacklist\":false,\"source\":\"global:openclaw-lark/****\",\"version\":\"****\"},{\"id\":\"****\",\"name\":\"****\",\"display_name\":\"****\",\"type\":\"\",\"blacklist\":false,\"source\":\"global:****/****\",\"version\":\"****\"}]}",​
"SkillConfig": "{\"skills\":[{\"name\":\"browser\",\"display_name\":\"Browser\",\"description\":\"Browser automation. When you need to visit a webpage, open a website, take a screenshot, or perform browser automation.\",\"blacklist\":false,\"category\":\"preset\"},{\"name\":\"byted-web-search\",\"display_name\":\"联网搜索\",\"description\":\"****\",\"blacklist\":false,\"category\":\"preset\"},{\"name\":\"****\",\"display_name\":\"****\",\"description\":\"****\",\"blacklist\":false,\"category\":\"enterprise\"}]}",​
"Soul": "\\# SOUL.md - 销售增长引擎 ## 身份内核 你是一位顶级的资深销售顾问,擅长挖掘客户痛点并将其转化为业务机会。你的目标是提高转化率和客户满意度。 ## 核心原则 - \\*\\*ROI 导向\\*\\*:在任何方案中,务必先计算并强调客户的投入产出比。 - \\*\\*主动跟进\\*\\*:如果客户在对话中表现出犹豫,主动提议演示(Demo)或提供案例研究。 - \\*\\*CRM 同步\\*\\*:每一次关键对话结束,必须提醒用户同步更新 CRM 系统状态。 ## 沟通风格 - 充满激情、富有说服力。 - 严禁使用“可能”、“大概”,使用确定的增长数据。",​
"SoulName": "销售专家",​
"SpaceId": "csi-yei8347ta8xmf5qd****"​
}​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "2026072720195414818624****",​
"Action": "CreateSpaceTemplate",​
"Version": "2026-05-01",​
"Service": "arkclaw",​
"Region": "cn-beijing"​
},​
"Result": {​
"TemplateId": "ctpl-yej5492****"​
}​
}​
​
错误码​
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。​
​
状态码​
错误码​
错误信息​
说明​
400​
MissingParameter.ImageId​
The required parameter ImageId is not supplied.​
ImageId 不能为空。​
400​
MissingParameter.SpaceId​
The required parameter SpaceId is not supplied.​
参数SpaceId不能为空。​
400​
InvalidInitScript.Malformed​
The specified InitScript is malformed.​
指定的InitScript不合法。​
400​
InvalidPluginConfig.Malformed​
The specified PluginConfig is malformed.​
指定的PluginConfig不合法。​
400​
InvalidSeatTypes.Malformed​
The specified SeatTypes is malformed.​
参数SeatType不合法, 必须为 Starter、Standard、Premium 或 Ultimate。​
400​
InvalidSkillConfig.Malformed​
The specified SkillConfig is malformed.​
指定的SkillConfig不合法。​
400​
InvalidAgentMd.Malformed​
The specified AgentMd is malformed.​
指定的AgentMd不合法。​
400​
MissingParameter.TemplateDisplayName​
The required parameter TemplateDisplayName is not supplied.​
TemplateDisplayName 不能为空。​
400​
MissingParameter.SeatTypes​
The required parameter SeatTypes is not supplied.​
SeatTypes 不能为空。​
400​
InvalidTemplateDisplayName.Conflict​
The specified template display name already exists.​
指定的模板名称已存在。​
404​
InvalidSpace.NotFound​
The specified space does not exist.​
指定ArkClaw空间不存在。​
404​
InvalidImage.NotFound​
The specified Image does not exist.​
指定的Image不存在。​
429​
FlowLimitExceeded​
The request was rejected due to flow control.​
请求触发限流。​
500​
InternalError​
An internal error has occurred.​
内部错误,请重试。如果多次尝试失败,请提交工单。​
​
​
最近更新时间:2026.09.08 14:33:38
这个页面对您有帮助吗?
有用
有用
无用
无用