Create agent workflow binding¶
Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region.
Bind an agent task template to a workflow node. Successful creation only saves the binding and does not create plans or execution tasks.
POST $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/agent-workflow-bindings
Request body¶
Replace $WORKSPACE_ID, $CLOUDSIGMA_API_KEY, $WORKFLOW_ID, $TEMPLATE_ID in the example with actual values.
curl -X POST "$CLOUDSIGMA_API_BASE/workspaces/$WORKSPACE_ID/agent-workflow-bindings" -H "X-API-Key: $CLOUDSIGMA_API_KEY" -H "X-Workspace-ID: $WORKSPACE_ID" -H 'Content-Type: application/json' -d '{
"workflow_id": "'$WORKFLOW_ID'",
"node_id": "summary",
"agent_task_template_id": "'$TEMPLATE_ID'"
}'
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
The workspace ID to which it belongs. |
Request body
Field |
Type |
Required |
Description |
|---|---|---|---|
|
string |
No |
logo. |
|
string |
Yes |
workflow ID. |
|
string |
No |
workflow version ID. |
|
string |
Yes |
workflow node ID. |
|
string |
Yes |
Agent task template ID. |
|
object or null |
No |
Enter the mapping. |
|
object or null |
No |
Output mapping. |
|
object or null |
No |
Failure handling mapping. |
|
string |
No |
Binding status. |
|
object or null |
No |
Tag key-value pairs. |
|
object or null |
No |
Annotation key-value pairs. |
Custom id can be provided, which is generated by the server when omitted or empty. status defaults to active.
The referenced task template must exist in the current workspace. Saving a binding does not mean that other references have been verified and available.
Omit or fill in the mapping and label of null to use an empty configuration.
Successful response¶
{
"code": 0,
"data": {
"id": "binding_01",
"workspace_id": "",
"workflow_id": "wf_01",
"node_id": "root.prepare",
"agent_task_template_id": "template_01",
"status": "active",
"version": 0,
"created_at": "2026-08-21T07:00:00Z",
"updated_at": "2026-08-21T07:00:00Z"
}
}
Field |
Type |
Description |
|---|---|---|
|
string |
Create a new binding ID. |
|
string |
The workspace ID to which it belongs. |
|
string |
workflow ID. |
|
string |
workflow version ID. |
|
string |
Full node path. |
|
string |
Association template ID. |
|
object |
Enter the mapping. |
|
object |
Output mapping. |
|
object |
Failed mapping. |
|
string |
status. Values: |
|
integer |
version. |
|
object |
Tag mapping. |
|
object |
Annotation mapping. |
|
string |
Creator. |
|
string |
Last updated by. |
|
string |
Creation time. RFC 3339 time. |
|
string |
Update time. RFC 3339 time. |
Error response¶
When the same workflow version, node and binding condition hit the unique key, 409 is returned. Reusing custom IDs may also create conflicts.
{
"code": 4,
"message": "agent workflow binding already exists"
}
Common HTTP errors
HTTP status code |
error code |
Description |
|---|---|---|
|
|
Common reasons: The bound field is invalid. Recommended Action: Check workflow, node and template identification. |
|
|
Common reasons: The same workflow node is already bound. Recommended Action: Query or update existing bindings. |