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.

Parametry ścieżki

agent_idstringWymagany
Agent ID to get the procedure draft from
branch_idstringWymagany
Branch ID to get the procedure draft from

Nagłówki

xi-api-keystringOpcjonalny

Odpowiedź

Successful Response
workflowobject
Generated workflow from compilation

Błędy

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