{
  "data": {
    "results": [
      {
        "uid": "WORKFLOW001",
        "type": "WORKFLOW",
        "subType": "AI_AGENT",
        "uniqueIdentifier": "ticket-escalation-workflow",
        "name": "Ticket Escalation Workflow",
        "version": 1,
        "triggerEvent": {
          "id": "EVENT001",
          "name": "ticket.created",
          "description": "Triggered when a new ticket is created"
        },
        "filters": {
          "priority": "high",
          "team": "support"
        },
        "annotations": [
          {
            "entityType": "ticket",
            "data": {
              "autoEscalate": true
            },
            "relations": ["escalation"]
          }
        ],
        "workflowDefinition": [
          {
            "stepIdentifier": 1,
            "activity": {
              "name": "send-notification",
              "uniqueIdentifier": "notification.activity",
              "version": 1,
              "autoUpgradeToLatestVersion": true
            },
            "input": {
              "recipients": ["support-team"],
              "message": "High priority ticket requires immediate attention"
            },
            "retryPolicy": {
              "maximumAttempts": 3,
              "initialInterval": 1000,
              "backoffCoefficient": 2
            },
            "onFailure": "CONTINUE",
            "isSleepActivity": false,
            "executionTimeout": 30000,
            "dependencies": [],
            "filters": {}
          },
          {
            "stepIdentifier": 2,
            "activity": {
              "name": "assign-to-senior-agent",
              "uniqueIdentifier": "assignment.activity",
              "version": 1,
              "autoUpgradeToLatestVersion": true
            },
            "input": {
              "priority": "high",
              "skillSet": ["escalation", "technical"]
            },
            "retryPolicy": {
              "maximumAttempts": 2,
              "initialInterval": 5000,
              "backoffCoefficient": 1.5
            },
            "onFailure": "ABORT",
            "isSleepActivity": false,
            "executionTimeout": 60000,
            "dependencies": [1],
            "filters": {}
          }
        ],
        "executingAgent": "workflow-engine",
        "isActive": true,
        "createdAt": "2025-07-24T07:19:10.258Z",
        "updatedAt": "2025-07-24T07:19:10.258Z",
        "createdBy": "USER001",
        "teamId": "TEAM001",
        "metadata": {
          "description": "Automated workflow for escalating high-priority tickets",
          "tags": ["escalation", "automation", "support"]
        }
      }
    ],
    "total": 1
  },
  "status": true,
  "message": "Workflows retrieved successfully!",
  "timestamp": "2025-07-25T12:50:38.937Z"
}