{
  "name": "Automate Reddit Monitoring with GPT-5-Mini, Notion, and Gmail",
  "nodes": [
    {
      "id": "ac7d73be-7fdb-4451-a29e-7f41f7d60cfe",
      "name": "Send a message",
      "type": "n8n-nodes-base.gmail",
      "position": [
        5200,
        336
      ]
    },
    {
      "id": "d5907ad8-26a5-47ca-8a67-529fef1da906",
      "name": "Define Keywords And Subreddits",
      "type": "n8n-nodes-base.set",
      "position": [
        -704,
        0
      ]
    },
    {
      "id": "6448edd0-f5ba-438c-911b-d6bd3c1dae4f",
      "name": "Define Relevance Criteria",
      "type": "n8n-nodes-base.set",
      "position": [
        96,
        0
      ]
    },
    {
      "id": "de0320b0-ce93-4b53-a3f0-94599cffbfb9",
      "name": "Define Instructions For Generating Comments",
      "type": "n8n-nodes-base.set",
      "position": [
        480,
        0
      ]
    },
    {
      "id": "2aa8950e-1857-4216-9817-17e523fe7d4e",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -1184,
        0
      ]
    },
    {
      "id": "fafe3021-78a0-4599-86ad-e0b33f213ef6",
      "name": "Split Out Keywords",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -272,
        0
      ]
    },
    {
      "id": "4ebf2b56-4480-4579-af2e-d72c5f0c1efa",
      "name": "Search Reddit",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        864,
        0
      ]
    },
    {
      "id": "c07aea1c-fdec-4c3c-a44d-50081b60326e",
      "name": "Generate HTML Email",
      "type": "n8n-nodes-base.code",
      "position": [
        4736,
        336
      ]
    },
    {
      "id": "a4c3c234-1547-441e-a433-9881f1f41b0f",
      "name": "Combine Posts Into A Single Array",
      "type": "n8n-nodes-base.code",
      "position": [
        2128,
        0
      ]
    },
    {
      "id": "0fdb3415-37db-4b57-8179-f674ddb9d90c",
      "name": "Add Relevance Score And Comment To Each Post",
      "type": "n8n-nodes-base.code",
      "position": [
        3632,
        0
      ]
    },
    {
      "id": "b6bf431b-c178-4b84-85fb-a5b79193f3d5",
      "name": "Add Each Post to Notion Database",
      "type": "n8n-nodes-base.notion",
      "position": [
        5200,
        0
      ]
    },
    {
      "id": "06869200-6a5f-470d-b141-a8c8b65944ab",
      "name": "Filter Reddit Items With No Posts",
      "type": "n8n-nodes-base.filter",
      "position": [
        1280,
        0
      ]
    },
    {
      "id": "70a03e4c-39c7-41b3-bd9d-eb2ecce6ff95",
      "name": "Aggregate Reddit Items",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        1696,
        0
      ]
    },
    {
      "id": "8b38ccbe-71eb-443a-8647-5ead7884e8d4",
      "name": "Split Out Posts",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        2560,
        0
      ]
    },
    {
      "id": "f9ff8d99-95d1-42e3-999f-24c139997428",
      "name": "Aggregate Posts",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        4192,
        0
      ]
    },
    {
      "id": "ad631fbe-3668-46e5-b0e0-39f387af73a5",
      "name": "Split Out Posts Into Items",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        4736,
        0
      ]
    },
    {
      "id": "039c6035-b7fb-4639-a6d5-49261a53f028",
      "name": "Analyze Each Post",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        3008,
        0
      ]
    },
    {
      "id": "9c856cc1-3c5b-496f-933b-848c0b817e91",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2064,
        -272
      ],
      "parameters": {
        "width": 480,
        "height": 880,
        "content": "## How it works\nThis workflow runs daily to scan Reddit for posts matching your keywords—in specific subreddits or site-wide. It pulls new posts via the Reddit API (no credentials needed), then uses G"
      }
    },
    {
      "id": "ae309022-618a-4f08-b4cf-de201e8d99c7",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1328,
        -272
      ],
      "parameters": {
        "width": 4064,
        "height": 880,
        "content": "## 1. Fetch Latest Posts Matching Keywords from Subreddits\n\nSet your keywords, subreddits, relevance rules, and comment generation instructions in the **Define** nodes below. To search across all subr"
      }
    },
    {
      "id": "77a24a37-6642-4d7b-9489-eec3e6da2370",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2864,
        -272
      ],
      "parameters": {
        "width": 2640,
        "height": 880,
        "content": "## 2. Analyze Each Post Using GPT-5-Mini for Relevance and Comments, Save to Notion, and Optionally Send Email\n\nUse the following Notion page as your template: [Notion Page](https://scoutnow.notion.si"
      }
    }
  ],
  "connections": {
    "Search Reddit": {
      "main": [
        [
          {
            "node": "Filter Reddit Items With No Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate Posts": {
      "main": [
        [
          {
            "node": "Generate HTML Email",
            "type": "main",
            "index": 0
          },
          {
            "node": "Split Out Posts Into Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out Posts": {
      "main": [
        [
          {
            "node": "Analyze Each Post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Define Keywords And Subreddits",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze Each Post": {
      "main": [
        [
          {
            "node": "Add Relevance Score And Comment To Each Post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out Keywords": {
      "main": [
        [
          {
            "node": "Define Relevance Criteria",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate HTML Email": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate Reddit Items": {
      "main": [
        [
          {
            "node": "Combine Posts Into A Single Array",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Define Relevance Criteria": {
      "main": [
        [
          {
            "node": "Define Instructions For Generating Comments",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out Posts Into Items": {
      "main": [
        [
          {
            "node": "Add Each Post to Notion Database",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Define Keywords And Subreddits": {
      "main": [
        [
          {
            "node": "Split Out Keywords",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Combine Posts Into A Single Array": {
      "main": [
        [
          {
            "node": "Split Out Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Reddit Items With No Posts": {
      "main": [
        [
          {
            "node": "Aggregate Reddit Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Define Instructions For Generating Comments": {
      "main": [
        [
          {
            "node": "Search Reddit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add Relevance Score And Comment To Each Post": {
      "main": [
        [
          {
            "node": "Aggregate Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}