{
  "name": "Schedule & auto-post videos to Instagram, LinkedIn & TikTok with Google Sheets",
  "nodes": [
    {
      "id": "5f5bd65b-479b-47e9-ae78-68dc6d169082",
      "name": "Format Drive Content",
      "type": "n8n-nodes-base.set",
      "position": [
        1120,
        720
      ]
    },
    {
      "id": "2d6766c2-f247-465b-828f-0e9509eab52a",
      "name": "Social Media Account IDs",
      "type": "n8n-nodes-base.set",
      "position": [
        1312,
        720
      ]
    },
    {
      "id": "42b31498-cacd-4306-b50f-cdbe147a1f97",
      "name": "Google Sheets1",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1808,
        768
      ]
    },
    {
      "id": "de1b0952-97a3-4548-97c6-429506562615",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        880,
        736
      ]
    },
    {
      "id": "58fd593a-55e3-43f3-8a83-2e5c30faf08a",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "position": [
        624,
        784
      ]
    },
    {
      "id": "67e4c47c-6c50-4db7-980a-9f9d90c02171",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        64,
        704
      ]
    },
    {
      "id": "1d12a289-2338-4c17-ae47-03eb3e3029f0",
      "name": "Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        368,
        768
      ]
    },
    {
      "id": "b1fa7e04-f27a-4ad4-b1ea-705e5f4e0c57",
      "name": "Send a text message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2160,
        736
      ]
    },
    {
      "id": "d8a3d499-d080-4b05-a72f-21b335807127",
      "name": "Upload a video",
      "type": "n8n-nodes-upload-post.uploadPost",
      "position": [
        1520,
        720
      ]
    },
    {
      "id": "e7b9ce97-22ad-4d42-a900-355fe8e88a8c",
      "name": "Sticky Note 1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        16,
        416
      ],
      "parameters": {
        "width": 280,
        "height": 416,
        "content": "## ⏰ Automatic Trigger\n\n**Runs twice daily:**\n- 9:00 AM\n- 9:00 PM\n\nTimezone: America/Santiago (Chile)\n\nYou can modify these times or add more trigger hours in the Schedule Trigger configuration."
      }
    },
    {
      "id": "5238bc52-83b7-46cb-9bc6-99ce206f3d76",
      "name": "Sticky Note 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        304,
        384
      ],
      "parameters": {
        "width": 220,
        "height": 544,
        "content": "## 📊 Fetch Scheduled Posts\n\n**Reads Google Sheets** to find posts ready to publish.\n\n**Filter criteria:**\n- Status = \"Listo para postear\"\n- Returns only the first match\n\n**Required columns:**\n- Title,"
      }
    },
    {
      "id": "9a9c2db6-b679-4692-9575-e1f119ba11ae",
      "name": "Sticky Note 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        560,
        304
      ],
      "parameters": {
        "width": 236,
        "height": 672,
        "content": "## 🕐 Time Formatter\n\n**Converts trigger timestamp** to Spanish readable format.\n\n**Output example:**\n\"16 de Octubre a las 9 am\"\n\n**Includes:**\n- Day of week (Spanish)\n- Month name (Spanish)\n- 12-hour "
      }
    },
    {
      "id": "eefaa4a9-1e27-4420-94d0-05d5d84ffaca",
      "name": "Sticky Note 4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        832,
        240
      ],
      "parameters": {
        "width": 188,
        "height": 624,
        "content": "## ✅ Time Validation\n\n**Checks if it's time to post** by comparing:\n\n- Current formatted time (from Code node)\n- Scheduled time in Google Sheets\n\n**If match:**\n✅ Continues to posting workflow\n\n**If no"
      }
    },
    {
      "id": "a7cb50a7-4b55-4e95-af31-289703097eb2",
      "name": "Sticky Note 5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1056,
        256
      ],
      "parameters": {
        "width": 204,
        "height": 624,
        "content": "## 📝 Data Preparation\n\n**Extracts and organizes** post data:\n\n- Title (post title)\n- Copy (caption/description)\n- Status (current status)\n- video_url (Google Drive link)\n- is_drive_file (set to true)\n"
      }
    },
    {
      "id": "df4652fc-c2a2-4857-8a12-64a9394eb3bf",
      "name": "Sticky Note 6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1264,
        432
      ],
      "parameters": {
        "width": 188,
        "height": 464,
        "content": "## 🆔 Account Configuration\n\n**Prepares social media account identifiers.**\n\nYou can specify different account IDs for each platform:\n- Facebook ID\n- Pinterest Board ID\n- etc."
      }
    },
    {
      "id": "47ed06b8-1c25-43e1-9c83-a04da050c2d3",
      "name": "Sticky Note 7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1472,
        272
      ],
      "parameters": {
        "width": 252,
        "height": 608,
        "content": "## 🎬 Multi-Platform Upload\n\n**Posts video simultaneously** to:\n- Instagram\n- LinkedIn\n- TikTok\n\n(You can add more Platforms)\n\n**Uses UploadPost API**\n\n**Content includes:**\n- Title + Copy as caption\n-"
      }
    },
    {
      "id": "6e65eca8-544a-425a-be1f-3dbde7ac67d1",
      "name": "Sticky Note 8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1744,
        368
      ],
      "parameters": {
        "width": 300,
        "height": 560,
        "content": "## 📊 Update Sheet Status\n\n**Marks post as published** in Google Sheets.\n\n**Changes:**\n- Status: \"Listo para postear\" → \"Posteado\"\n\n**Prevents:**\n- Duplicate posts\n- Re-processing same content\n\n**Match"
      }
    },
    {
      "id": "6c0d0d18-73b6-4e52-814c-b394708410c9",
      "name": "Sticky Note 9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2064,
        288
      ],
      "parameters": {
        "width": 300,
        "height": 624,
        "content": "## 📱 Telegram Notification\n\n**Sends detailed success report** with:\n\n**For each platform:**\n- Platform name\n- Post URL (clickable link)\n- Success status\n\n**Includes results for:**\n- Instagram\n- Linked"
      }
    },
    {
      "id": "98854a34-69db-46da-9714-90f85110eb9c",
      "name": "Sticky Note Main",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "width": 2432,
        "height": 1248,
        "content": "# Automated Social Media Video Posting\n\n## 🎯 Complete workflow for scheduling and posting videos to Instagram, LinkedIn, and TikTok\n\n### Key Features:\n✅ Automated scheduling (twice daily)\n✅ Multi-plat"
      }
    },
    {
      "id": "642ec7b5-a698-485e-a12e-c5add5bbe1f9",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2064,
        1024
      ],
      "parameters": {
        "width": null,
        "height": 192,
        "content": "## Google Sheets \n\nhttps://docs.google.com/spreadsheets/d/1ZKbnD7GM6eAHKzyDY98cvz9jMUib1HLU7d9gohYkR3s/edit?usp=sharing"
      }
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Format Drive Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheets": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheets1": {
      "main": [
        [
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload a video": {
      "main": [
        [
          {
            "node": "Google Sheets1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Drive Content": {
      "main": [
        [
          {
            "node": "Social Media Account IDs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Social Media Account IDs": {
      "main": [
        [
          {
            "node": "Upload a video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}