{
  "name": "Project: LinkedIn Bot",
  "nodes": [
    {
      "parameters": {},
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ],
      "id": "ae29e7da-df40-4181-ae9f-9b3cea323ba4",
      "name": "When clicking ‘Execute workflow’"
    },
    {
      "parameters": {
        "url": "https://news.google.com/rss/search?q=AI+tools",
        "options": {}
      },
      "type": "n8n-nodes-base.rssFeedRead",
      "typeVersion": 1.2,
      "position": [
        208,
        0
      ],
      "id": "8e4d8334-66df-4b22-9214-6d2a88a1ae6d",
      "name": "RSS Read"
    },
    {
      "parameters": {
        "maxItems": 10
      },
      "type": "n8n-nodes-base.limit",
      "typeVersion": 1,
      "position": [
        416,
        0
      ],
      "id": "c094cc85-c83c-43d8-8f91-12f44d56f190",
      "name": "Limit"
    },
    {
      "parameters": {
        "jsCode": "const articles = items.map(item => {\n  return `• ${item.json.title} — ${item.json.link}`;\n});\n\nconst prompt = articles.join('\\n');\n\nreturn [\n  {\n    json: {\n      rss_summary_prompt: prompt\n    }\n  }\n];\n"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        624,
        0
      ],
      "id": "80118fe1-ce45-4040-b813-01fc3209dbb7",
      "name": "Code"
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "={{ $json.rss_summary_prompt }}",
        "hasOutputParser": true,
        "options": {
          "systemMessage": "=Here are some recent AI news articles:\n\nPick the most impactful or insightful one.\nReturn:\n\n- Title\n- An opening one sentence paragraph\n- Any relevant bullet points\n- A one sentence closing paragraph\n- The link to the tool\n- 3–5 relevant hashtags\n\n\nFormat your output according to the output parser to achieve a JSON output."
        }
      },
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 2.2,
      "position": [
        832,
        0
      ],
      "id": "5bb939f2-af3f-47c1-b6da-d45d2f2b4f12",
      "name": "AI Agent"
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini"
        },
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.2,
      "position": [
        704,
        208
      ],
      "id": "a184066d-3241-45f9-a18b-8bccc8b05b57",
      "name": "OpenAI Chat Model",
      "credentials": {
        "openAiApi": {
          "id": "xHWDVrLvQFklSodD",
          "name": "OpenAi account"
        }
      }
    },
    {
      "parameters": {
        "jsonSchemaExample": "{\n\t\"title\": \"Title\",\n\t\"intro_paragraph\": \"The first paragraph\",\n    \"bullet_points\": \"Bullet points\",\n    \"outro_paragraph\": \"The second paragraph\",\n    \"link\": \"https link\",\n    \"hashtags\": \"Hashtags\"\n}"
      },
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "typeVersion": 1.3,
      "position": [
        1008,
        208
      ],
      "id": "67ffc624-093a-4fd5-8ef0-b72cabc1064c",
      "name": "Structured Output Parser"
    },
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "triggerAtHour": 9
            }
          ]
        }
      },
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        0,
        -176
      ],
      "id": "0c48fbbd-44e1-4bf0-aa2b-cfa4b78d3b05",
      "name": "Schedule Trigger"
    },
    {
      "parameters": {
        "person": "g0e2lbre97",
        "text": "={{ $json.article }}",
        "additionalFields": {}
      },
      "type": "n8n-nodes-base.linkedIn",
      "typeVersion": 1,
      "position": [
        1392,
        0
      ],
      "id": "18d8ac5b-592e-4365-b27a-e3c1b8d85f6e",
      "name": "Create a post",
      "credentials": {
        "linkedInOAuth2Api": {
          "id": "fYsjhZen6aBTBTFg",
          "name": "LinkedIn account 2"
        }
      }
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "fd4b37b5-ce7b-4990-9739-7d84f1b64a3a",
              "name": "article",
              "value": "={{ $json.output.title }}\n\n{{ $json.output.intro_paragraph }}\n\n{{ $json.output.bullet_points }}\n\n{{ $json.output.outro_paragraph }}\n\n{{ $json.output.link }}\n\n{{ $json.output.hashtags }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        1184,
        0
      ],
      "id": "2ccf3f7c-9563-4882-9ba8-aceb7b85150c",
      "name": "Edit Fields"
    }
  ],
  "pinData": {},
  "connections": {
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "RSS Read",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "RSS Read": {
      "main": [
        [
          {
            "node": "Limit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Limit": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "RSS Read",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Create a post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "12292af9-28db-4a85-8a6d-b1ce0cf10b48",
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "281c34c03b9c41f054c536eeb966e9e503918cf7f00e3bc32a5ff9cca85ca255"
  },
  "id": "ZVIvGaLarrEU5P4m",
  "tags": []
}