{
  "name": "Automate news publishing to LinkedIn with Gemini AI and RSS feeds",
  "nodes": [
    {
      "id": "8b3652a8-6b3c-477d-8636-8fbfe9b3c8c2",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -500,
        660
      ]
    },
    {
      "id": "f9bdcc21-02ec-4ad6-afc8-b16b40c6c57e",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -500,
        860
      ]
    },
    {
      "id": "7b30aa2a-c6b4-42cc-b714-8c1e6744b4e6",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -3180,
        860
      ]
    },
    {
      "id": "f8ee49fd-aaab-4366-8b5d-3be59c5a08ca",
      "name": "RSS Read Testing Catalog",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        -2960,
        1060
      ]
    },
    {
      "id": "a8285394-b8b4-42a4-8be3-45dbfc7ed1e3",
      "name": "Transform date",
      "type": "n8n-nodes-base.set",
      "position": [
        -2520,
        860
      ]
    },
    {
      "id": "5c5392e3-65d9-44f6-b4f2-03bfb6c5ba49",
      "name": "Filter by date (more than 7 days)",
      "type": "n8n-nodes-base.filter",
      "position": [
        -2300,
        780
      ]
    },
    {
      "id": "db4bedbb-c84e-4acb-83dc-fbb97ca6c2ca",
      "name": "Sort by date",
      "type": "n8n-nodes-base.sort",
      "position": [
        -2080,
        780
      ]
    },
    {
      "id": "4842aae7-e5f3-4fcb-8b47-eac954182cde",
      "name": "Limit news to x",
      "type": "n8n-nodes-base.limit",
      "position": [
        -1860,
        780
      ]
    },
    {
      "id": "f9a0b527-30b3-4f65-8845-b1ae584d7b76",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        -2740,
        860
      ]
    },
    {
      "id": "1e26c489-cfe1-4b36-9071-4d41bbe1a82a",
      "name": "RSS Read marktechpost",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        -2960,
        860
      ]
    },
    {
      "id": "44b400c2-6404-488b-8d84-e24cf66445ee",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3060,
        540
      ],
      "parameters": {
        "width": 500,
        "height": 660,
        "content": "## RSS sources \nHere you can add up to nine sources of RSS. To do so, modify the merge node for the number of RSS feeds you want, duplicate the RSS node and wire it to the trigger and the merge node\n"
      }
    },
    {
      "id": "cd5c4246-01f9-434a-8b38-9514e4e5b0d4",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2340,
        520
      ],
      "parameters": {
        "width": 640,
        "height": 420,
        "content": "## Age and number of the news \nHere you can set the number of days behind by changing the 7 by any number in the filter by date node:\n```\nDate.now() - 7 * 24 * 60 * 60 * 1000\n```\nYou can also modify t"
      }
    },
    {
      "id": "bd10d075-b967-4633-9ba2-25dbf0b2869e",
      "name": "AI Agent1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1520,
        640
      ]
    },
    {
      "id": "ab1c0a4d-01e8-4100-a62a-886587526299",
      "name": "Google Gemini Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -1520,
        840
      ]
    },
    {
      "id": "e76371ee-84cc-41f0-8959-7d0741354ffa",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1620,
        440
      ],
      "parameters": {
        "width": 680,
        "height": 560,
        "content": "# Etapa de IA: usando el API de Gemini\n\n## Modulo de análisis de contenido"
      }
    },
    {
      "id": "24a564ad-32d3-42b9-aaca-4c9d8d77fb46",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -900,
        440
      ],
      "parameters": {
        "width": 680,
        "height": 560,
        "content": "# Etapa de IA: usando el API de Gemini\n\n## Modulo de obtención de hashtags"
      }
    },
    {
      "id": "0092b8e8-c0d3-4d9c-a790-8617e93e43db",
      "name": "Information",
      "type": "n8n-nodes-base.merge",
      "position": [
        -160,
        180
      ]
    },
    {
      "id": "a57550da-78ec-4d54-a416-622859ed017d",
      "name": "Information2",
      "type": "n8n-nodes-base.set",
      "position": [
        -1700,
        180
      ]
    },
    {
      "id": "7876cd0d-cc88-4912-815c-c43ea2d25448",
      "name": "Information3",
      "type": "n8n-nodes-base.set",
      "position": [
        -1360,
        1240
      ]
    },
    {
      "id": "6ce78f24-fa0d-4843-b9e2-6321beb262ff",
      "name": "Code1",
      "type": "n8n-nodes-base.code",
      "position": [
        -700,
        660
      ]
    },
    {
      "id": "025824b0-92b1-4fef-896e-ed659a31259c",
      "name": "Information1",
      "type": "n8n-nodes-base.merge",
      "position": [
        -880,
        660
      ]
    },
    {
      "id": "3f479d20-69eb-42f1-9de3-94fafe0cfea9",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        -800,
        300
      ]
    },
    {
      "id": "466fb541-3a67-422e-94cc-79ff7aa564a1",
      "name": "LinkedIn",
      "type": "n8n-nodes-base.linkedIn",
      "position": [
        3080,
        260
      ]
    },
    {
      "id": "b65ea250-f029-43c8-9aa2-4da538b468c5",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2860,
        0
      ],
      "parameters": {
        "width": 560,
        "height": 540,
        "content": "# Etapa: Publicación en LinkedIn \n\n## Módulo de publicación de información obtenida en LinkedIn"
      }
    },
    {
      "id": "7e668a0d-99fa-42f4-9609-cad6a02b844c",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3540,
        0
      ],
      "parameters": {
        "width": 900,
        "height": 540,
        "content": "# Generación de Código QR\n\n## Módulo de generación de código QR de la publicación realizada"
      }
    },
    {
      "id": "afa9677c-283e-45c7-817c-98ef5147bab9",
      "name": "Conversión a enlace de LinkedIn",
      "type": "n8n-nodes-base.set",
      "position": [
        3620,
        260
      ]
    },
    {
      "id": "25a8647e-093e-4f95-bdcc-002b36d52704",
      "name": "Generar QR",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3920,
        260
      ]
    },
    {
      "id": "1f482175-4527-44d7-899b-c59ffcf0dd33",
      "name": "Escribir archivo",
      "type": "n8n-nodes-base.writeBinaryFile",
      "position": [
        4200,
        260
      ]
    },
    {
      "id": "9f2f06d6-c200-43c9-87ca-3bac64f6a752",
      "name": "Convert to File",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        2500,
        260
      ]
    },
    {
      "id": "7e842770-c617-4adc-a0cd-e0c6295d2e2e",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2080,
        0
      ],
      "parameters": {
        "width": 680,
        "height": 540,
        "content": "# Etapa de IA: Generación de Imagen\n\n## Generación de Imagen mediante Gemini 2.0 y conversión a PNG"
      }
    },
    {
      "id": "0f7f43ab-c827-43fe-9daf-f6b659fb060f",
      "name": "Generación de Imagen1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2220,
        260
      ]
    },
    {
      "id": "559ade49-80f1-4fab-9388-bbd32d1cdca0",
      "name": "Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        3940,
        600
      ]
    },
    {
      "id": "63b9cc44-abac-4a07-8a7b-4e7809af1cc6",
      "name": "Google Sheets1",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        40,
        180
      ]
    },
    {
      "id": "937c68b8-9f9a-46bc-89ca-966c638e1f68",
      "name": "If exists",
      "type": "n8n-nodes-base.if",
      "position": [
        240,
        180
      ]
    },
    {
      "id": "68c4d695-bad7-41e4-b88a-fbd5d8cb0867",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "position": [
        600,
        200
      ]
    },
    {
      "id": "879ad0d7-6c0e-481d-b203-5637ef6cd580",
      "name": "AI Agent2",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        820,
        200
      ]
    },
    {
      "id": "99792b7b-919f-42d2-9ac4-75f4512e5eaf",
      "name": "Google Gemini Chat Model2",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        820,
        380
      ]
    },
    {
      "id": "d145c813-7366-45f4-b35c-1606c5323277",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        520,
        20
      ],
      "parameters": {
        "width": 680,
        "height": 540,
        "content": "# Etapa de IA: usando el API de Gemini\n\n## Modulo de obtención de la publicación"
      }
    },
    {
      "id": "aa78a09e-53a2-45ca-8603-7ab8d2071c0c",
      "name": "AI Agent4",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1620,
        220
      ]
    },
    {
      "id": "5e15478c-cef0-4f33-ad76-5ac9e4970680",
      "name": "Google Gemini Chat Model4",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1620,
        420
      ]
    },
    {
      "id": "68fd37f9-c871-410a-b533-9da3d5599d40",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1340,
        -20
      ],
      "parameters": {
        "width": 640,
        "height": 600,
        "content": "# Etapa de IA: Prompt para imagen\n\n## Limpieza de contenido de noticia y generación de prompt para obtener una imagen adecuada al contexto de la noticia"
      }
    },
    {
      "id": "83afd162-9160-4a0e-8ac4-deee4e65690c",
      "name": "Limpieza de contenido de Noticia1",
      "type": "n8n-nodes-base.code",
      "position": [
        1400,
        220
      ]
    },
    {
      "id": "93bae040-4a3b-415d-80d6-fd3c8dac97a3",
      "name": "RSS LatinxinAI",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        -2960,
        660
      ]
    }
  ],
  "connections": {
    "Code": {
      "main": [
        [
          {
            "node": "AI Agent2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code1": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "Transform date",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Information",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "LinkedIn": {
      "main": [
        [
          {
            "node": "Conversión a enlace de LinkedIn",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent1": {
      "main": [
        [
          {
            "node": "Information1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent2": {
      "main": [
        [
          {
            "node": "Limpieza de contenido de Noticia1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent4": {
      "main": [
        [
          {
            "node": "Generación de Imagen1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If exists": {
      "main": [
        [],
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generar QR": {
      "main": [
        [
          {
            "node": "Escribir archivo",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Information",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Information": {
      "main": [
        [
          {
            "node": "Google Sheets1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Information1": {
      "main": [
        [
          {
            "node": "Code1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Information2": {
      "main": [
        [
          {
            "node": "Information",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Information3": {
      "main": [
        [
          {
            "node": "Information1",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Sort by date": {
      "main": [
        [
          {
            "node": "Limit news to x",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheets": {
      "main": [
        []
      ]
    },
    "Google Sheets1": {
      "main": [
        [
          {
            "node": "If exists",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "RSS LatinxinAI": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Transform date": {
      "main": [
        [
          {
            "node": "Filter by date (more than 7 days)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert to File": {
      "main": [
        [
          {
            "node": "LinkedIn",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Limit news to x": {
      "main": [
        [
          {
            "node": "Information2",
            "type": "main",
            "index": 0
          },
          {
            "node": "Information3",
            "type": "main",
            "index": 0
          },
          {
            "node": "AI Agent1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "RSS Read Testing Catalog",
            "type": "main",
            "index": 0
          },
          {
            "node": "RSS Read marktechpost",
            "type": "main",
            "index": 0
          },
          {
            "node": "RSS LatinxinAI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "RSS Read marktechpost": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Generación de Imagen1": {
      "main": [
        [
          {
            "node": "Convert to File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "RSS Read Testing Catalog": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Google Gemini Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent2",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model4": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent4",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Conversión a enlace de LinkedIn": {
      "main": [
        [
          {
            "node": "Generar QR",
            "type": "main",
            "index": 0
          },
          {
            "node": "Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter by date (more than 7 days)": {
      "main": [
        [
          {
            "node": "Sort by date",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Limpieza de contenido de Noticia1": {
      "main": [
        [
          {
            "node": "AI Agent4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}