{
  "name": "Multilingual RSS to WordPress publishing with OpenAI, ACF, and AI-generated images",
  "nodes": [
    {
      "id": "34fa58be-757f-43b6-8d90-a5d115259f85",
      "name": "Generate Featured Image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        4096,
        -2688
      ]
    },
    {
      "id": "da7f9e61-fd3b-48b5-98e9-4fbf5ab6c21d",
      "name": "Get Image ID",
      "type": "n8n-nodes-base.set",
      "position": [
        4720,
        -2688
      ]
    },
    {
      "id": "7371ae36-0546-42a0-8998-8ac5dc5466d7",
      "name": "RSS Feed Trigger",
      "type": "n8n-nodes-base.rssFeedReadTrigger",
      "position": [
        -688,
        -2336
      ]
    },
    {
      "id": "a3bc8f13-cd09-40e9-b06f-88861ec1c33e",
      "name": "Assign URL",
      "type": "n8n-nodes-base.set",
      "position": [
        -384,
        -2336
      ]
    },
    {
      "id": "e572bc99-2b5e-42b9-b5c4-6780ad839086",
      "name": "Scrape Page",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -128,
        -2336
      ]
    },
    {
      "id": "d5702695-59c1-42ca-8631-021378855506",
      "name": "Assign and Multilingual Prompt",
      "type": "n8n-nodes-base.set",
      "position": [
        464,
        -2336
      ]
    },
    {
      "id": "f911b028-6dbd-424d-bb5a-955b1845a28e",
      "name": "Aggregate",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        2720,
        -2704
      ]
    },
    {
      "id": "008c6681-0fe4-42d4-8b36-31715a96808c",
      "name": "Clean Data",
      "type": "n8n-nodes-base.set",
      "position": [
        2512,
        -2704
      ]
    },
    {
      "id": "37731987-03fa-4874-8875-112b3b1f1b03",
      "name": "Code in JavaScript",
      "type": "n8n-nodes-base.code",
      "position": [
        2912,
        -2704
      ]
    },
    {
      "id": "eb810efe-cfd1-4cd8-a552-6bfd1f53f19b",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -448,
        -2544
      ],
      "parameters": {
        "width": 1104,
        "height": 128,
        "content": "## Scrape, extract article and assign languages\n\nThis section scrapes the page content and uses OpenAI to extract the article text, removing any HTML tags or ads. It also identifies the news title."
      }
    },
    {
      "id": "ba13da29-7405-437e-bae4-eb45b500f1e7",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1872,
        -2912
      ],
      "parameters": {
        "width": 1232,
        "height": 144,
        "content": "## Multilingual Processing\n\nThis section translates the article body into the languages you specified. It does not rewrite the content, but provides accurate translations, ensuring your multilingual n"
      }
    },
    {
      "id": "a5995570-9720-496c-92c1-20c8a1b9be8e",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3760,
        -2880
      ],
      "parameters": {
        "width": 1136,
        "height": 128,
        "content": "## Featured Image Generation\nCreates a unique featured image for each article in your preferred style. Adjust the prompt as needed to match your visual style. It also uploads the images to your wordpr"
      }
    },
    {
      "id": "58aaa6c2-2ee6-4ad8-adf6-51ed00e88191",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        5248,
        -2624
      ],
      "parameters": {
        "width": 624,
        "height": null,
        "content": "## WordPress Publishing\nCreates the final post with a featured image and multilingual fields. This section publishes the articles and assigns the image ID as featured images. Alternatively, you can se"
      }
    },
    {
      "id": "219c2b0f-36d5-4848-91d8-afac2c5ffc15",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1328,
        -2752
      ],
      "parameters": {
        "width": 560,
        "height": 576,
        "content": "## How it works\nThe workflow checks an RSS feed every hour, scrapes each article, and uses OpenAI to identify the main body content. It then rewrites the news in your chosen language and translates it"
      }
    },
    {
      "id": "2ab2dc60-de28-4872-be8e-0851d8973f83",
      "name": "Translate news",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        2176,
        -2704
      ]
    },
    {
      "id": "8a0b7fec-f900-4e34-8e44-8b236b3a617a",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -448,
        -2400
      ],
      "parameters": {
        "width": 1104,
        "height": 256,
        "content": ""
      }
    },
    {
      "id": "7fb35891-f1c0-40f4-9f9f-4dc6a79f4f54",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        944,
        -2576
      ],
      "parameters": {
        "width": 640,
        "height": null,
        "content": "## Rewriting in your main language\n\nThis section rewrites the articles in the main language you specified earlier. It also adapts the content to a specific style, for example, a technology news portal"
      }
    },
    {
      "id": "03a9a079-67c6-4885-ad84-7fa7ec1d22d6",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        944,
        -2400
      ],
      "parameters": {
        "width": 640,
        "height": 256,
        "content": ""
      }
    },
    {
      "id": "3c8dff4c-6a3e-4dcc-b59e-a6c2c9af7c19",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1872,
        -2752
      ],
      "parameters": {
        "width": 1232,
        "height": 240,
        "content": ""
      }
    },
    {
      "id": "d5d20718-6311-4267-8d2d-c015675f453f",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3760,
        -2736
      ],
      "parameters": {
        "width": 1136,
        "height": 224,
        "content": ""
      }
    },
    {
      "id": "07f6b9c0-67e3-4b39-b05f-9c6ded067daa",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        5248,
        -2448
      ],
      "parameters": {
        "width": 624,
        "height": 336,
        "content": ""
      }
    },
    {
      "id": "c4d56a5e-39db-446c-b574-c5b8dac71cf5",
      "name": "Rewrite article in default language",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1008,
        -2336
      ]
    },
    {
      "id": "d4097117-d296-4a12-b367-6d9ef7d6ecb9",
      "name": "Get rewrited article",
      "type": "n8n-nodes-base.set",
      "position": [
        1408,
        -2336
      ]
    },
    {
      "id": "ad36f8d4-d9ac-400b-8a60-1e4628d229af",
      "name": "Publish article and translations",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        5664,
        -2352
      ]
    },
    {
      "id": "a2e2fac0-67b7-4371-a51d-7ed612d222f6",
      "name": "Upload image to wordpress",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        4528,
        -2688
      ]
    },
    {
      "id": "7088128f-2d12-47b1-8059-01c09a7ca222",
      "name": "Download Image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        4320,
        -2688
      ]
    },
    {
      "id": "beb2c5b1-e82c-4d2f-843b-4b1c38901d6d",
      "name": "Generate Image Prompt",
      "type": "n8n-nodes-base.code",
      "position": [
        3840,
        -2688
      ]
    },
    {
      "id": "0226489b-71f5-4db6-abbd-423c96973012",
      "name": "Merge image and articles variables",
      "type": "n8n-nodes-base.merge",
      "position": [
        5360,
        -2352
      ]
    },
    {
      "id": "d5071255-f81e-4f35-92ab-706cab275f27",
      "name": "Detect and Extract Article from Page HTML",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        128,
        -2336
      ]
    },
    {
      "id": "da13d7a2-0b2d-45a0-82b5-19329b81090a",
      "name": "Split Out Translate Languages",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        1952,
        -2704
      ]
    },
    {
      "id": "5aa2c500-2dc4-499e-a21b-564a3a8b7133",
      "name": "Merge Article with Translations",
      "type": "n8n-nodes-base.merge",
      "position": [
        3376,
        -2352
      ]
    }
  ],
  "connections": {
    "Aggregate": {
      "main": [
        [
          {
            "node": "Code in JavaScript",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Assign URL": {
      "main": [
        [
          {
            "node": "Scrape Page",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean Data": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Scrape Page": {
      "main": [
        [
          {
            "node": "Detect and Extract Article from Page HTML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Image ID": {
      "main": [
        [
          {
            "node": "Merge image and articles variables",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Image": {
      "main": [
        [
          {
            "node": "Upload image to wordpress",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Translate news": {
      "main": [
        [
          {
            "node": "Clean Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "RSS Feed Trigger": {
      "main": [
        [
          {
            "node": "Assign URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code in JavaScript": {
      "main": [
        [
          {
            "node": "Merge Article with Translations",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get rewrited article": {
      "main": [
        [
          {
            "node": "Split Out Translate Languages",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge Article with Translations",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Generate Image Prompt": {
      "main": [
        [
          {
            "node": "Generate Featured Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Featured Image": {
      "main": [
        [
          {
            "node": "Download Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload image to wordpress": {
      "main": [
        [
          {
            "node": "Get Image ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out Translate Languages": {
      "main": [
        [
          {
            "node": "Translate news",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Assign and Multilingual Prompt": {
      "main": [
        [
          {
            "node": "Rewrite article in default language",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Article with Translations": {
      "main": [
        [
          {
            "node": "Generate Image Prompt",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge image and articles variables",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Merge image and articles variables": {
      "main": [
        [
          {
            "node": "Publish article and translations",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Rewrite article in default language": {
      "main": [
        [
          {
            "node": "Get rewrited article",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Detect and Extract Article from Page HTML": {
      "main": [
        [
          {
            "node": "Assign and Multilingual Prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}