{
  "name": "Turns Reddit Pain Points into Comic Ads using Dumpling AI and GPT-4o",
  "nodes": [
    {
      "id": "f4fc6167-f09e-4e8d-ae2e-c128689dc05a",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2520,
        60
      ],
      "parameters": {
        "width": 580,
        "height": 340,
        "content": "## Generate Reddit Keyword "
      }
    },
    {
      "id": "c19c062e-fc6f-407f-a44b-58aae492e5b3",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1880,
        60
      ],
      "parameters": {
        "width": 340,
        "height": 340,
        "content": "## Scrape Reddit"
      }
    },
    {
      "id": "c919fbb8-61a0-4bb3-9d79-4faa3eeb3d49",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1480,
        60
      ],
      "parameters": {
        "width": 340,
        "height": 340,
        "content": "## Filter Posts By Popularity"
      }
    },
    {
      "id": "0b83d09e-50fe-44f0-89b1-3d7f20efb303",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "width": 400,
        "height": 400,
        "content": "## Turn Painpoints Into Messaging"
      }
    },
    {
      "id": "28c02aa5-e847-4c6d-b073-e69809e75193",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        460,
        0
      ],
      "parameters": {
        "width": 400,
        "height": 400,
        "content": "## Rank Top 10 Messaging"
      }
    },
    {
      "id": "2eb799c8-3508-400f-9d06-e20d948f5e6c",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        920,
        0
      ],
      "parameters": {
        "width": 460,
        "height": 400,
        "content": "## Create Image Prompt"
      }
    },
    {
      "id": "eb0c6704-0564-4790-ac22-77f70717552c",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1700,
        0
      ],
      "parameters": {
        "width": 900,
        "height": 400,
        "content": "## Create Images"
      }
    },
    {
      "id": "f6ed7871-877d-4c6e-a79d-f82340d66d8b",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1080,
        60
      ],
      "parameters": {
        "width": 500,
        "height": 340,
        "content": "## Post Relevance Classifier"
      }
    },
    {
      "id": "dd79b536-54eb-402c-88b5-c0380c14003d",
      "name": "When a Form is Submitted",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -2460,
        180
      ]
    },
    {
      "id": "b08b7c80-31bb-4b98-b5b0-7a9e15e51145",
      "name": "Generate Reddit Keyword from Product Description",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -2260,
        180
      ]
    },
    {
      "id": "6d4393f5-766b-4f22-8e74-cc91c3f0f845",
      "name": "Search Reddit Posts Using Keyword",
      "type": "n8n-nodes-base.reddit",
      "position": [
        -1760,
        180
      ]
    },
    {
      "id": "70a1070c-afd3-4122-b330-1f1e5a45b2db",
      "name": "Filter Posts With 2+ Upvotes and Text",
      "type": "n8n-nodes-base.if",
      "position": [
        -1360,
        180
      ]
    },
    {
      "id": "2e693051-f01f-44a0-b869-632c3cb6dbad",
      "name": "Classify Post Relevance to Product",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -960,
        120
      ]
    },
    {
      "id": "e928ec1b-d561-4215-a28f-bcac7d9e24f3",
      "name": "GPT Model: Classify Relevance",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1020,
        260
      ]
    },
    {
      "id": "1bab21d3-14b8-4759-b7d7-a016425ee0d2",
      "name": "Support Relevance Classification",
      "type": "@n8n/n8n-nodes-langchain.toolThink",
      "position": [
        -860,
        260
      ]
    },
    {
      "id": "308e57d1-c2a5-4e48-91fc-deb14f115581",
      "name": "Parse Relevance Classifier Output",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -720,
        260
      ]
    },
    {
      "id": "72d68a9b-3fde-4674-bb28-8719fdfaa4f0",
      "name": "Format Relevant Reddit Post Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        -460,
        100
      ]
    },
    {
      "id": "3492ed8f-38f2-4070-bb16-11d84aa0e5eb",
      "name": "Aggregate Relevant Reddit Data",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        -220,
        100
      ]
    },
    {
      "id": "a17a3e7a-a6a1-430e-bc1d-94f426979cee",
      "name": "Generate 10 Ad Angles From Reddit Posts",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        80,
        100
      ]
    },
    {
      "id": "aae11d8a-52a2-4a43-95b2-42fe170e8788",
      "name": "Ad Angle Generation",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        120,
        320
      ]
    },
    {
      "id": "b635fcac-3454-4bd2-a27b-e9979a9c2a0c",
      "name": "Support Ad Angle Generation",
      "type": "@n8n/n8n-nodes-langchain.toolThink",
      "position": [
        260,
        240
      ]
    },
    {
      "id": "6a8a74ab-ed4c-45a1-9b71-3aab97785741",
      "name": "Rank Top 10 Ad Angles",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        540,
        100
      ]
    },
    {
      "id": "9f09b164-5095-4500-a818-51c9372d0b9b",
      "name": "Create Comic Prompts from Ad Angles",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1040,
        100
      ]
    },
    {
      "id": "b410b8c2-92fd-45aa-8385-4b84beac4f1a",
      "name": "Comic Prompt Creation",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        860,
        400
      ]
    },
    {
      "id": "8e3ce61a-5ecc-474b-833a-69db90ababde",
      "name": "Support Comic Prompt Creation",
      "type": "@n8n/n8n-nodes-langchain.toolThink",
      "position": [
        1100,
        260
      ]
    },
    {
      "id": "e5976fc3-e05d-4240-8504-f33a80d91855",
      "name": "Parse Comic Prompt JSON Output",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1240,
        260
      ]
    },
    {
      "id": "dd68fec9-f977-4021-a2ce-1e42e95da827",
      "name": "Split Comic Prompt Objects",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        1480,
        100
      ]
    },
    {
      "id": "472436c2-4ebb-4bba-b4b6-98e8cfbea3a5",
      "name": "Loop Through Comic Prompts",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1780,
        100
      ]
    },
    {
      "id": "5b33f353-1c50-4bdf-be94-cf1080a6eff3",
      "name": "Generate Comic Image via Dumpling AI",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2000,
        100
      ]
    },
    {
      "id": "8fd05b8f-5993-4fc4-9657-92628392e8dc",
      "name": "Fetch Comic Image URL",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2220,
        100
      ]
    },
    {
      "id": "abb99085-a573-4c95-b19c-73b9561af3a5",
      "name": "Upload Image to Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        2640,
        100
      ]
    }
  ],
  "connections": {
    "Ad Angle Generation": {
      "ai_languageModel": [
        [
          {
            "node": "Generate 10 Ad Angles From Reddit Posts",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Comic Prompt Creation": {
      "ai_languageModel": [
        [
          {
            "node": "Create Comic Prompts from Ad Angles",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Comic Image URL": {
      "main": [
        [
          {
            "node": "Upload Image to Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Rank Top 10 Ad Angles": {
      "main": [
        [
          {
            "node": "Create Comic Prompts from Ad Angles",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When a Form is Submitted": {
      "main": [
        [
          {
            "node": "Generate Reddit Keyword from Product Description",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Through Comic Prompts": {
      "main": [
        [],
        [
          {
            "node": "Generate Comic Image via Dumpling AI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Comic Prompt Objects": {
      "main": [
        [
          {
            "node": "Loop Through Comic Prompts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Support Ad Angle Generation": {
      "ai_tool": [
        [
          {
            "node": "Generate 10 Ad Angles From Reddit Posts",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Upload Image to Google Drive": {
      "main": [
        [
          {
            "node": "Loop Through Comic Prompts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GPT Model: Classify Relevance": {
      "ai_languageModel": [
        [
          {
            "node": "Classify Post Relevance to Product",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Support Comic Prompt Creation": {
      "ai_tool": [
        [
          {
            "node": "Create Comic Prompts from Ad Angles",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate Relevant Reddit Data": {
      "main": [
        [
          {
            "node": "Generate 10 Ad Angles From Reddit Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Comic Prompt JSON Output": {
      "ai_outputParser": [
        [
          {
            "node": "Create Comic Prompts from Ad Angles",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Support Relevance Classification": {
      "ai_tool": [
        [
          {
            "node": "Classify Post Relevance to Product",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Parse Relevance Classifier Output": {
      "ai_outputParser": [
        [
          {
            "node": "Classify Post Relevance to Product",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Search Reddit Posts Using Keyword": {
      "main": [
        [
          {
            "node": "Filter Posts With 2+ Upvotes and Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Classify Post Relevance to Product": {
      "main": [
        [
          {
            "node": "Format Relevant Reddit Post Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Relevant Reddit Post Fields": {
      "main": [
        [
          {
            "node": "Aggregate Relevant Reddit Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Comic Prompts from Ad Angles": {
      "main": [
        [
          {
            "node": "Split Comic Prompt Objects",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Comic Image via Dumpling AI": {
      "main": [
        [
          {
            "node": "Fetch Comic Image URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Posts With 2+ Upvotes and Text": {
      "main": [
        [
          {
            "node": "Classify Post Relevance to Product",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate 10 Ad Angles From Reddit Posts": {
      "main": [
        [
          {
            "node": "Rank Top 10 Ad Angles",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Reddit Keyword from Product Description": {
      "main": [
        [
          {
            "node": "Search Reddit Posts Using Keyword",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}