Skip to main content
POST
Create Conversation

创建智能体对话

URL: /v1/agent/conversations 方法: POST 描述: 创建一个新的智能体对话会话

请求参数

响应参数

请求示例

cURL
Python

响应示例

Authorizations

Authorization
string
header
required

Enter your Bearer token

Body

application/json

创建 agent 对话请求

agent_id
integer

智能体 ID(可选,不传则使用系统默认智能体)

Example:

11887655289749510

title
string

对话标题

Example:

"nvidia 最新业绩分析"

conversation_type
string

对话类型(agent_chat, task_chat, debug_chat, bot_chat)

Example:

"bot_chat"

meta
Meta · object

元数据

channel
string

消息来源渠道(如 feishu, wecom, web),agent 完成后会回调通知对应渠道

Example:

"feishu"

Response

Successful Response

创建 agent 对话响应

id
integer
required

对话 ID

Example:

123456789

user_id
integer
required

用户 ID

Example:

987654321

agent_id
integer
required

智能体 ID

Example:

11887655289749510

type
string
required

对话类型

Example:

"agent_chat"

status
string
required

对话状态

Example:

"active"

created_at
integer
required

创建时间戳(毫秒)

Example:

1765851195760

updated_at
integer
required

更新时间戳(毫秒)

Example:

1765851195768

title
string

对话标题

Example:

"nvidia 最新业绩分析"

url
string

对话页面链接

Example:

"https://reportify.cn/agents/11887655289749510/chat/123456789"

shared_url
string

对话分享链接

Example:

"https://reportify.cn/share/chat/11887655289749510-123456789"