type is deterministic. That name identifies the authoring format; it is not a guarantee of deterministic conversation execution.
Compilation validates the structured content and returns a workflow preview containing the procedure instructions. It does not turn each step into a separately enforced workflow node, execute tools, or save the returned graph.
Define the steps
The procedure’scontent field is a string containing JSON, not a nested request object. The JSON inside that string must be an object with a steps array. For example, the inner content can be:
content string. The compiler checks these step types and required fields:
The presence of a required field is not proof that its referenced resource is usable or that a branch condition is complete. Do not invent an execution format for nested branch entries from this table alone.
Save and review
1
Choose real resources
Prepare an existing agent and editable branch. Resolve any tool or procedure identifiers against resources you can access. Start with steps that collect or explain information before adding external actions.
2
Create the procedure
Use Create procedure with
type: "deterministic", name, a clear trigger, and the serialized content. Read its branch draft back before further edits.3
Compile and correct errors
Call Compile procedures. Errors identify the procedure and a content path, such as
steps.0.instruction. Check JSON syntax, recognized step types, and required fields first.4
Inspect the preview
Review the generated additional prompt, trigger edges, and tool references. The compiler collects
tool_id values into additional tool references. Saving the graph to an agent draft is a separate action.Frequently asked questions
Why does content fail JSON validation?
Why does content fail JSON validation?
Parse the inner content separately. It must be a JSON object with a steps array, then serialized as a string in the procedure request. An array alone is not accepted as the content object.
Does successful compilation prove every step can run?
Does successful compilation prove every step can run?
No. It proves the compiler accepted the authored structure. Resource access, runtime behavior, and successful external actions require separate verification.