Compile Procedures (legacy)

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_idstring必需
Agent ID to get the procedure draft from
branch_idstring必需
Branch ID to get the procedure draft from

请求头

xi-api-keystring可选

响应

Successful Response
workflowobject
Generated workflow from compilation

错误

400
Procedures Compile Request Bad Request Error
422
Procedures Compile Request Unprocessable Entity Error