本接口用于创建 AI 智能体
https://brtc-api.baijiayun.com/vcs/aiagent/v1/create
dify
openclaw
text
{ "app_id": "string", "room_id": "string", "peer_user_id": [ "string" ], "type": 1, "force_create": false, "task_idle_time": 300, "interrupt_mode": 1, "avatar_enable": false, "external_agent_enable": true, "external_agent_config": { "type": "openclaw", "openclaw_id": "openclaw-83431b511ce8", "input_modalities": [ "text" ], "output_modalities": [ "text" ] }, "server3a_enable": false, "greeting_msg": "string", "self_introduction": "string", "llm_config": { "vendor": "string", "model": "string", "app_key": "string", "url": "string", "input_modalities": [ "text" ], "output_modalities": [ "text" ], "prompt": "string", "temperature": 0, "max_history": 0, "param": {} }, "asr_config": { "type": "tingwu", "param": { "domain": "string", "region": "string", "access_key_id": "string", "access_key_secret": "string", "app_key": "string" } }, "tts_config": { "type": "aliyunisi", "skip_symbol": [ 0 ], "param": { "domain": "string", "region": "string", "access_key_id": "string", "access_key_secret": "string", "app_key": "string", "ws_url": "string", "voice": "string" } }, "vad_config": { "interrupt_duration": 500, "prefix_padding": 200, "silence_duration": 500, "volume_threshold": 50, "detect_threshold": 0.5 }, "avatar_config": { "type": "string", "param": {} } }
说明: 当 external_agent_enable 为 true 且 external_agent_config.type 为 "openclaw" 时,表示对接 OpenClaw 外部智能体。 external_agent_config.openclaw_id 为需要绑定的 OpenClaw 实例(实例需处于可用状态) OpenClaw 实例的创建、释放、查询、列表等管理操作通过 /aiagent/v1/openclaw/* 接口进行,详见 OpenClaw 实例管理。
说明:
external_agent_enable
true
external_agent_config.type
"openclaw"
external_agent_config.openclaw_id
/aiagent/v1/openclaw/*
返回示例
200 Response
{ "code": 200, "data": { "agent_id": "abcedafeaga1231", "agent_user_id": "record#1234" }, "msg": "succeed" }
创建AI智能体
描述
本接口用于创建 AI 智能体
接口请求地址
请求参数
- 1: 对话智能体
- 2: 语音转写智能体
- 1: 自动打断
- 2: 手动打断
-
dify: 对接 Dify 平台-
openclaw: 对接 OpenClaw 实例openclaw时有效。- 指定: 绑定已有的 OpenClaw 实例
- 不指定: 系统自动创建一个新的实例
-
text: 文本-
text: 文本请求参数 json 模板
返回参数
返回数据结构