Legacy: Compile Procedures
Legacy: Compile Procedures
Legacy. Do not use. Saving an agent draft (`POST /v1/convai/agents/{agent_id}/drafts`) and publishing an agent (`PATCH /v1/convai/agents/{agent_id}`) compile structured procedures into workflow nodes and edges, save the compiled workflow with the draft or version, and return validation errors, so a separate compile call is no longer needed. This endpoint remains available for the time being so existing callers do not break, as a dry-run that compiles the current procedure drafts into a workflow without persisting anything. It will eventually be deprecated.
路径参数
agent_id
要获取流程草稿的智能体 ID
branch_id
Branch ID to get the procedure draft from
请求头
xi-api-key
响应
成功响应
workflow
根据编译生成的 workflow
错误
400
Bad Request Error
422
Unprocessable Entity Error