跳到导航

创建会话

Alpha
Create a text conversation with an agent. This does not run the agent, and the agent sends no first message. This endpoint is in alpha and may change.

请求头

xi-api-keystring可选

请求

This endpoint expects an object.
agentobject必需

执行这些轮次的智能体。

environmentstring可选

用于解析环境变量的环境(例如“production”“staging”)。默认使用分支的环境,其次为“production”。

user_idstring可选

参与此对话的最终用户 ID(用于智能体所有者识别用户)

dynamic_variablesmap from strings to any可选

响应

成功响应

conversation_idstring

错误

422
Conversations Create Request Unprocessable Entity Error