{
  "name": "Auto-publish YouTube videos to Facebook & Instagram with AI-generated captions",
  "nodes": [
    {
      "id": "workflow-overview-social",
      "name": "Workflow Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1300,
        -320
      ],
      "parameters": {
        "width": 350,
        "height": 380,
        "content": "# 📱 YouTube to Social Media Automation\n\n**Purpose:** Auto-publish YouTube videos to Facebook & Instagram\n\n**Schedule:** Checks for new videos every hour\n\n**Required Setup:**\n1. YouTube channel RSS fee"
      }
    },
    {
      "id": "rss-trigger-note",
      "name": "RSS Trigger Info",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1040,
        -320
      ],
      "parameters": {
        "width": 280,
        "height": 220,
        "content": "## 🎥 YouTube RSS Trigger\n\n**Monitors your YouTube channel:**\n- Checks every hour for new uploads\n- Uses YouTube RSS feed format\n\n**To find your channel ID:**\n1. Go to your YouTube channel\n2. View page"
      }
    },
    {
      "id": "ai-caption-note",
      "name": "AI Caption Generation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -740,
        -320
      ],
      "parameters": {
        "width": 280,
        "height": 200,
        "content": "## 🤖 AI Caption Generation\n\n**OpenAI GPT-4o-mini:**\n- Generates engaging social media captions\n- Includes emojis automatically\n- Adds call-to-action\n\n**Customize the prompt to:**\n- Match your brand vo"
      }
    },
    {
      "id": "facebook-post-note",
      "name": "Facebook Publishing",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -390,
        -440
      ],
      "parameters": {
        "width": 250,
        "height": 180,
        "content": "## 📘 Facebook Publishing\n\n**Direct post to Facebook Page**\n\n⚠️ **Required updates:**\n- Replace `<Facebook_PageID>`\n- Replace `<Access_Token>`\n\n**Note:** Uses error handling to continue workflow even i"
      }
    },
    {
      "id": "instagram-flow-note",
      "name": "Instagram Publishing Flow",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -120,
        -180
      ],
      "parameters": {
        "width": 300,
        "height": 220,
        "content": "## 📸 Instagram Publishing Flow\n\n**3-step process:**\n1. Get Business Account ID\n2. Create media container with thumbnail\n3. Publish the post\n\n**Automatic thumbnail:**\nPulls YouTube video thumbnail as I"
      }
    },
    {
      "id": "api-requirements-note",
      "name": "API Requirements",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -440,
        280
      ],
      "parameters": {
        "width": 250,
        "height": 200,
        "content": "⚠️ **Meta API Requirements**\n\n**Required Permissions:**\n- pages_manage_posts\n- pages_read_engagement\n- pages_show_list\n- instagram_content_publish\n- instagram_basic\n\n**Token Type:** Long-lived access "
      }
    },
    {
      "id": "cda123c2-21a3-421d-918e-5a6973002aa3",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -740,
        -80
      ]
    },
    {
      "id": "d215f6c3-f9d7-4103-8c26-419f468cf74b",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -740,
        160
      ]
    },
    {
      "id": "fbf6f102-1f8d-4e22-a850-1f5f163b94d5",
      "name": "Post on Facebook",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -340,
        -240
      ]
    },
    {
      "id": "000891de-e3e2-4de8-8742-ad45a2a958db",
      "name": "Publish Post On Instagram",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        180,
        60
      ]
    },
    {
      "id": "2e65dd2e-7f9e-4abd-b6c7-e811b3a86349",
      "name": "Get IG Business Account ID",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -340,
        80
      ]
    },
    {
      "id": "c2d089b9-754c-49fe-aa4d-976072340a0e",
      "name": "Create Media Container",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -80,
        60
      ]
    },
    {
      "id": "29656ae1-d60e-4f4d-9326-17801ddcbb65",
      "name": "Pull Youtube Video From Channel",
      "type": "n8n-nodes-base.rssFeedReadTrigger",
      "position": [
        -1000,
        -80
      ]
    }
  ],
  "connections": {
    "AI Agent": {
      "main": [
        [
          {
            "node": "Get IG Business Account ID",
            "type": "main",
            "index": 0
          },
          {
            "node": "Post on Facebook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post on Facebook": {
      "main": [
        []
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Create Media Container": {
      "main": [
        [
          {
            "node": "Publish Post On Instagram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Publish Post On Instagram": {
      "main": [
        []
      ]
    },
    "Get IG Business Account ID": {
      "main": [
        [
          {
            "node": "Create Media Container",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pull Youtube Video From Channel": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}