{
  "name": "Classify AI news from RSS and create LinkedIn carousels with Gemini and PostNitro",
  "nodes": [
    {
      "id": "852d9da2-0845-477a-9f97-e05746ef5bd2",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        272,
        0
      ],
      "parameters": {
        "width": 480,
        "height": 880,
        "content": "## AI News Classifier\n\n### How it works\n\nThis workflow monitors an RSS feed for new AI news articles, limits each run to 10 items, and uses Gemini-powered LLM chains to classify and prepare qualifying articles. Articles that pass the conditional check are turned into PostNitro post drafts, then scheduled and followed up with Gmail notifications. It separates the process into intake, AI classification, AI content generation, and publishing confirmation steps.\n\n### Setup steps\n\n- Configure the RSS Feed Read Trigger with the target AI news feed URL and polling settings.\n- Add Google Gemini credentials for both LLM chain nodes and verify the structured output parser schemas match the prompts.\n- Configure the If node condition to match the classification output that identifies articles worth posting.\n- Connect PostNitro credentials and set the draft generation and scheduling options.\n- Connect Gmail OAuth credentials and set recipient addresses, subjects, and email body templates for both notification emails.\n\n### Customization\n\nAdjust the RSS source, article limit, classification prompt, relevance condition, post-generation prompt, scheduling time, and email templates to fit the desired content strategy."
      },
      "typeVersion": 1
    },
    {
      "id": "58cfb85a-1cd7-4e13-b99b-81092a1af14b",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        800,
        64
      ],
      "parameters": {
        "color": 7,
        "width": 464,
        "height": 304,
        "content": "## Fetch latest articles\n\nStarts the workflow when the RSS feed updates and caps processing to the first 10 incoming articles."
      },
      "typeVersion": 1
    },
    {
      "id": "791869da-51e5-4bb5-8892-b0e53cb78e77",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1296,
        32
      ],
      "parameters": {
        "color": 7,
        "width": 592,
        "height": 560,
        "content": "## Classify article relevance\n\nUses a Gemini LLM chain with structured parsing to analyze each article, then routes only articles matching the conditional criteria onward."
      },
      "typeVersion": 1
    },
    {
      "id": "95fcfc51-de59-4fb5-b5d5-81a221367b9e",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1920,
        64
      ],
      "parameters": {
        "color": 7,
        "width": 592,
        "height": 544,
        "content": "## Generate post draft\n\nCreates structured AI output for the selected article and sends the article URL to PostNitro to generate a social post draft."
      },
      "typeVersion": 1
    },
    {
      "id": "ffd86670-68d4-41b7-a1b7-c0da9ec61594",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2544,
        48
      ],
      "parameters": {
        "color": 7,
        "width": 640,
        "height": 544,
        "content": "## Schedule and notify\n\nSchedules the generated PostNitro content and sends Gmail notifications for both draft creation and final scheduled post confirmation."
      },
      "typeVersion": 1
    },
    {
      "id": "75dcab40-d2b2-427f-95c2-ec47ee6565d0",
      "name": "Draft AI Post from URL",
      "type": "@postnitro/n8n-nodes-postnitro-ai.postNitro",
      "notes": "={{ $json.error.message }}",
      "onError": "continueErrorOutput",
      "position": [
        2368,
        192
      ],
      "parameters": {
        "brandId": "cmrabdq3r003jmf1fkirr1avg",
        "presetId": "cmr96cp9i0001k1040wqqpip9",
        "operation": "aiFromArticle",
        "articleUrl": "={{ $('Limit to 10 Items').item.json.link }}",
        "templateId": "cmrnc0pvm000ql504luhyx3at"
      },
      "typeVersion": 1,
      "alwaysOutputData": false
    },
    {
      "id": "486bca6c-e38d-4cfa-ae2a-82580ce96b4d",
      "name": "Limit to 10 Items",
      "type": "n8n-nodes-base.limit",
      "position": [
        1120,
        192
      ],
      "parameters": {
        "maxItems": "={{ 10 }}"
      },
      "typeVersion": 1
    },
    {
      "id": "92ec1119-3acb-40e4-ba71-2c767b4053eb",
      "name": "Schedule Post Drafting",
      "type": "@postnitro/n8n-nodes-postnitro-ai.postNitro",
      "position": [
        2608,
        176
      ],
      "parameters": {
        "status": "DRAFT",
        "designId": "={{ $json.data.result.designId }}",
        "resource": "scheduledPost",
        "postContent": {},
        "scheduledAt": "={{ $now.plus({ days: 1 }).toISO() }}",
        "platformSettings": {
          "linkedinPostSettings": "{\n  \"postType\": \"document\",\n  \"postTitle\": null\n}"
        },
        "selectedAccounts": [
          "cmsd3a2ez0001jv042qhrzht3"
        ]
      },
      "typeVersion": 1
    },
    {
      "id": "3bc77b12-82bc-43f9-aefe-50222b54cc57",
      "name": "When Feed is Updated",
      "type": "n8n-nodes-base.rssFeedReadTrigger",
      "position": [
        848,
        192
      ],
      "parameters": {
        "feedUrl": "https://techcrunch.com/feed/",
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "6a8b094e-8e9b-4d04-b9f3-adc0b0bcb0b5",
      "name": "Send Post Confirmation Email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        3040,
        176
      ],
      "parameters": {
        "sendTo": "user@example.com",
        "message": "=A new carousel draft was generated from a TechCrunch article.\nTitle: {{ $json.designDetails.name }} \nReview it here: https://postnitro.ai/app/...",
        "options": {},
        "subject": "\ud83d\udcdd New draft ready for review"
      },
      "typeVersion": 2.2
    },
    {
      "id": "0f31582d-f4a6-4539-a48e-3315d6c8e05e",
      "name": "Send Draft Notice Email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2592,
        416
      ],
      "parameters": {
        "sendTo": "user@example.com",
        "message": "=Error: {{ $json.error }} Article: {{ $json.link }}",
        "options": {},
        "subject": "\u26a0\ufe0f Failed to generate draft from article"
      },
      "typeVersion": 2.2
    },
    {
      "id": "c6bd6039-4561-41d9-8a5e-d15cb27e4f64",
      "name": "Initial LLM Processing Chain",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        1424,
        192
      ],
      "parameters": {
        "text": "=You are an AI news classifier.\n\nAnalyze the TechCrunch article below.\n\nYour job is to determine whether this article is significantly about artificial intelligence.\n\nAn article is RELEVANT if it discusses:\n\n- New or upcoming AI models or versions\n- New AI tools, products, or platforms\n- AI agents\n- Generative AI\n- AI coding/developer tools\n- AI's impact on jobs or employment\n- AI's impact on humans or society\n- AI safety, risks, regulation, or ethics\n- Major AI research or breakthroughs\n- Major AI company developments\n- Predictions about the future of AI\n\nDo NOT mark an article relevant just because AI is mentioned briefly.\n\nReturn these fields:\n\nrelevant: true or false\ncategory: one of [AI Models, AI Tools, AI Agents, AI & Jobs, AI & Humans, AI Safety, AI Research, AI Business, AI Future, Other]\nimportance: number from 1 to 10\nreason: short explanation\ntopic: short description\n\nARTICLE TITLE:\n{{ $json.title }}\n\nARTICLE DESCRIPTION:\n{{ $json.contentSnippet }}\n\nARTICLE URL:\n{{ $json.link }}",
        "batching": {},
        "promptType": "define",
        "hasOutputParser": true
      },
      "typeVersion": 1.9
    },
    {
      "id": "8dc299b3-af28-49d6-9152-b2a4ef314384",
      "name": "Gemini LLM Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1440,
        432
      ],
      "parameters": {
        "options": {},
        "modelName": "models/gemini-3.1-flash-lite"
      },
      "typeVersion": 1
    },
    {
      "id": "623dfabe-cfcf-42ff-b2aa-c9534ce3e23c",
      "name": "Parse as Structured Output",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1664,
        448
      ],
      "parameters": {
        "schemaType": "manual",
        "inputSchema": "{\n  \"type\": \"object\",\n  \"properties\": {\n    \"relevant\": {\n      \"type\": \"boolean\"\n    },\n    \"category\": {\n      \"type\": \"string\"\n    },\n    \"importance\": {\n      \"type\": \"number\"\n    },\n    \"reason\": {\n      \"type\": \"string\"\n    },\n    \"topic\": {\n      \"type\": \"string\"\n    }\n  },\n  \"required\": [\n    \"relevant\",\n    \"category\",\n    \"importance\",\n    \"reason\",\n    \"topic\"\n  ]\n}"
      },
      "typeVersion": 1.3
    },
    {
      "id": "e4bc0f33-c7d9-4b1b-8f11-8280b831816b",
      "name": "If Relevant Output",
      "type": "n8n-nodes-base.if",
      "position": [
        1744,
        208
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 3,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "4eb30a6c-a081-4e24-b0c0-b9de0ba9af4c",
              "operator": {
                "type": "boolean",
                "operation": "equals"
              },
              "leftValue": "={{ $json.output.relevant }}",
              "rightValue": true
            }
          ]
        }
      },
      "typeVersion": 2.3
    },
    {
      "id": "fc267203-1411-45a7-9d22-d591a83a2038",
      "name": "Secondary LLM Processing Chain",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        2080,
        192
      ],
      "parameters": {
        "text": "=You are an AI news analyst.\n\nAnalyze this important AI news article.\n\nARTICLE TITLE:\n{{ $('Limit to 10 Items').item.json.title }}\n\nARTICLE DESCRIPTION:\n{{ $('Limit to 10 Items').item.json.contentSnippet }}\n\nARTICLE URL:\n{{ $('Limit to 10 Items').item.json.link }}\n\nThe previous classifier already determined that this is important AI news.\n\nAnalyze it and explain:\n\n1. What happened?\n2. What new AI model, tool, product, or technology is involved?\n3. What is actually new?\n4. What is coming next?\n5. How could this affect humans?\n6. How could this affect jobs?\n7. How could this affect developers?\n8. Why should people care?\n9. What could happen in the future?\n10. What is the strongest angle for a social media carousel?\n\nReturn ONLY the requested structured output.\nDo not use Markdown.\nDo not add explanations outside the requested fields.\n\nIMPORTANT:\nClearly distinguish confirmed facts from predictions or speculation.\nNever present rumors, assumptions, or predictions as confirmed facts.\nIf the article does not provide evidence for a claim, say that it is a possibility or prediction.\nDo not invent AI model names, release dates, prices, capabilities, or company plans.\nOnly use information supported by the article.",
        "batching": {},
        "promptType": "define",
        "hasOutputParser": true
      },
      "typeVersion": 1.9
    },
    {
      "id": "db99201c-5d31-40b5-9727-072cf31713f7",
      "name": "Gemini Chat Model Secondary",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        2112,
        448
      ],
      "parameters": {
        "options": {},
        "modelName": "models/gemini-3.1-flash-lite-preview"
      },
      "typeVersion": 1
    },
    {
      "id": "31e5f29d-acc9-410b-92e3-8a150be922bc",
      "name": "Secondary Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        2368,
        432
      ],
      "parameters": {
        "schemaType": "manual",
        "inputSchema": "={\n  \"type\": \"object\",\n  \"properties\": {\n    \"headline\": {\n      \"type\": \"string\"\n    },\n    \"what_happened\": {\n      \"type\": \"string\"\n    },\n    \"whats_new\": {\n      \"type\": \"string\"\n    },\n    \"whats_coming\": {\n      \"type\": \"string\"\n    },\n    \"human_impact\": {\n      \"type\": \"string\"\n    },\n    \"job_impact\": {\n      \"type\": \"string\"\n    },\n    \"developer_impact\": {\n      \"type\": \"string\"\n    },\n    \"why_it_matters\": {\n      \"type\": \"string\"\n    },\n    \"future_impact\": {\n      \"type\": \"string\"\n    },\n    \"content_angle\": {\n      \"type\": \"string\"\n    }\n  },\n  \"required\": [\n    \"headline\",\n    \"what_happened\",\n    \"whats_new\",\n    \"whats_coming\",\n    \"human_impact\",\n    \"job_impact\",\n    \"developer_impact\",\n    \"why_it_matters\",\n    \"future_impact\",\n    \"content_angle\"\n  ]\n}"
      },
      "typeVersion": 1.3
    }
  ],
  "connections": {
    "Limit to 10 Items": {
      "main": [
        [
          {
            "node": "Initial LLM Processing Chain",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Relevant Output": {
      "main": [
        [
          {
            "node": "Secondary LLM Processing Chain",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When Feed is Updated": {
      "main": [
        [
          {
            "node": "Limit to 10 Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gemini LLM Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Initial LLM Processing Chain",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Draft AI Post from URL": {
      "main": [
        [
          {
            "node": "Schedule Post Drafting",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send Draft Notice Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Post Drafting": {
      "main": [
        [
          {
            "node": "Send Post Confirmation Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Secondary Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Secondary LLM Processing Chain",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Parse as Structured Output": {
      "ai_outputParser": [
        [
          {
            "node": "Initial LLM Processing Chain",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Gemini Chat Model Secondary": {
      "ai_languageModel": [
        [
          {
            "node": "Secondary LLM Processing Chain",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Initial LLM Processing Chain": {
      "main": [
        [
          {
            "node": "If Relevant Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Secondary LLM Processing Chain": {
      "main": [
        [
          {
            "node": "Draft AI Post from URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "meta": {
    "instanceId": null
  },
  "settings": {
    "binaryMode": "separate",
    "availableInMCP": false,
    "executionOrder": "v1"
  }
}