{
  "name": "Content Repurposing Engine",
  "nodes": [
    {
      "parameters": {
        "url": "https://example-blog.com/rss"
      },
      "name": "New Blog Post",
      "type": "n8n-nodes-base.rssFeedRead",
      "typeVersion": 1,
      "position": [
        450,
        300
      ],
      "notes": "Triggers when a new article is posted to a blog's RSS feed. **ACTION REQUIRED:** Replace with your blog's RSS feed URL."
    },
    {
      "parameters": {
        "url": "={{ $json.link }}",
        "options": {}
      },
      "name": "Fetch Article Content",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 1,
      "position": [
        650,
        300
      ],
      "notes": "Fetches the full HTML content of the blog post."
    },
    {
      "parameters": {
        "url": "https://api.example.com/v1/chat/completions",
        "options": {},
        "bodyParameters": {
          "parameters": [
            {
              "name": "model",
              "value": "gpt-4"
            },
            {
              "name": "messages",
              "value": "={{ [ { \"role\": \"system\", \"content\": \"You are a social media expert. Create a short, engaging tweet (under 280 characters) based on the following article content.\" }, { \"role\": \"user\", \"content\": \"Article Content: \" + $node[\"Fetch Article Content\"].json.data + \"\" } ] }}"
            }
          ]
        },
        "authentication": "headerAuth"
      },
      "name": "Generate Tweet",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 1,
      "position": [
        850,
        100
      ],
      "notes": "Generates a tweet from the article. **ACTION REQUIRED:** Configure LLM URL and authentication.",
      "credentials": {
        "httpHeaderAuth": {
          "id": "placeholder",
          "name": "LLM API Key"
        }
      }
    },
    {
      "parameters": {
        "url": "https://api.example.com/v1/chat/completions",
        "options": {},
        "bodyParameters": {
          "parameters": [
            {
              "name": "model",
              "value": "gpt-4"
            },
            {
              "name": "messages",
              "value": "={{ [ { \"role\": \"system\", \"content\": \"You are a professional content writer. Create a LinkedIn post with 3-4 key takeaways from the following article content.\" }, { \"role\": \"user\", \"content\": \"Article Content: \" + $node[\"Fetch Article Content\"].json.data + \"\" } ] }}"
            }
          ]
        },
        "authentication": "headerAuth"
      },
      "name": "Generate LinkedIn Post",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 1,
      "position": [
        850,
        300
      ],
      "notes": "Generates a LinkedIn post from the article. **ACTION REQUIRED:** Configure LLM URL and authentication.",
      "credentials": {
        "httpHeaderAuth": {
          "id": "placeholder",
          "name": "LLM API Key"
        }
      }
    },
    {
      "parameters": {
        "url": "https://api.example.com/v1/chat/completions",
        "options": {},
        "bodyParameters": {
          "parameters": [
            {
              "name": "model",
              "value": "gpt-4"
            },
            {
              "name": "messages",
              "value": "={{ [ { \"role\": \"system\", \"content\": \"You are an email marketer. Write a short, exciting snippet for an email newsletter based on the following article content.\" }, { \"role\": \"user\", \"content\": \"Article Content: \" + $node[\"Fetch Article Content\"].json.data + \"\" } ] }}"
            }
          ]
        },
        "authentication": "headerAuth"
      },
      "name": "Generate Email Snippet",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 1,
      "position": [
        850,
        500
      ],
      "notes": "Generates an email snippet from the article. **ACTION REQUIRED:** Configure LLM URL and authentication.",
      "credentials": {
        "httpHeaderAuth": {
          "id": "placeholder",
          "name": "LLM API Key"
        }
      }
    },
    {
      "parameters": {
        "text": "{{ $json.choices[0].message.content }}"
      },
      "name": "Post to Twitter",
      "type": "n8n-nodes-base.twitter",
      "typeVersion": 1,
      "position": [
        1050,
        100
      ],
      "notes": "**ACTION REQUIRED:** Configure Twitter credentials.",
      "credentials": {
        "twitterApi": {
          "id": "placeholder",
          "name": "Twitter Account"
        }
      }
    },
    {
      "parameters": {
        "content": "{{ $json.choices[0].message.content }}"
      },
      "name": "Post to LinkedIn",
      "type": "n8n-nodes-base.linkedIn",
      "typeVersion": 1,
      "position": [
        1050,
        300
      ],
      "notes": "**ACTION REQUIRED:** Configure LinkedIn credentials.",
      "credentials": {
        "linkedInOAuth2Api": {
          "id": "placeholder",
          "name": "LinkedIn Account"
        }
      }
    }
  ],
  "connections": {
    "New Blog Post": {
      "main": [
        [
          {
            "node": "Fetch Article Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Article Content": {
      "main": [
        [
          {
            "node": "Generate Tweet",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Generate LinkedIn Post",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Generate Email Snippet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Tweet": {
      "main": [
        [
          {
            "node": "Post to Twitter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate LinkedIn Post": {
      "main": [
        [
          {
            "node": "Post to LinkedIn",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}