Template JSON
{
"nodes": [
{
"id": "start-1",
"type": "start",
"label": "Start",
"x": 80,
"y": 160,
"position": {
"x": 80,
"y": 160
},
"config": {
"publicSafe": true,
"protectedAction": false
},
"status": "idle",
"metadata": {}
},
{
"id": "transform-2",
"type": "transform",
"label": "Normalize request",
"x": 310,
"y": 240,
"position": {
"x": 310,
"y": 240
},
"config": {
"publicSafe": true,
"protectedAction": false,
"transform": "redact_and_summarize"
},
"status": "idle",
"metadata": {}
},
{
"id": "approval-3",
"type": "approval",
"label": "Human approval",
"x": 540,
"y": 160,
"position": {
"x": 540,
"y": 160
},
"config": {
"publicSafe": true,
"protectedAction": false,
"requiredRole": "operator"
},
"status": "idle",
"metadata": {}
},
{
"id": "trace_event-4",
"type": "trace_event",
"label": "Trace decision",
"x": 770,
"y": 240,
"position": {
"x": 770,
"y": 240
},
"config": {
"publicSafe": true,
"protectedAction": false,
"eventName": "agentui.approval.decision"
},
"status": "idle",
"metadata": {}
},
{
"id": "end-5",
"type": "end",
"label": "Complete",
"x": 1000,
"y": 160,
"position": {
"x": 1000,
"y": 160
},
"config": {
"publicSafe": true,
"protectedAction": false
},
"status": "idle",
"metadata": {}
}
],
"edges": [
{
"id": "edge-1",
"source": "start-1",
"target": "transform-2",
"sourceNodeId": "start-1",
"targetNodeId": "transform-2",
"condition": "success",
"metadata": {}
},
{
"id": "edge-2",
"source": "transform-2",
"target": "approval-3",
"sourceNodeId": "transform-2",
"targetNodeId": "approval-3",
"metadata": {}
},
{
"id": "edge-3",
"source": "approval-3",
"target": "trace_event-4",
"sourceNodeId": "approval-3",
"targetNodeId": "trace_event-4",
"metadata": {}
},
{
"id": "edge-4",
"source": "trace_event-4",
"target": "end-5",
"sourceNodeId": "trace_event-4",
"targetNodeId": "end-5",
"metadata": {}
}
]
}