{
  "name": "Auto-Publicar Contenido con Blotato - Plantilla",
  "nodes": [
    {
      "parameters": {
        "platform": "youtube",
        "accountId": {
          "__rl": true,
          "value": "TU_ACCOUNT_ID_YOUTUBE",
          "mode": "list"
        },
        "postContentText": "={{ $json.text }}",
        "postContentMediaUrls": "={{ $json.mediaUrls }}",
        "postCreateYoutubeOptionTitle": "={{ $('Preparar Datos').first().json.ideaTitle }}",
        "postCreateYoutubeOptionShouldNotifySubscribers": false,
        "options": {
          "scheduledTime": "={{ $json.scheduledTime }}"
        }
      },
      "id": "9f4529ac-ea84-4394-bf2e-cd11e895a8a9",
      "name": "Youtube",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "position": [
        688,
        480
      ],
      "typeVersion": 2,
      "credentials": {
        "blotatoApi": {
          "id": "PHhel6ZQFdVL2rR2",
          "name": "Blotato account"
        }
      },
      "onError": "continueRegularOutput"
    },
    {
      "parameters": {
        "platform": "tiktok",
        "accountId": {
          "__rl": true,
          "value": "TU_ACCOUNT_ID_TIKTOK",
          "mode": "list"
        },
        "postContentText": "={{ $json.text }}",
        "postContentMediaUrls": "={{ $json.mediaUrls }}",
        "options": {
          "scheduledTime": "={{ $json.scheduledTime }}"
        }
      },
      "id": "80946e7d-6bab-4ad3-9cef-84cacd1a78d5",
      "name": "Tiktok",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "position": [
        688,
        -240
      ],
      "typeVersion": 2,
      "credentials": {
        "blotatoApi": {
          "id": "PHhel6ZQFdVL2rR2",
          "name": "Blotato account"
        }
      },
      "onError": "continueRegularOutput"
    },
    {
      "parameters": {
        "platform": "linkedin",
        "accountId": {
          "__rl": true,
          "value": "TU_ACCOUNT_ID_LINKEDIN",
          "mode": "list"
        },
        "postContentText": "={{ $json.text }}",
        "postContentMediaUrls": "={{ $json.mediaUrls }}",
        "options": {
          "scheduledTime": "={{ $json.scheduledTime }}"
        }
      },
      "id": "6890bef5-880d-478c-8c7b-b4a101d7f031",
      "name": "Linkedin",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "position": [
        688,
        -64
      ],
      "typeVersion": 2,
      "credentials": {
        "blotatoApi": {
          "id": "PHhel6ZQFdVL2rR2",
          "name": "Blotato account"
        }
      },
      "onError": "continueRegularOutput"
    },
    {
      "parameters": {
        "platform": "facebook",
        "accountId": {
          "__rl": true,
          "value": "TU_ACCOUNT_ID_FACEBOOK",
          "mode": "list"
        },
        "postContentText": "={{ $json.text }}",
        "postContentMediaUrls": "={{ $json.mediaUrls }}",
        "facebookPageId": {
          "__rl": true,
          "value": "TU_PAGE_ID_FACEBOOK",
          "mode": "list"
        },
        "options": {
          "scheduledTime": "={{ $json.scheduledTime }}"
        }
      },
      "id": "78650c58-ec33-41fa-acb6-90959fdf506e",
      "name": "Facebook",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "position": [
        704,
        112
      ],
      "typeVersion": 2,
      "credentials": {
        "blotatoApi": {
          "id": "PHhel6ZQFdVL2rR2",
          "name": "Blotato account"
        }
      },
      "onError": "continueRegularOutput"
    },
    {
      "parameters": {
        "accountId": {
          "__rl": true,
          "value": "TU_ACCOUNT_ID_INSTAGRAM",
          "mode": "list"
        },
        "postContentText": "={{ $json.text }}",
        "postContentMediaUrls": "={{ $json.mediaUrls }}",
        "options": {
          "scheduledTime": "={{ $json.scheduledTime }}"
        }
      },
      "id": "0a2f671f-b19d-467b-9411-8a1737572bf1",
      "name": "Instagram",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "position": [
        704,
        272
      ],
      "typeVersion": 2,
      "credentials": {
        "blotatoApi": {
          "id": "PHhel6ZQFdVL2rR2",
          "name": "Blotato account"
        }
      },
      "onError": "continueRegularOutput"
    },
    {
      "parameters": {
        "platform": "twitter",
        "accountId": {
          "__rl": true,
          "mode": "list",
          "value": "TU_ACCOUNT_ID_TWITTER"
        },
        "postContentText": "={{ $json.text }}",
        "postContentMediaUrls": "={{ $json.mediaUrls }}",
        "options": {}
      },
      "id": "a450f3e4-bf9a-4b8f-90ff-d4c51b590a48",
      "name": "Twitter (X)",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "position": [
        704,
        656
      ],
      "typeVersion": 2,
      "credentials": {
        "blotatoApi": {
          "id": "PHhel6ZQFdVL2rR2",
          "name": "Blotato account"
        }
      },
      "disabled": true,
      "onError": "continueRegularOutput"
    },
    {
      "parameters": {
        "mode": "chooseBranch",
        "numberInputs": 6
      },
      "id": "569fd663-883c-4f7c-b8b4-c737c617ba38",
      "name": "Merge1",
      "type": "n8n-nodes-base.merge",
      "position": [
        1248,
        192
      ],
      "typeVersion": 3.2
    },
    {
      "parameters": {
        "chatId": "TU_CHAT_ID_DE_TELEGRAM",
        "text": "=✅ Contenido programado en 5 plataformas\n\n📌 {{ $('Preparar Datos').first().json.ideaTitle }}\n\n📅 Fecha: {{ new Date($('Preparar Datos').first().json.fechaPublicacion).toLocaleDateString('es-MX', {weekday:'long', year:'numeric', month:'long', day:'numeric', timeZone:'America/Edmonton'}) }}\n🕐 Hora: {{ new Date($('Preparar Datos').first().json.fechaPublicacion).toLocaleTimeString('es-MX', {hour:'2-digit', minute:'2-digit', timeZone:'America/Edmonton'}) }}\n\n🔗 Ver posts programados en Blotato:\nhttps://my.blotato.com/queue/calendar",
        "additionalFields": {
          "parse_mode": "HTML"
        }
      },
      "id": "fdcdd1ed-2061-4baf-924f-0f565d6ad3ce",
      "name": "Send a text message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1664,
        880
      ],
      "webhookId": "ba74ea20-4e1f-45e4-b95e-0c41b4394b56",
      "typeVersion": 1.2,
      "credentials": {
        "telegramApi": {
          "id": "cFKFhPh6bt9gSoaR",
          "name": "Sara CM Bot - Telegram"
        }
      }
    },
    {
      "parameters": {
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        },
        "event": "pagedUpdatedInDatabase",
        "databaseId": {
          "__rl": true,
          "value": "TU_DATABASE_ID_DE_NOTION",
          "mode": "list"
        },
        "simple": false
      },
      "id": "a1",
      "name": "Notion: Idea Aprobada",
      "type": "n8n-nodes-base.notionTrigger",
      "typeVersion": 1,
      "position": [
        -2640,
        272
      ],
      "credentials": {
        "notionApi": {
          "id": "8f6oSJUdJqqZ9Zkx",
          "name": "Notion account"
        }
      }
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 1
          },
          "conditions": [
            {
              "id": "c1",
              "leftValue": "={{ $json.properties.Estado.status.name }}",
              "rightValue": "Aprobado",
              "operator": {
                "type": "string",
                "operation": "equals"
              }
            },
            {
              "id": "c2",
              "leftValue": "={{ $json.properties['Fecha de publicacion'].date.start }}",
              "rightValue": "",
              "operator": {
                "type": "string",
                "operation": "notEmpty"
              }
            },
            {
              "id": "c3",
              "leftValue": "={{ $json.properties['Link drive'].url }}",
              "rightValue": "",
              "operator": {
                "type": "string",
                "operation": "notEmpty"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "a2",
      "name": "Estado Aprobado",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2,
      "position": [
        -2448,
        272
      ]
    },
    {
      "parameters": {
        "resource": "block",
        "operation": "getAll",
        "blockId": {
          "__rl": true,
          "value": "={{ $json.id }}",
          "mode": "id"
        },
        "returnAll": true
      },
      "id": "a3",
      "name": "Obtener Contenido Idea",
      "type": "n8n-nodes-base.notion",
      "typeVersion": 2.2,
      "position": [
        -1920,
        240
      ],
      "credentials": {
        "notionApi": {
          "id": "8f6oSJUdJqqZ9Zkx",
          "name": "Notion account"
        }
      }
    },
    {
      "parameters": {
        "aggregate": "aggregateAllItemData",
        "destinationFieldName": "bloques",
        "options": {}
      },
      "id": "a4",
      "name": "Agrupar Bloques",
      "type": "n8n-nodes-base.aggregate",
      "typeVersion": 1,
      "position": [
        -1680,
        240
      ]
    },
    {
      "parameters": {
        "jsCode": "const page = $('Loop Paginas').first().json;\nconst p = page.properties;\nconst pageId = page.id;\nconst ideaTitle = p['Idea Title']?.title?.[0]?.plain_text || 'Sin titulo';\nconst fechaPublicacion = p['Fecha de publicacion']?.date?.start || null;\nconst linkDrive = p['Link drive']?.url || null;\nconst formato = p['Formato']?.select?.name || null;\n\n// n8n Notion block node returns text in b.content (not b.heading_2.rich_text)\nconst bloques = $json.bloques || [];\nlet inCaption = false;\nconst captionLines = [];\nconst allParagraphLines = [];\n\nfor (const b of bloques) {\n  const bType = b.type || '';\n  const content = (b.content || '').trim();\n\n  if (bType.startsWith('heading')) {\n    inCaption = content.toUpperCase() === 'CAPTION';\n    continue;\n  }\n  if (bType === 'paragraph' && content) {\n    allParagraphLines.push(content);\n    if (inCaption) captionLines.push(content);\n  }\n}\n\nconst copy = captionLines.length > 0\n  ? captionLines.join('\\n\\n')\n  : allParagraphLines.length > 0\n    ? allParagraphLines.join('\\n\\n')\n    : ideaTitle;\n\n// Extract Drive ID\nlet driveId = null;\nlet isFolder = false;\nif (linkDrive) {\n  const fm = linkDrive.match(/folders\\/([a-zA-Z0-9_-]+)/);\n  const vm = linkDrive.match(/\\/d\\/([a-zA-Z0-9_-]+)/);\n  if (fm) { driveId = fm[1]; isFolder = true; }\n  else if (vm) { driveId = vm[1]; isFolder = false; }\n}\n\nconst isCarrusel = formato === 'Carousel';\nreturn [{ json: { pageId, ideaTitle, fechaPublicacion, linkDrive, driveId, isFolder, formato, isCarrusel, copy } }];\n"
      },
      "id": "a5",
      "name": "Preparar Datos",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        -1440,
        240
      ]
    },
    {
      "parameters": {
        "method": "PATCH",
        "url": "=https://api.notion.com/v1/pages/{{ $('Preparar Datos').first().json.pageId }}",
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "notionApi",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "{\"properties\":{\"Estado\":{\"status\":{\"name\":\"Agendado\"}}}}",
        "options": {}
      },
      "id": "a6",
      "name": "Actualizar a Agendado",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        -1200,
        240
      ],
      "credentials": {
        "notionApi": {
          "id": "8f6oSJUdJqqZ9Zkx",
          "name": "Notion account"
        }
      }
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 1
          },
          "conditions": [
            {
              "id": "c1",
              "leftValue": "={{ $('Preparar Datos').first().json.formato }}",
              "rightValue": "Carousel",
              "operator": {
                "type": "string",
                "operation": "equals"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "a7",
      "name": "Carrusel o Reel",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2,
      "position": [
        -960,
        240
      ]
    },
    {
      "parameters": {
        "url": "https://www.googleapis.com/drive/v3/files",
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "googleDriveOAuth2Api",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "q",
              "value": "={{ \"'\" + $('Preparar Datos').first().json.driveId + \"' in parents and mimeType != 'application/vnd.google-apps.folder'\" }}"
            },
            {
              "name": "fields",
              "value": "files(id,name,mimeType)"
            },
            {
              "name": "orderBy",
              "value": "name"
            },
            {
              "name": "pageSize",
              "value": "100"
            },
            {
              "name": "supportsAllDrives",
              "value": "true"
            },
            {
              "name": "includeItemsFromAllDrives",
              "value": "true"
            }
          ]
        },
        "options": {}
      },
      "id": "b1",
      "name": "Listar Slides Drive",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4,
      "position": [
        -736,
        48
      ],
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "LDGGg1KhJIDPFVvZ",
          "name": "Google Drive account"
        }
      }
    },
    {
      "parameters": {
        "jsCode": "const response = $input.first().json;\nconst files = (response.files || [])\n  .filter(f => f.name && f.name.endsWith('.png'))\n  .sort((a, b) => a.name.localeCompare(b.name));\nif (files.length === 0) throw new Error('No PNG slides found in Drive folder');\nconst meta = $('Preparar Datos').first().json;\nreturn files.map(f => ({ json: { fileId: f.id, ...meta } }));"
      },
      "id": "b2",
      "name": "Ordenar PNGs",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        -528,
        32
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "=https://www.googleapis.com/drive/v3/files/{{ $json.fileId }}/permissions",
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "googleDriveOAuth2Api",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "supportsAllDrives",
              "value": "true"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "{\"type\":\"anyone\",\"role\":\"reader\"}",
        "options": {}
      },
      "id": "b4",
      "name": "Hacer Slide Publico",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        -336,
        -32
      ],
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "LDGGg1KhJIDPFVvZ",
          "name": "Google Drive account"
        }
      }
    },
    {
      "parameters": {
        "resource": "media",
        "mediaUrl": "=https://lh3.googleusercontent.com/d/{{ $('Ordenar PNGs').item.json.fileId }}=s0"
      },
      "id": "b5",
      "name": "Subir Slide a Blotato",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "typeVersion": 2,
      "position": [
        -160,
        -32
      ],
      "credentials": {
        "blotatoApi": {
          "id": "PHhel6ZQFdVL2rR2",
          "name": "Blotato account"
        }
      }
    },
    {
      "parameters": {
        "jsCode": "const meta=$('Preparar Datos').first().json;\nconst mediaUrls=$input.all().map(i=>i.json.url).filter(Boolean);\nif(mediaUrls.length===0)throw new Error('No Blotato media URLs collected');\nconst scheduledTime = meta.fechaPublicacion ? new Date(meta.fechaPublicacion).toISOString() : null;\nlet text = meta.copy || '';\nif (text.length > 2100) text = text.slice(0, 2100).replace(/\\s+\\S*$/, '') + '…';\nreturn [{json:{text, mediaUrls, scheduledTime}}];"
      },
      "id": "b6",
      "name": "Preparar Post Carousel",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        0,
        -32
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "=https://www.googleapis.com/drive/v3/files/{{ $('Preparar Datos').first().json.driveId }}/permissions",
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "googleDriveOAuth2Api",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "supportsAllDrives",
              "value": "true"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "{\"type\":\"anyone\",\"role\":\"reader\"}",
        "options": {}
      },
      "id": "c1",
      "name": "Hacer Video Publico",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        -592,
        816
      ],
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "LDGGg1KhJIDPFVvZ",
          "name": "Google Drive account"
        }
      }
    },
    {
      "parameters": {
        "resource": "media",
        "mediaUrl": "=https://drive.google.com/uc?export=download&id={{ $('Preparar Datos').first().json.driveId }}"
      },
      "id": "c2",
      "name": "Subir Video a Blotato",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "typeVersion": 2,
      "position": [
        -320,
        848
      ],
      "credentials": {
        "blotatoApi": {
          "id": "PHhel6ZQFdVL2rR2",
          "name": "Blotato account"
        }
      }
    },
    {
      "parameters": {
        "jsCode": "const meta=$('Preparar Datos').first().json;\nconst mediaUrls=[$json.url].filter(Boolean);\nif(mediaUrls.length===0)throw new Error('No Blotato media URL for video');\nconst scheduledTime = meta.fechaPublicacion ? new Date(meta.fechaPublicacion).toISOString() : null;\nlet text = meta.copy || '';\nif (text.length > 2100) text = text.slice(0, 2100).replace(/\\s+\\S*$/, '') + '…';\nreturn [{json:{text, mediaUrls, scheduledTime}}];"
      },
      "id": "c3",
      "name": "Preparar Post Reel",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        -32,
        864
      ]
    },
    {
      "parameters": {
        "jsCode": "// Instagram: máximo 5 hashtags por post (límite de Blotato)\nconst text = $json.text || '';\nconst hashtags = text.match(/#[\\w\\u00C0-\\u017E]+/g) || [];\n\nlet cleanText = text;\nif (hashtags.length > 5) {\n  const toRemove = hashtags.slice(5);\n  for (const tag of toRemove) {\n    // Remove the extra hashtag and any leading space before it\n    cleanText = cleanText.replace(new RegExp('\\\\s*' + tag.replace('#', '\\\\#'), 'g'), '');\n  }\n  cleanText = cleanText.replace(/[ \\t]{2,}/g, ' ').trim();\n}\n\nreturn [{ json: { ...$json, text: cleanText } }];"
      },
      "id": "ig-hashtag-cleaner-001",
      "name": "Limpiar Hashtags Instagram",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        160,
        432
      ]
    },
    {
      "parameters": {
        "options": {}
      },
      "id": "loop_pages",
      "name": "Loop Paginas",
      "type": "n8n-nodes-base.splitInBatches",
      "typeVersion": 3,
      "position": [
        -2176,
        176
      ]
    }
  ],
  "connections": {
    "Notion: Idea Aprobada": {
      "main": [
        [
          {
            "node": "Estado Aprobado",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Estado Aprobado": {
      "main": [
        [
          {
            "node": "Loop Paginas",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    },
    "Obtener Contenido Idea": {
      "main": [
        [
          {
            "node": "Agrupar Bloques",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Agrupar Bloques": {
      "main": [
        [
          {
            "node": "Preparar Datos",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Preparar Datos": {
      "main": [
        [
          {
            "node": "Carrusel o Reel",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Actualizar a Agendado": {
      "main": [
        [
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Carrusel o Reel": {
      "main": [
        [
          {
            "node": "Listar Slides Drive",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Hacer Video Publico",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Listar Slides Drive": {
      "main": [
        [
          {
            "node": "Ordenar PNGs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Ordenar PNGs": {
      "main": [
        [
          {
            "node": "Hacer Slide Publico",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Hacer Slide Publico": {
      "main": [
        [
          {
            "node": "Subir Slide a Blotato",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Subir Slide a Blotato": {
      "main": [
        [
          {
            "node": "Preparar Post Carousel",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Preparar Post Carousel": {
      "main": [
        [
          {
            "node": "Tiktok",
            "type": "main",
            "index": 0
          },
          {
            "node": "Linkedin",
            "type": "main",
            "index": 0
          },
          {
            "node": "Facebook",
            "type": "main",
            "index": 0
          },
          {
            "node": "Twitter (X)",
            "type": "main",
            "index": 0
          },
          {
            "node": "Youtube",
            "type": "main",
            "index": 0
          },
          {
            "node": "Limpiar Hashtags Instagram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Hacer Video Publico": {
      "main": [
        [
          {
            "node": "Subir Video a Blotato",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Subir Video a Blotato": {
      "main": [
        [
          {
            "node": "Preparar Post Reel",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Preparar Post Reel": {
      "main": [
        [
          {
            "node": "Tiktok",
            "type": "main",
            "index": 0
          },
          {
            "node": "Linkedin",
            "type": "main",
            "index": 0
          },
          {
            "node": "Facebook",
            "type": "main",
            "index": 0
          },
          {
            "node": "Twitter (X)",
            "type": "main",
            "index": 0
          },
          {
            "node": "Youtube",
            "type": "main",
            "index": 0
          },
          {
            "node": "Limpiar Hashtags Instagram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Tiktok": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Linkedin": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Facebook": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Instagram": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 3
          }
        ]
      ]
    },
    "Twitter (X)": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 5
          }
        ]
      ]
    },
    "Youtube": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 4
          }
        ]
      ]
    },
    "Merge1": {
      "main": [
        [
          {
            "node": "Actualizar a Agendado",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Limpiar Hashtags Instagram": {
      "main": [
        [
          {
            "node": "Instagram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Paginas": {
      "main": [
        [],
        [
          {
            "node": "Obtener Contenido Idea",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send a text message": {
      "main": [
        [
          {
            "node": "Loop Paginas",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  }
}