智能体创建
POST
/api/agent
求参数
Header 参数
Body 参数application/json
示例
{"avatar":"/uploads/image/2025/07/a4d271cc-f884-4822-aef2-47dc4ec5e762.jpeg","name":"我是一个微信智能体","description":"我是一个微信智能体我是一个微信智能体我是一个微信智能体"}求示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
求示例求示例
Shell
JavaScript
Java
Swift
curl--location'http://prod-cn.your-api-server.com/api/agent'\--header'Authorization: Bearer {{token}}'\--header'Content-Type: application/json'\--data'{ "avatar": "/uploads/image/2025/07/a4d271cc-f884-4822-aef2-47dc4ec5e762.jpeg", "name": "我是一个微信智能体", "description": "我是一个微信智能体我是一个微信智能体我是一个微信智能体"
}'返回响应
🟢201成功
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 篇文档 · 内容同步自官方帮助中心