{
  "name": "PROD_02_Data_Processing_Workflow",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "hours",
              "hoursInterval": 6
            }
          ]
        },
        "options": {}
      },
      "id": "1",
      "name": "Schedule_Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1,
      "position": [
        250,
        300
      ]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "1",
              "name": "batch_size",
              "value": "100",
              "type": "number"
            },
            {
              "id": "2",
              "name": "source",
              "value": "data_lake",
              "type": "string"
            }
          ]
        }
      },
      "id": "2",
      "name": "Set_Params",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3,
      "position": [
        450,
        300
      ]
    },
    {
      "parameters": {
        "method": "GET",
        "url": "https://api.example.com/data/batch",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "size",
              "value": "={{ $json.batch_size }}"
            },
            {
              "name": "source",
              "value": "={{ $json.source }}"
            }
          ]
        },
        "options": {}
      },
      "id": "3",
      "name": "Fetch_Batch_Data",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4,
      "position": [
        650,
        300
      ]
    },
    {
      "parameters": {
        "jsCode": "const data = $input.first().json;\nconst records = data.records || [];\nconst processed = records.map(r => ({\n  id: r.id,\n  value: r.value * 1.1,\n  category: r.category || 'unknown',\n  processed: true\n}));\nreturn { processed_records: processed, count: processed.length };"
      },
      "id": "4",
      "name": "Transform_Data",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        850,
        300
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.example.com/data/store",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "records",
              "value": "={{ JSON.stringify($json.processed_records) }}"
            }
          ]
        },
        "options": {}
      },
      "id": "5",
      "name": "Store_Processed",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4,
      "position": [
        1050,
        300
      ]
    },
    {
      "parameters": {
        "to": "data_team",
        "text": "={{ 'Data Processing Complete | Records: ' + $json.count + ' | Source: ' + $json.source }}",
        "additionalFields": {}
      },
      "id": "6",
      "name": "Telegram_Report",
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1,
      "position": [
        1250,
        300
      ]
    }
  ],
  "connections": {
    "Schedule_Trigger": {
      "main": [
        [
          {
            "node": "Set_Params",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set_Params": {
      "main": [
        [
          {
            "node": "Fetch_Batch_Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch_Batch_Data": {
      "main": [
        [
          {
            "node": "Transform_Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Transform_Data": {
      "main": [
        [
          {
            "node": "Store_Processed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Store_Processed": {
      "main": [
        [
          {
            "node": "Telegram_Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "prod-02-v1",
  "id": "PROD02DATAPROCESSING",
  "tags": [
    {
      "name": "production"
    },
    {
      "name": "data-processing"
    }
  ]
}