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.

Paramètres de chemin

agent_idstringRequis
Agent ID to get the procedure draft from
branch_idstringRequis
Branch ID to get the procedure draft from

En-têtes

xi-api-keystringOptionnel

Réponse

Successful Response
workflowobject
Generated workflow from compilation

Erreurs

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