{
  "id": "TEMPLATE_WORKFLOW_ID",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "Reddit Sentiment Analysis",
  "tags": [],
  "nodes": [
    {
      "id": "b38ce2cf-0db8-448f-9447-41fa2ad7deb0",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -440,
        -140
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "22a4c3e7-7013-4628-8df1-2398aad3ff80",
      "name": "Get many comments in a post",
      "type": "n8n-nodes-base.reddit",
      "position": [
        100,
        80
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "83bb326b-ad7e-4c30-bad3-f2a2a2a51300",
      "name": "Get many posts",
      "type": "n8n-nodes-base.reddit",
      "position": [
        -240,
        80
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "1d211962-4178-4454-8c80-1c00bbdd13e8",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -400,
        80
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "5c8e928b-1eb7-4e81-8d8c-6adc79914c5c",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -60,
        80
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "6f00526d-b220-44a2-8cca-8c2284b7d097",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        280,
        80
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "41d1795e-14e4-4a20-8852-c432d875833d",
      "name": "OpenRouter Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        720,
        260
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "dc60016c-55bd-48b1-b368-abe79c939055",
      "name": "Structured Data Generator",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        820,
        100
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "69a475a7-631d-41c9-aeb5-4ac09ebf5536",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "position": [
        1120,
        100
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "29ed9837-4dca-4c7b-9110-6c118cf9d914",
      "name": "Respond to Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1260,
        100
      ],
      "parameters": {},
      "typeVersion": 1.4
    },
    {
      "id": "9e595a99-ca1e-47f1-b3c1-a3acaea64546",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        480,
        -140
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "400088ab-5276-4554-940e-1d98448eb0e9",
      "name": "Sentiment Analyzer",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        500,
        100
      ],
      "parameters": {},
      "typeVersion": 1.7
    }
  ],
  "active": true,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "NEW_VERSION_ID",
  "connections": {
    "Code": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook": {
      "main": [
        [
          {
            "node": "Get many posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Get many comments in a post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get many posts": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          },
          {
            "node": "Sentiment Analyzer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Sentiment Analyzer": {
      "main": [
        [
          {
            "node": "Structured Data Generator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Structured Data Generator",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Sentiment Analyzer",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Data Generator": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get many comments in a post": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}