{
  "id": "B678cREDFm1a19Gt",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "RSS news Newsletter draft",
  "tags": [
    {
      "id": "9kcsz79cjuoXWIKa",
      "name": "info_extract",
      "createdAt": "2025-08-06T19:49:00.933Z",
      "updatedAt": "2025-08-06T19:49:00.933Z"
    },
    {
      "id": "BDi16MoLM1S3FTEv",
      "name": "Notion",
      "createdAt": "2025-08-04T20:02:06.936Z",
      "updatedAt": "2025-08-04T20:02:06.936Z"
    },
    {
      "id": "LpWDdjc6roCQJX6r",
      "name": "RSS",
      "createdAt": "2025-08-06T19:48:48.074Z",
      "updatedAt": "2025-08-06T19:48:48.074Z"
    },
    {
      "id": "soI0f6nC5gfL5B7b",
      "name": "Telegram",
      "createdAt": "2025-08-04T19:52:57.456Z",
      "updatedAt": "2025-08-04T19:52:57.456Z"
    }
  ],
  "nodes": [
    {
      "id": "ddabc02a-92b3-493f-a0d6-e6fea4710db1",
      "name": "RSS Feed Trigger",
      "type": "n8n-nodes-base.rssFeedReadTrigger",
      "position": [
        -32,
        0
      ],
      "parameters": {
        "feedUrl": "https://www.artificialintelligence-news.com/feed/",
        "pollTimes": {
          "item": [
            {
              "mode": "everyHour"
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "53b640dd-d8fb-4d80-af4e-1a24fd8064f0",
      "name": "Information Extractor",
      "type": "@n8n/n8n-nodes-langchain.informationExtractor",
      "position": [
        208,
        0
      ],
      "parameters": {
        "text": "=Snippet: {{ $json['content:encodedSnippet'] }}\nTitle: {{ $json.title }}\nContent: {{ $json['content:encoded'] }}",
        "options": {
          "systemPromptTemplate": "Your task is a get information from content snippet, and translate it in {your prefer} language. \nKeep it clear and short about what is in content and title. "
        },
        "attributes": {
          "attributes": [
            {
              "name": "Snippet",
              "description": "This is a content snippet. Get data and return is as text"
            },
            {
              "name": "Title",
              "description": "Title of content"
            },
            {
              "name": "Content",
              "description": "Content of article"
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "dcac64e7-7d47-421c-8516-20ee38b37249",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        208,
        208
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "3560993c-7275-4fff-ba16-ff4ceb27fde0",
      "name": "Message a model",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        560,
        0
      ],
      "parameters": {
        "modelId": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini",
          "cachedResultName": "GPT-4.1-MINI"
        },
        "options": {},
        "messages": {
          "values": [
            {
              "role": "system",
              "content": "=Your task is get information about article, use assistant role named Patrik to give personalisation and create a newsletter content.\nContent si here:\n{{ $json.output.Content }}"
            },
            {
              "role": "assistant",
              "content": "Here give your tone of voice!"
            }
          ]
        }
      },
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.8
    },
    {
      "id": "78c2045c-782a-40fd-812c-c6205ada20e5",
      "name": "Create a draft",
      "type": "n8n-nodes-base.gmail",
      "position": [
        944,
        0
      ],
      "parameters": {
        "message": "={{ $json.message.content }}",
        "options": {},
        "subject": "Newsletter",
        "resource": "draft",
        "emailType": "html"
      },
      "credentials": {
        "gmailOAuth2": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "576d55c7-dcc8-4af1-a94d-378bffe5505b",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -96,
        -176
      ],
      "parameters": {
        "height": 480,
        "content": "## RSS feed\n**URL** \nPut a RSS feed into this node"
      },
      "typeVersion": 1
    },
    {
      "id": "207cddbe-a94c-438e-b807-e483b0d10c7f",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        160,
        -176
      ],
      "parameters": {
        "color": 2,
        "width": 320,
        "height": 512,
        "content": "## Information extract\n\nThis node will extract information about article.\n\nIn system prompt change language to your prefered one!\n"
      },
      "typeVersion": 1
    },
    {
      "id": "1fa45d4b-68f5-413c-8157-63cf6e2da64c",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        544,
        -176
      ],
      "parameters": {
        "color": 3,
        "width": 320,
        "height": 512,
        "content": "## Message a model\n\nSystem prompt is get data from extractor. \n\nAsistant prompt should be your tone of voice to personalised content!\n"
      },
      "typeVersion": 1
    },
    {
      "id": "8d83c36c-b717-4408-8394-146f9526fcfd",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        896,
        -176
      ],
      "parameters": {
        "color": 4,
        "width": 224,
        "height": 512,
        "content": "## Create a draft\n\nIts created a draft, with ready to sent!\n\n"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "ac807dbd-82f5-4fc6-ad36-b962b684eb1d",
  "connections": {
    "Message a model": {
      "main": [
        [
          {
            "node": "Create a draft",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "RSS Feed Trigger": {
      "main": [
        [
          {
            "node": "Information Extractor",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Information Extractor",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Information Extractor": {
      "main": [
        [
          {
            "node": "Message a model",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}