智能体创建

POST
/api/agent

求参数

Header 参数

Body 参数application/json

示例
{"avatar":"/uploads/image/2025/07/a4d271cc-f884-4822-aef2-47dc4ec5e762.jpeg","name":"我是一个微信智能体","description":"我是一个微信智能体我是一个微信智能体我是一个微信智能体"}

求示例代码

返回响应

application/json
Bodyapplication/json

示例
{"code":0,"message":"string","data":{"name":"string","description":"string","avatar":"string","showContext":true,"showReference":true,"enableFeedback":true,"enableWebSearch":true,"userCount":0,"chatAvatar":null,"rolePrompt":null,"datasetIds":null,"openingStatement":null,"openingQuestions":null,"quickCommands":null,"autoQuestions":null,"id":"string","createdAt":"string","updatedAt":"string"},"timestamp":0}
修改于2026-05-25 07:28:35

319 篇文档 · 内容同步自官方帮助中心