Mi Flujo de Trabajo 3

Intermedio

Este es unSocial Media, Multimodal AIflujo de automatización del dominio deautomatización que contiene 10 nodos.Utiliza principalmente nodos como If, Set, Limit, GoogleDrive, GoogleSheets. Automatizar la publicación de videos de TikTok desde Google Sheets y Drive con Blotato

Requisitos previos
  • Credenciales de API de Google Drive
  • Credenciales de API de Google Sheets
Vista previa del flujo de trabajo
Visualización de las conexiones entre nodos, con soporte para zoom y panorámica
Exportar flujo de trabajo
Copie la siguiente configuración JSON en n8n para importar y usar este flujo de trabajo
{
  "id": "fGSgxvT4oxPB2QtC",
  "meta": {
    "instanceId": "aa8f1cf0c4d8087e25a2eea962da249799481d2fb992314793977a97a5e71d77",
    "templateCredsSetupCompleted": true
  },
  "name": "My workflow 3",
  "tags": [],
  "nodes": [
    {
      "id": "803334ae-8858-402a-a572-d8a0bbc53c75",
      "name": "Obtener ID de Drive Google",
      "type": "n8n-nodes-base.set",
      "position": [
        -288,
        400
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "a1750d20-2f6e-4826-80b8-654d0985120d",
              "name": "final_google_drive_url",
              "type": "string",
              "value": "={{ $json['Media URL'].match(/https:\\/\\/drive\\.google\\.com\\/file\\/d\\/([A-Za-z0-9_-]+)/i)[1]  }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "2a36e1fd-0949-44c6-984e-c545cf0454d8",
      "name": "URL del VIDEO para Publicar",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -304,
        192
      ],
      "parameters": {
        "options": {},
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": "gid=0",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1TgAOn_dRUwEQFlWtNXFxXj72SVqPuMIMZ85dwsjcuG0/edit#gid=0",
          "cachedResultName": "Sheet1"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "1TgAOn_dRUwEQFlWtNXFxXj72SVqPuMIMZ85dwsjcuG0",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1TgAOn_dRUwEQFlWtNXFxXj72SVqPuMIMZ85dwsjcuG0/edit?usp=drivesdk",
          "cachedResultName": "Handsome warden TikTok"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "bAnK8T185A3Wr7Kj",
          "name": "Google Sheets account"
        }
      },
      "typeVersion": 4.5
    },
    {
      "id": "b58b9863-09df-4cce-a6c9-ab94c971b408",
      "name": "Subir Video a BLOTATO",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "position": [
        -432,
        608
      ],
      "parameters": {
        "mediaUrl": "=https://drive.google.com/uc?export=download&id={{ $('Get Google Drive ID').item.json.final_google_drive_url }}",
        "resource": "media"
      },
      "credentials": {
        "blotatoApi": {
          "id": "6sPTZyXKAaTQFB4O",
          "name": "Blotato API Account"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "fda25ce7-dcba-413e-bc46-894a09924bf0",
      "name": "Tiktok",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "position": [
        -272,
        608
      ],
      "parameters": {
        "options": {},
        "platform": "tiktok",
        "accountId": {
          "__rl": true,
          "mode": "list",
          "value": "13117",
          "cachedResultUrl": "https://backend.blotato.com/v2/accounts/13117",
          "cachedResultName": "handsomewarden"
        },
        "postContentText": "={{ $('URL VIDEO to Post').item.json.Caption }}",
        "postContentMediaUrls": "={{ $json.url }}"
      },
      "credentials": {
        "blotatoApi": {
          "id": "6sPTZyXKAaTQFB4O",
          "name": "Blotato API Account"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "ef03626b-2726-424b-9324-7dc308a14c1a",
      "name": "Actualizar Estado a \"DONE\"",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -112,
        608
      ],
      "parameters": {
        "columns": {
          "value": {
            "ID": "={{ $('URL VIDEO to Post').item.json.ID }}",
            "Status": "posted"
          },
          "schema": [
            {
              "id": "ID",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "ID",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Title",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Title",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Media URL",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Media URL",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Caption",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": "Caption",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Status",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "Status",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "row_number",
              "type": "number",
              "display": true,
              "removed": true,
              "readOnly": true,
              "required": false,
              "displayName": "row_number",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [
            "ID"
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "update",
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": "gid=0",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1TgAOn_dRUwEQFlWtNXFxXj72SVqPuMIMZ85dwsjcuG0/edit#gid=0",
          "cachedResultName": "Sheet1"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "1TgAOn_dRUwEQFlWtNXFxXj72SVqPuMIMZ85dwsjcuG0",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1TgAOn_dRUwEQFlWtNXFxXj72SVqPuMIMZ85dwsjcuG0/edit?usp=drivesdk",
          "cachedResultName": "Handsome warden TikTok"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "bAnK8T185A3Wr7Kj",
          "name": "Google Sheets account"
        }
      },
      "typeVersion": 4.5
    },
    {
      "id": "48004fda-d785-4891-a99b-42e1bfc75f20",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        -144,
        192
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "bc74b0c2-aa46-4bcd-91f3-1eb6b0720167",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.Status }}",
              "rightValue": "pending"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "8abafc8d-b429-485b-840f-a4a4cc25cf28",
      "name": "Limitar",
      "type": "n8n-nodes-base.limit",
      "position": [
        -432,
        400
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "f0905405-fb5d-4a4b-b67e-76a2a6980962",
      "name": "Disparador programado",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -464,
        192
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "hours"
            }
          ]
        }
      },
      "executeOnce": false,
      "retryOnFail": false,
      "typeVersion": 1.2,
      "alwaysOutputData": false
    },
    {
      "id": "d48267e8-d01e-4035-99ed-4f646afe8784",
      "name": "Compartir archivo",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -160,
        400
      ],
      "parameters": {
        "fileId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $json.final_google_drive_url }}"
        },
        "options": {},
        "operation": "share",
        "permissionsUi": {
          "permissionsValues": {
            "role": "reader",
            "type": "anyone"
          }
        }
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "1Bnhm02w1dxE4FO6",
          "name": "Farooq Google Drive account"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "362862ae-f47f-465a-a771-ae8c408cae94",
      "name": "📋 RECUPERACIÓN Y FILTRADO DE DATOS",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -976,
        160
      ],
      "parameters": {
        "width": 464,
        "height": 736,
        "content": "**Data Retrieval & Filtering Section**\n\nThis section fetches video data from Google Sheets and filters for pending posts only.\n\n• Schedule Trigger: Runs every hour\n• Google Sheets: Retrieves video data\n• If Node: Filters for 'pending' status\n• Limit: Processes 1 video at a time to avoid rate limits\n\n**⚠️ IMPORTANT REQUIREMENTS**\n\n• **Self-hosted n8n only** (community nodes required)\n• Google Sheets with columns: ID, Title, Media URL, Caption, Status\n• Blotato API account for TikTok posting\n• Google Drive & Sheets OAuth2 credentials\n• Videos must be stored in Google Drive\n• Status must be set to 'pending' for processing\n\n**Video Processing Section**\n\nThis section handles video file preparation for posting.\n\n• Get Google Drive ID: Extracts file ID from URL\n• Share File: Makes Google Drive file publicly accessible\n• Upload to Blotato: Transfers video to Blotato platform\n\n**TikTok Posting & Tracking Section**\n\nThis section handles the actual posting and status updates.\n\n• TikTok Node: Posts video with caption to TikTok\n• Update Status: Marks post as 'posted' in Google Sheets\n\n**Note:** Ensure your Blotato API credentials are properly configured."
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "d94c0d1f-9d93-4e80-a59a-514f08033055",
  "connections": {
    "48004fda-d785-4891-a99b-42e1bfc75f20": {
      "main": [
        [
          {
            "node": "Limit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Limit": {
      "main": [
        [
          {
            "node": "803334ae-8858-402a-a572-d8a0bbc53c75",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "fda25ce7-dcba-413e-bc46-894a09924bf0": {
      "main": [
        [
          {
            "node": "ef03626b-2726-424b-9324-7dc308a14c1a",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "d48267e8-d01e-4035-99ed-4f646afe8784": {
      "main": [
        [
          {
            "node": "b58b9863-09df-4cce-a6c9-ab94c971b408",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "2a36e1fd-0949-44c6-984e-c545cf0454d8",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "2a36e1fd-0949-44c6-984e-c545cf0454d8": {
      "main": [
        [
          {
            "node": "48004fda-d785-4891-a99b-42e1bfc75f20",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "803334ae-8858-402a-a572-d8a0bbc53c75": {
      "main": [
        [
          {
            "node": "d48267e8-d01e-4035-99ed-4f646afe8784",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "b58b9863-09df-4cce-a6c9-ab94c971b408": {
      "main": [
        [
          {
            "node": "fda25ce7-dcba-413e-bc46-894a09924bf0",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Preguntas frecuentes

¿Cómo usar este flujo de trabajo?

Copie el código de configuración JSON de arriba, cree un nuevo flujo de trabajo en su instancia de n8n y seleccione "Importar desde JSON", pegue la configuración y luego modifique la configuración de credenciales según sea necesario.

¿En qué escenarios es adecuado este flujo de trabajo?

Intermedio - Redes sociales, IA Multimodal

¿Es de pago?

Este flujo de trabajo es completamente gratuito, puede importarlo y usarlo directamente. Sin embargo, tenga en cuenta que los servicios de terceros utilizados en el flujo de trabajo (como la API de OpenAI) pueden requerir un pago por su cuenta.

Información del flujo de trabajo
Nivel de dificultad
Intermedio
Número de nodos10
Categoría2
Tipos de nodos8
Descripción de la dificultad

Adecuado para usuarios con experiencia intermedia, flujos de trabajo de complejidad media con 6-15 nodos

Enlaces externos
Ver en n8n.io

Compartir este flujo de trabajo

Categorías

Categorías: 34