{
  "name": "05 · RSS Feed → Auto Blog Posts",
  "nodes": [
    {
      "name": "RSS Industry Feed",
      "type": "n8n-nodes-base.rssFeedReadTrigger",
      "typeVersion": 1,
      "position": [
        0,
        128
      ],
      "parameters": {
        "feedUrl": "https://example.com/feed.xml",
        "pollTimes": {
          "item": [
            {
              "mode": "everyHour"
            }
          ]
        }
      }
    },
    {
      "name": "Write Commentary Blog",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 3.1,
      "position": [
        224,
        128
      ],
      "parameters": {
        "promptType": "define",
        "text": "=Write and publish a blog post commenting on this article using the Lindo Create Blog tool.\n\nTitle: {{ $json.title }}\nLink: {{ $json.link }}\nSnippet: {{ $json.contentSnippet }}\n\nWebsite ID: YOUR_WEBSITE_ID\n\nWrite 600-800 word commentary. Return the workflow_id.",
        "options": {
          "systemMessage": "You write insightful blog commentary. Use the Lindo Create Blog tool to publish."
        }
      }
    },
    {
      "name": "OpenAI",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.3,
      "position": [
        240,
        352
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "Yuica5wlzDrhFTNk",
          "name": "OpenAi account"
        }
      }
    },
    {
      "name": "Lindo Create Blog",
      "type": "n8n-nodes-lindo.lindoTool",
      "typeVersion": 1,
      "position": [
        368,
        352
      ],
      "parameters": {
        "resource": "blog",
        "operation": "create",
        "prompt": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Prompt', '') }}",
        "websiteId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Website_ID', '') }}"
      },
      "credentials": {
        "lindoApi": {
          "id": "EZiHryOUuVuxcDYQ",
          "name": "Lindo account"
        }
      }
    },
    {
      "name": "Persist Data",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        576,
        128
      ],
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "a1",
              "name": "workflow_id",
              "value": "={{ $json.output.match(/workflow_id[:\\\\s]*([\\\\w-]+)/)?.[1] || \"\" }}",
              "type": "string"
            },
            {
              "id": "a2",
              "name": "article_title",
              "value": "={{ $(\"RSS Industry Feed\").first().json.title }}",
              "type": "string"
            },
            {
              "id": "a3",
              "name": "article_link",
              "value": "={{ $(\"RSS Industry Feed\").first().json.link }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      }
    },
    {
      "name": "Check Blog Status",
      "type": "n8n-nodes-lindo.lindo",
      "typeVersion": 1,
      "position": [
        800,
        128
      ],
      "parameters": {
        "resource": "workflow",
        "operation": "checkBlog",
        "workflowId": "={{ $(\"Persist Data\").first().json.workflow_id }}"
      },
      "credentials": {
        "lindoApi": {
          "id": "EZiHryOUuVuxcDYQ",
          "name": "Lindo account"
        }
      }
    },
    {
      "name": "Carry Forward",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        1024,
        48
      ],
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "b1",
              "name": "done",
              "value": "={{ $json.done }}",
              "type": "boolean"
            },
            {
              "id": "b2",
              "name": "blog_url",
              "value": "={{ $json.result?.published_url || \"\" }}",
              "type": "string"
            },
            {
              "id": "b3",
              "name": "article_title",
              "value": "={{ $(\"Persist Data\").first().json.article_title }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      }
    },
    {
      "name": "Done?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [
        1248,
        48
      ],
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 3
          },
          "conditions": [
            {
              "id": "d1",
              "leftValue": "={{ $json.done }}",
              "rightValue": true,
              "operator": {
                "type": "boolean",
                "operation": "equals",
                "name": "filter.operator.equals"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      }
    },
    {
      "name": "Log to Sheet",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        1472,
        0
      ],
      "parameters": {
        "resource": "sheet",
        "operation": "append",
        "documentId": {
          "__rl": true,
          "mode": "url",
          "value": ""
        },
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": "gid=0"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "article_title": "={{ $json.article_title }}",
            "blog_url": "={{ $json.blog_url }}",
            "date": "={{ $now.toISO() }}"
          }
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "r85NdSPIckoWBdlR",
          "name": "Google Sheets account"
        }
      }
    },
    {
      "name": "Wait 60s",
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        1472,
        224
      ],
      "parameters": {
        "amount": 60
      },
      "webhookId": "c2d963e2-c1d2-4bae-b384-1c7f4502fcab"
    },
    {
      "name": "Sticky Note 2af62035",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        736,
        400
      ],
      "parameters": {
        "content": "### 05 · RSS Feed → Auto Blog Posts\n\n**How it works:** RSS feed trigger polls hourly for new articles → AI agent writes 600-800 word commentary blog post → publishes via Lindo → polls status → logs published URL to Google Sheet.\n\n**Setup:** Replace the RSS feed URL with your industry feed. Set YOUR_WEBSITE_ID in the agent prompt. Connect Google Sheets credentials for the log sheet.\n\n**Customisation:** Change polling frequency. Adjust word count and writing style in the agent prompt. Add Slack notification after logging. Filter RSS items by keyword before processing.",
        "color": 2,
        "width": 1772,
        "height": 424
      }
    },
    {
      "name": "Sticky Note 0dd0786b",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        736,
        400
      ],
      "parameters": {
        "content": "## RSS Trigger & AI Writer\nPolls feed hourly. GPT-4o writes commentary on each new article and publishes via Lindo.",
        "color": 1,
        "width": 524,
        "height": 200
      }
    },
    {
      "name": "Sticky Note 27cdc780",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        736,
        400
      ],
      "parameters": {
        "content": "## Status & Logging\nPolls blog build status. Once published, logs article title, blog URL, and date to Google Sheet.",
        "color": 1,
        "width": 972,
        "height": 424
      }
    }
  ],
  "connections": {
    "RSS Industry Feed": {
      "main": [
        [
          {
            "node": "Write Commentary Blog",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Write Commentary Blog": {
      "main": [
        [
          {
            "node": "Persist Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI": {
      "ai_languageModel": [
        [
          {
            "node": "Write Commentary Blog",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Lindo Create Blog": {
      "ai_tool": [
        [
          {
            "node": "Write Commentary Blog",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Persist Data": {
      "main": [
        [
          {
            "node": "Check Blog Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Blog Status": {
      "main": [
        [
          {
            "node": "Carry Forward",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Carry Forward": {
      "main": [
        [
          {
            "node": "Done?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Done?": {
      "main": [
        [
          {
            "node": "Log to Sheet",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait 60s",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 60s": {
      "main": [
        [
          {
            "node": "Check Blog Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "meta": {
    "templateCredsSetupCompleted": false
  }
}