AutomationFlowsEmail & Gmail › Daily RSS & Task Digest to Gmail

Daily RSS & Task Digest to Gmail

Original n8n title: My Workflow 4

My workflow 4. Uses rssFeedRead, gmail, todoist, scheduleTrigger. Scheduled trigger; 7 nodes.

Cron / scheduled trigger★★★★☆ complexity7 nodesRSS Feed ReadGmailTodoist
Email & Gmail Trigger: Cron / scheduled Nodes: 7 Complexity: ★★★★☆ Added:

This workflow follows the Gmail → RSS Feed Read recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "updatedAt": "2025-07-25T18:11:36.713Z",
  "createdAt": "2025-07-25T13:41:13.768Z",
  "id": "Trzbc5gKMrYaeToc",
  "name": "My workflow 4",
  "active": false,
  "isArchived": false,
  "nodes": [
    {
      "parameters": {
        "path": "pov",
        "formTitle": "Informe o tema do v\u00eddeo",
        "formDescription": "=Exemplo : sucesso no trabalho",
        "formFields": {
          "values": [
            {
              "fieldLabel": "Tema",
              "placeholder": "Digite o Tema",
              "requiredField": true
            }
          ]
        },
        "options": {}
      },
      "id": "ec01b030-0e8b-4316-9cd9-8bddbcc85c6b",
      "name": "n8n Form Trigger",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        384,
        112
      ],
      "typeVersion": 2.1
    },
    {
      "parameters": {
        "content": "## Gera Frase",
        "height": 340,
        "width": 1240,
        "color": 4
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        336,
        -16
      ],
      "id": "ee72cb78-9e1f-41cb-b0f3-413404a168fa",
      "name": "Sticky Note"
    },
    {
      "parameters": {
        "content": "## Cria Imagem",
        "height": 360,
        "width": 360,
        "color": 5
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        336,
        368
      ],
      "id": "1becf871-72aa-48ad-b177-dd057e5eee3b",
      "name": "Sticky Note1"
    },
    {
      "parameters": {
        "content": "## Gera v\u00eddeo",
        "height": 360,
        "width": 840,
        "color": 6
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        736,
        368
      ],
      "id": "a6b004f3-ef6e-4462-afa5-915d2b54367e",
      "name": "Sticky Note2"
    },
    {
      "parameters": {
        "mode": "raw",
        "jsonOutput": "={\n  \"udid\": \"{{ Date.now() }}\",\n  \"username\" : \"mosqueiro99\",\n  \"apiKey\":\"{{ $json['upload-post'] }}\",\n  \"luma\":\"{{ $json.luma }}\",  \n  \"huggingface\":\"{{ $json.huggingface }}\",\n  \"voz\":\"{{ $json.voz }}\",\n  \"uploadTikTok\" : {{ $json.Tiktok }},\n  \"uploadInstagram\" : {{ $json.Instagram }},\n  \"uploadFacebook\" : {{ $json.Facebook }},\n  \"uploadLinkedin\" : {{ $json.Linkedin }},\n  \"uploadYoutube\" : {{ $json.Youtube }},\n  \"uploadX\" : {{ $json.X }}\n}",
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        1024,
        80
      ],
      "id": "8ee80ae7-614e-4fb9-9ba1-f9571112dd03",
      "name": "Vari\u00e1veis"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.lumalabs.ai/dream-machine/v1/generations",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "accept",
              "value": "application/json"
            },
            {
              "name": "authorization",
              "value": "=Bearer {{ $('Configura\u00e7\u00f5es').item.json.luma }}"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"prompt\": \"{{ $('Imagem no FLUX').item.json.message.content.prompt }}\",\n  \"model\": \"ray-flash-2\",\n  \"keyframes\": {\n    \"frame0\": {\n      \"type\": \"image\",\n      \"resolution\": \"540p\",\n      \"aspect_ratio\": \"9:16\",\n      \"duration\": \"5s\",\n      \"loop\": true,\n      \"url\": \"{{ $json.urlVisualizacao }}\"\n    }\n  }\n}",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        784,
        448
      ],
      "id": "16ba5266-0394-4b79-b818-06ec73807e9b",
      "name": "Gera Video IA"
    },
    {
      "parameters": {
        "url": "=https://api.lumalabs.ai/dream-machine/v1/generations/{{ $json.id }}",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "accept",
              "value": "application/json"
            },
            {
              "name": "authorization",
              "value": "<redacted-credential>"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        1008,
        448
      ],
      "id": "cebfd780-b1f3-4e16-a974-c0db90835e54",
      "name": "Verifica se Gerou Video"
    },
    {
      "parameters": {
        "amount": 20
      },
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        1168,
        576
      ],
      "id": "902fe470-1fa6-40a6-9007-030acae9ec3d",
      "name": "Aguarda"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "63832bf6-57ab-473c-bcdd-a2fcf2c147ce",
              "leftValue": "={{ $json.state }}",
              "rightValue": "completed",
              "operator": {
                "type": "string",
                "operation": "equals",
                "name": "filter.operator.equals"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        1408,
        576
      ],
      "id": "aff9c2b5-95a9-492c-882a-1bbaa8454b36",
      "name": "Verifica Sucesso"
    },
    {
      "parameters": {
        "name": "={{ $('Vari\u00e1veis').item.json.udid }}-imagem.jpeg",
        "driveId": {
          "__rl": true,
          "value": "My Drive",
          "mode": "list",
          "cachedResultName": "My Drive",
          "cachedResultUrl": "https://drive.google.com/drive/my-drive"
        },
        "folderId": {
          "__rl": true,
          "value": "1sbhsLq-sMemT1fROrB3K4eMzAlVh2YfJ",
          "mode": "list",
          "cachedResultName": "videos-ia",
          "cachedResultUrl": "https://drive.google.com/drive/folders/1sbhsLq-sMemT1fROrB3K4eMzAlVh2YfJ"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        544,
        384
      ],
      "id": "87597ffb-34b0-4154-82e4-0798bf7eb916",
      "name": "Salva Imagem"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "634a7a85-0530-4283-98c7-a47fe4be78e0",
              "leftValue": "={{ $json.state }}",
              "rightValue": "=queued",
              "operator": {
                "type": "string",
                "operation": "notEquals"
              }
            },
            {
              "id": "35e1f12d-030c-48ef-8e66-033b8724873e",
              "leftValue": "={{ $json.state }}",
              "rightValue": "dreaming",
              "operator": {
                "type": "string",
                "operation": "notEquals"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        1216,
        416
      ],
      "id": "9ca4040d-6b4e-4c37-a484-01a3f289b799",
      "name": "Verifica se Gerou"
    },
    {
      "parameters": {
        "name": "={{ $('Vari\u00e1veis').first().json.udid }}-video-completo.mp4",
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "folderId": {
          "__rl": true,
          "value": "1sbhsLq-sMemT1fROrB3K4eMzAlVh2YfJ",
          "mode": "list",
          "cachedResultName": "videos-ia",
          "cachedResultUrl": "https://drive.google.com/drive/folders/1sbhsLq-sMemT1fROrB3K4eMzAlVh2YfJ"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        1120,
        1472
      ],
      "id": "eb555a61-39c6-4356-a2b5-a35f3bddd339",
      "name": "Salva V\u00eddeo"
    },
    {
      "parameters": {
        "content": "## Baixa Video e Gera Legenda",
        "height": 280,
        "width": 720,
        "color": 3
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        864,
        768
      ],
      "id": "62a9982d-cd43-42e7-9c7f-c402548f992f",
      "name": "Sticky Note3"
    },
    {
      "parameters": {
        "url": "={{ $('Verifica Sucesso').item.json.assets.video }}",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        960,
        848
      ],
      "id": "1f58ceab-cc2d-431a-96a9-de025fed0e35",
      "name": "Baixa V\u00eddeo"
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "={{ $('n8n Form Trigger').item.json['Tema'] }}",
        "options": {
          "systemMessage": "\ud83d\udccc Gerador de Conte\u00fado Duplo \u2013 Frase Motivacional e Prompt de Imagem\n\n\ud83d\udccc Tarefa:\nVoc\u00ea \u00e9 uma IA avan\u00e7ada que recebe um \u00fanico tema (palavra-chave) e retorna:\n1. Uma frase motivacional e inspiradora relacionada ao tema.\n2. Um prompt de imagem que represente visualmente essa frase, em um cen\u00e1rio sempre inspirador.\n\n\ud83d\udccc Formato da Sa\u00edda (Output):\n- O resultado deve ser entregue em um \u00fanico JSON com dois campos: \"frase\" e \"prompt\".\n- \"frase\" conter\u00e1 a \u00fanica frase motivacional.\n- \"prompt\" conter\u00e1 a descri\u00e7\u00e3o de imagem para o fundo.\n\nUse um estilo formal e profissional. A frase deve ser clara, curta e inspiradora, pois ser\u00e1 inserida como legenda de v\u00eddeo para stories. O prompt deve estar diretamente ligado ao tema da frase, sendo adequado a modelos de IA de gera\u00e7\u00e3o de imagem (MidJourney, Pika Labs etc.) e descrevendo uma cena que reflita o tema de forma objetiva e envolvente.\n\nEstrutura de sa\u00edda:\n{\n  \"frase\": \"Sua frase motivacional gerada aqui...\",\n  \"prompt\": \"Descri\u00e7\u00e3o de imagem aqui...\"\n}\n\n\ud83d\udccc Exemplo de Entrada do Usu\u00e1rio:\nAqui est\u00e1 o tema: Coragem\n\n\ud83d\udccc Exemplo de Sa\u00edda:\n{\n  \"frase\": \"A coragem floresce quando decidimos avan\u00e7ar, mesmo que o caminho esteja imerso em incertezas.\",\n  \"prompt\": \"Uma paisagem montanhosa ao amanhecer, em tons de laranja e vermelho, representando for\u00e7a e determina\u00e7\u00e3o; um guerreiro solit\u00e1rio no topo de um penhasco, demonstrando supera\u00e7\u00e3o e coragem.\"\n}\n\n- Mantenha a frase curta para facilitar a convers\u00e3o em \u00e1udio.\n- Utilize v\u00edrgulas para garantir pausas adequadas durante a narra\u00e7\u00e3o.\n- Descreva a cena de forma inspiradora, mas objetiva, no prompt.\n"
        }
      },
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 1.8,
      "position": [
        1216,
        16
      ],
      "id": "ca691e6f-58d5-4041-bc0b-4c2ce9705939",
      "name": "AI Agent"
    },
    {
      "parameters": {
        "content": "## Gera Audio",
        "height": 280,
        "width": 440
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        336,
        768
      ],
      "id": "f0c09c5f-e163-4f19-ae8f-32173b0d5eec",
      "name": "Sticky Note4"
    },
    {
      "parameters": {},
      "type": "n8n-nodes-1clickai-fishaudio.fishAudioTts",
      "typeVersion": 1,
      "position": [
        368,
        848
      ],
      "id": "9b0199da-5f5f-473f-b8f1-f4eb55846873",
      "name": "Fish Audio TTS",
      "credentials": {}
    },
    {
      "parameters": {
        "command": "=magick convert \\\n  -size 1080x600 \\\n  -background none \\\n  -fill yellow \\\n  -font \"/usr/share/fonts/truetype/NotoSerif_Condensed-BlackItalic.ttf\" \\\n  -stroke black \\\n  -gravity center \\\n  -pointsize 70 \\\n  caption:'{{ $('Imagem no FLUX').item.json.output.frase }}' \\\n  {{ $('Vari\u00e1veis').item.json.udid }}.png\n"
      },
      "type": "n8n-nodes-base.executeCommand",
      "typeVersion": 1,
      "position": [
        1440,
        848
      ],
      "id": "78029b5f-69f5-4964-b7bd-e62d48239e96",
      "name": "Gera Legenda"
    },
    {
      "parameters": {
        "command": "=ffmpeg \\\n  -stream_loop -1 -i \"./{{ $('Salva Video no Disco').first().json.fileName }}\" \\\n  -i \"./{{ $('Baixa V\u00eddeo').first().json.fileName }}\" \\\n  -i \"./{{ $('Vari\u00e1veis').first().json.udid }}.png\" \\\n  -i \"./{{ $('Salva Musica Fundo').item.json.songId }}-musica.mp3\" \\\n  -filter_complex \"\n    [0:v]scale=1080:1920:force_original_aspect_ratio=increase,crop=1080:1920,setsar=1[vid];\n    color=black@0.3:size=1080x1920[bg];\n    [vid][bg]overlay[bgvid];\n    [bgvid][2:v]overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2[outv];\n    [1:a]volume=1.0[a1];\n    [3:a]volume=0.4[a2];\n    [a1][a2]amix=inputs=2:duration=first[aout]\n  \" \\\n  -map \"[outv]\" \\\n  -map \"[aout]\" \\\n  -t {{ $json.stdout }} \\\n  -c:v libx264 \\\n  -c:a aac \\\n  \"./{{ $('Vari\u00e1veis').first().json.udid }}-completo.mp4\" -y\n"
      },
      "type": "n8n-nodes-base.executeCommand",
      "typeVersion": 1,
      "position": [
        368,
        1664
      ],
      "id": "5da5662a-b428-4de2-8955-f2c788a3e5e4",
      "name": "Gera MP4 Completo"
    },
    {
      "parameters": {
        "jsCode": "// Obter todos os itens de entrada\nconst items = $input.all();\n\n// Verificar se h\u00e1 itens dispon\u00edveis\nif (items.length === 0) {\n  throw new Error(\"Nenhum item dispon\u00edvel para processar.\");\n}\n\n// Selecionar um \u00edndice aleat\u00f3rio\nconst randomIndex = Math.floor(Math.random() * items.length);\n\n// Obter o item aleat\u00f3rio\nconst selectedItem = items[randomIndex];\n\n// Supondo que a URL esteja em selectedItem.json.url\n// $input.first().json.Musicas\nconst url = selectedItem.json.Musicas;\n\n// Definir a express\u00e3o regular para extrair o songId\nconst regex = /suno\\.com\\/song\\/([a-f0-9\\-]+)/;\n\n// Executar a correspond\u00eancia da regex na URL\nconst match = url.match(regex);\n\nif (match && match[1]) {\n  const songId = match[1];\n\n  // Construir a URL de download com base no songId\n  const downloadUrl = `https://cdn1.suno.ai/${songId}.mp3`; // Ajuste conforme necess\u00e1rio\n\n  // Retornar o resultado como um novo item\n  return {\n    json: {\n      songId: songId,\n      downloadUrl: downloadUrl\n    }\n  };\n} else {\n  throw new Error(\"URL inv\u00e1lida ou ID da m\u00fasica n\u00e3o encontrado.\");\n}\n"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        640,
        1184
      ],
      "id": "4156abc8-3d38-4252-aad1-7155c919e6f7",
      "name": "Seleciona uma m\u00fasica"
    },
    {
      "parameters": {
        "operation": "write",
        "fileName": "={{ $json.songId }}-musica.mp3",
        "options": {}
      },
      "type": "n8n-nodes-base.readWriteFile",
      "typeVersion": 1,
      "position": [
        1184,
        1184
      ],
      "id": "40bddb6b-73e9-47e0-8edc-3bbb6a70b064",
      "name": "Salva Musica Fundo"
    },
    {
      "parameters": {
        "command": "=ffprobe -i \"./{{ $('Baixa V\u00eddeo').first().json.fileName }}\" -show_entries format=duration -v quiet -of csv=\"p=0\"\n"
      },
      "type": "n8n-nodes-base.executeCommand",
      "typeVersion": 1,
      "position": [
        1440,
        1184
      ],
      "id": "55bbf87d-da4e-4b73-9abf-2a1362ced962",
      "name": "Tempo do audio"
    },
    {
      "parameters": {
        "content": "## Baixa M\u00fasica de Fundo",
        "height": 320,
        "width": 1240,
        "color": 4
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        336,
        1088
      ],
      "id": "6482759e-b5f0-4c5e-a657-50ac047aaa55",
      "name": "Sticky Note5"
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "={{ $('Extrai ID').item.json.idPlanilha }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "gid=0",
          "mode": "list",
          "cachedResultName": "Musicas",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1FFIzZpU-SX4lBBhcqT4IQFgQ26F4ue5sdSVzm0zK1dI/edit#gid=0"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.5,
      "position": [
        368,
        1184
      ],
      "id": "0ebbd942-599c-49f2-9a00-223831976097",
      "name": "Lista de M\u00fasicas"
    },
    {
      "parameters": {
        "content": "## Posta no TikTok/Instagram/Youtube/Linkedin/Facebook/X",
        "height": 1260,
        "width": 1240,
        "color": 5
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        336,
        1456
      ],
      "id": "a4686c17-0a5f-4cfa-ae32-0de52024c85f",
      "name": "Sticky Note6"
    },
    {
      "parameters": {
        "fileSelector": "={{ $('Vari\u00e1veis').first().json.udid }}-completo.mp4",
        "options": {}
      },
      "type": "n8n-nodes-base.readWriteFile",
      "typeVersion": 1,
      "position": [
        624,
        1664
      ],
      "id": "faa645b2-81f5-4188-bd04-d5c1301c7fee",
      "name": "Video Completo"
    },
    {
      "parameters": {
        "jsCode": "// Recupera a URL original (por exemplo, a partir do input anterior)\nconst urlOriginal = $input.first().json.webContentLink;\n\n// Faz o replace de 'export=download' por 'export=view'\nconst urlVisualizacao = urlOriginal.replace('export=download', 'export=view');\n\n// Retorna a nova URL modificada\nreturn { urlVisualizacao };\n"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        560,
        592
      ],
      "id": "e0b7fafa-9afd-443e-9c7e-535124cafebb",
      "name": "Converte"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-schnell",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "=Bearer  {{ $('Configura\u00e7\u00f5es').item.json.huggingface }}"
            }
          ]
        },
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "inputs",
              "value": "=Prompt:  {{ $json.output.prompt }}"
            }
          ]
        },
        "options": {}
      },
      "id": "a8b4037f-e7f6-43c1-b233-1b443173a438",
      "name": "Imagem no FLUX",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        368,
        448
      ],
      "notesInFlow": true,
      "typeVersion": 4.2,
      "notes": " "
    },
    {
      "parameters": {
        "jsCode": "return $input.all().map(item => {\n  const newItem = { ...item };\n\n  // Remove os delimitadores e limpa a string\n  const cleanedString = item.json.output\n    .replace(/```json\\s*/, '') // remove \"```json\" e espa\u00e7os/novas linhas ap\u00f3s\n    .replace(/\\s*```$/, '')    // remove \"```\" do final com espa\u00e7os/novas linhas antes\n    .trim();                   // remove espa\u00e7os em excesso nas bordas\n\n  // Agora fazemos o parse do JSON limpo\n  newItem.json.output = JSON.parse(cleanedString);\n\n  return newItem;\n});\n"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        1472,
        224
      ],
      "id": "4378c45f-cb13-4e46-9fe9-eaa8241f7589",
      "name": "Trata JSON"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.upload-post.com/api/upload",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "=Apikey {{ $('Vari\u00e1veis').first().json.apiKey }}"
            }
          ]
        },
        "sendBody": true,
        "contentType": "multipart-form-data",
        "bodyParameters": {
          "parameters": [
            {
              "parameterType": "=formData",
              "name": "user",
              "value": "={{ $('Vari\u00e1veis').first().json.username }}"
            },
            {
              "name": "platform[]",
              "value": "linkedin"
            },
            {
              "parameterType": "formBinaryData",
              "name": "video",
              "inputDataFieldName": "data"
            },
            {
              "name": "title",
              "value": "={{ $('Salva Video no Disco').first().json.text }}"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        1264,
        1984
      ],
      "id": "2decc4d4-2cfb-4bf8-a103-8c687e19a07a",
      "name": "Posta no Linkedin"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.upload-post.com/api/upload",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "=Apikey {{ $('Vari\u00e1veis').first().json.apiKey }}"
            }
          ]
        },
        "sendBody": true,
        "contentType": "multipart-form-data",
        "bodyParameters": {
          "parameters": [
            {
              "name": "user",
              "value": "={{ $('Vari\u00e1veis').first().json.username }}"
            },
            {
              "name": "platform[]",
              "value": "instagram"
            },
            {
              "parameterType": "formBinaryData",
              "name": "video",
              "inputDataFieldName": "data"
            },
            {
              "name": "title",
              "value": "={{ $('Salva Video no Disco').first().json.text }}"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        1264,
        1808
      ],
      "id": "cdfceb3e-f51d-4ecc-bd1f-71a065af71de",
      "name": "Posta no Instagram"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.upload-post.com/api/upload",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "=Apikey {{ $('Vari\u00e1veis').first().json.apiKey }}"
            }
          ]
        },
        "sendBody": true,
        "contentType": "multipart-form-data",
        "bodyParameters": {
          "parameters": [
            {
              "name": "user",
              "value": "={{ $('Vari\u00e1veis').first().json.username }}"
            },
            {
              "name": "platform[]",
              "value": "tiktok"
            },
            {
              "parameterType": "formBinaryData",
              "name": "video",
              "inputDataFieldName": "data"
            },
            {
              "name": "title",
              "value": "={{ $('Salva Video no Disco').first().json.text }}"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        1264,
        1632
      ],
      "id": "b3bd565e-0270-4e41-a311-8bf0543eae97",
      "name": "Posta no TikTok"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.upload-post.com/api/upload",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "=Apikey {{ $('Vari\u00e1veis').first().json.apiKey }}"
            }
          ]
        },
        "sendBody": true,
        "contentType": "multipart-form-data",
        "bodyParameters": {
          "parameters": [
            {
              "name": "user",
              "value": "={{ $('Vari\u00e1veis').first().json.username }}"
            },
            {
              "name": "platform[]",
              "value": "youtube"
            },
            {
              "parameterType": "formBinaryData",
              "name": "video",
              "inputDataFieldName": "data"
            },
            {
              "name": "title",
              "value": "={{ $('Salva Video no Disco').first().json.text }}"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        1264,
        2176
      ],
      "id": "25efc676-488e-499e-8cd7-8fcbf199ce9b",
      "name": "Posta no Youtube"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.upload-post.com/api/upload",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "=Apikey {{ $('Vari\u00e1veis').first().json.apiKey }}"
            }
          ]
        },
        "sendBody": true,
        "contentType": "multipart-form-data",
        "bodyParameters": {
          "parameters": [
            {
              "name": "user",
              "value": "={{ $('Vari\u00e1veis').first().json.username }}"
            },
            {
              "name": "platform[]",
              "value": "facebook"
            },
            {
              "parameterType": "formBinaryData",
              "name": "video",
              "inputDataFieldName": "data"
            },
            {
              "name": "title",
              "value": "={{ $('Salva Video no Disco').first().json.text }}"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        1264,
        2352
      ],
      "id": "f9130724-5ec6-4faf-866e-7f8333a621bf",
      "name": "Posta no Facebook"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.upload-post.com/api/upload",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "=Apikey {{ $('Vari\u00e1veis').first().json.apiKey }}"
            }
          ]
        },
        "sendBody": true,
        "contentType": "multipart-form-data",
        "bodyParameters": {
          "parameters": [
            {
              "name": "user",
              "value": "={{ $('Vari\u00e1veis').first().json.username }}"
            },
            {
              "name": "platform[]",
              "value": "twitter"
            },
            {
              "parameterType": "formBinaryData",
              "name": "video",
              "inputDataFieldName": "data"
            },
            {
              "name": "title",
              "value": "={{ $('Salva Video no Disco').first().json.text }}"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        1264,
        2528
      ],
      "id": "1af77d3b-e862-4b88-b4ff-f34a42f6b1d9",
      "name": "Posta no X"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "82480bb9-062a-47fe-b8ff-61e0077aa6b7",
              "leftValue": "={{ $('Vari\u00e1veis').first().json.uploadTikTok }}",
              "rightValue": "",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        944,
        1648
      ],
      "id": "5d81153b-c9d4-4b13-8735-c2898893d046",
      "name": "TikTok"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "f004fcda-dd5c-49e9-882f-7d873aba04ac",
              "leftValue": "={{ $('Vari\u00e1veis').first().json.uploadInstagram }}",
              "rightValue": "",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        944,
        1824
      ],
      "id": "3e838e7a-264f-4b06-a354-ffd6f4664d1b",
      "name": "Instagram"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "f004fcda-dd5c-49e9-882f-7d873aba04ac",
              "leftValue": "={{ $('Vari\u00e1veis').first().json.uploadLinkedin }}",
              "rightValue": "",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        944,
        2016
      ],
      "id": "96cfb64c-8eb1-4a33-a178-a630812c269a",
      "name": "Linkedin"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "f004fcda-dd5c-49e9-882f-7d873aba04ac",
              "leftValue": "={{ $('Vari\u00e1veis').first().json.uploadYoutube }}",
              "rightValue": "",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        944,
        2192
      ],
      "id": "daceffba-8b0f-47e8-8031-bb83d063424e",
      "name": "Youtube"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "f004fcda-dd5c-49e9-882f-7d873aba04ac",
              "leftValue": "={{ $('Vari\u00e1veis').first().json.uploadFacebook }}",
              "rightValue": "",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        944,
        2368
      ],
      "id": "b2157a8e-2cc1-470c-b572-de2a4cbb0d6d",
      "name": "Facebook"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "f004fcda-dd5c-49e9-882f-7d873aba04ac",
              "leftValue": "={{ $('Vari\u00e1veis').first().json.uploadX }}",
              "rightValue": "",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        944,
        2544
      ],
      "id": "a1636b00-1ea8-40f5-80bd-bab014b0e3ac",
      "name": "X"
    },
    {
      "parameters": {
        "operation": "write",
        "fileName": "={{ $('Vari\u00e1veis').item.json.udid }}.mp4",
        "options": {}
      },
      "type": "n8n-nodes-base.readWriteFile",
      "typeVersion": 1,
      "position": [
        1200,
        848
      ],
      "id": "aa998982-d528-4b29-856a-3fa5ad5f69f4",
      "name": "Salva Video no Disco"
    },
    {
      "parameters": {
        "operation": "write",
        "fileName": "={{ $('Vari\u00e1veis').item.json.udid }}.mp3",
        "options": {}
      },
      "type": "n8n-nodes-base.readWriteFile",
      "typeVersion": 1,
      "position": [
        624,
        848
      ],
      "id": "4355a277-8fbe-4c0b-9b70-1e00c403c15b",
      "name": "Salva Audio no Disco"
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "={{ $json.idPlanilha }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": 1975166524,
          "mode": "list",
          "cachedResultName": "Configura\u00e7\u00f5es",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1FFIzZpU-SX4lBBhcqT4IQFgQ26F4ue5sdSVzm0zK1dI/edit#gid=1975166524"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.5,
      "position": [
        864,
        112
      ],
      "id": "528199d7-f4e8-4591-a944-be180756f3d5",
      "name": "Configura\u00e7\u00f5es"
    },
    {
      "parameters": {
        "url": "={{ $json.downloadUrl }}",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        928,
        1184
      ],
      "id": "da8df54c-2101-4ec4-9741-d86834f52794",
      "name": "Baixa MP3 Musica"
    },
    {
      "parameters": {
        "mode": "raw",
        "jsonOutput": "{\n  \"planilha\": \"https://docs.google.com/spreadsheets/d/1FFIzZpU-SX4lBBhcqT4IQFgQ26F4ue5sdSVzm0zK1dI/edit?gid=1975166524#gid=1975166524\"\n}\n",
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        544,
        112
      ],
      "id": "1c0bf5a3-7a6d-4f05-b4e6-83fd56b2fada",
      "name": "URL Planilha"
    },
    {
      "parameters": {
        "jsCode": "// Obt\u00e9m a URL completa da planilha\nconst urlPlanilha = $json.planilha;\n\n// Express\u00e3o regular para extrair o ID da planilha Google Sheets\nconst regex = /\\/spreadsheets\\/d\\/([a-zA-Z0-9-_]+)/;\nconst match = urlPlanilha.match(regex);\n\nif(match && match[1]) {\n  // Salva o ID encontrado como vari\u00e1vel no fluxo do n8n\n  return [{\n    json: {\n      idPlanilha: match[1]\n    }\n  }];\n} else {\n  throw new Error(\"N\u00e3o foi poss\u00edvel encontrar o ID da planilha na URL fornecida.\");\n}\n"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        704,
        112
      ],
      "id": "c5294722-2281-4db0-9373-4c533c9088ce",
      "name": "Extrai ID"
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "value": "gpt-4.1-nano",
          "mode": "list",
          "cachedResultName": "gpt-4.1-nano"
        },
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.2,
      "position": [
        1088,
        224
      ],
      "id": "e6a8ce1a-da5a-4be4-b2b3-7f563db13685",
      "name": "OpenAI Chat Model",
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "n8n Form Trigger": {
      "main": [
        [
          {
            "node": "URL Planilha",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Vari\u00e1veis": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gera Video IA": {
      "main": [
        [
          {
            "node": "Verifica se Gerou Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Verifica se Gerou Video": {
      "main": [
        [
          {
            "node": "Verifica se Gerou",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aguarda": {
      "main": [
        [
          {
            "node": "Verifica se Gerou Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Salva Imagem": {
      "main": [
        [
          {
            "node": "Converte",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Verifica se Gerou": {
      "main": [
        [
          {
            "node": "Verifica Sucesso",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Aguarda",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Baixa V\u00eddeo": {
      "main": [
        [
          {
            "node": "Salva Video no Disco",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Trata JSON",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gera Legenda": {
      "main": [
        [
          {
            "node": "Lista de M\u00fasicas",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gera MP4 Completo": {
      "main": [
        [
          {
            "node": "Video Completo",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Seleciona uma m\u00fasica": {
      "main": [
        [
          {
            "node": "Baixa MP3 Musica",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Salva Musica Fundo": {
      "main": [
        [
          {
            "node": "Tempo do audio",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Tempo do audio": {
      "main": [
        [
          {
            "node": "Gera MP4 Completo",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Lista de M\u00fasicas": {
      "main": [
        [
          {
            "node": "Seleciona uma m\u00fasica",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Video Completo": {
      "main": [
        [
          {
            "node": "Salva V\u00eddeo",
            "type": "main",
            "index": 0
          },
          {
            "node": "TikTok",
            "type": "main",
            "index": 0
          },
          {
            "node": "Instagram",
            "type": "main",
            "index": 0
          },
          {
            "node": "Linkedin",
            "type": "main",
            "index": 0
          },
          {
            "node": "Youtube",
            "type": "main",
            "index": 0
          },
          {
            "node": "Facebook",
            "type": "main",
            "index": 0
          },
          {
            "node": "X",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Converte": {
      "main": [
        [
          {
            "node": "Gera Video IA",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Imagem no FLUX": {
      "main": [
        [
          {
            "node": "Salva Imagem",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Trata JSON": {
      "main": [
        [
          {
            "node": "Imagem no FLUX",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "TikTok": {
      "main": [
        [
          {
            "node": "Posta no TikTok",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Instagram": {
      "main": [
        [
          {
            "node": "Posta no Instagram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Linkedin": {
      "main": [
        [
          {
            "node": "Posta no Linkedin",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Youtube": {
      "main": [
        [
          {
            "node": "Posta no Youtube",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Facebook": {
      "main": [
        [
          {
            "node": "Posta no Facebook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "X": {
      "main": [
        [
          {
            "node": "Posta no X",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Salva Video no Disco": {
      "main": [
        [
          {
            "node": "Gera Legenda",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Salva Audio no Disco": {
      "main": [
        [
          {
            "node": "Baixa V\u00eddeo",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Configura\u00e7\u00f5es": {
      "main": [
        [
          {
            "node": "Vari\u00e1veis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Baixa MP3 Musica": {
      "main": [
        [
          {
            "node": "Salva Musica Fundo",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "URL Planilha": {
      "main": [
        [
          {
            "node": "Extrai ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extrai ID": {
      "main": [
        [
          {
            "node": "Configura\u00e7\u00f5es",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "staticData": null,
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "versionId": "78a7c609-a0af-4bda-b076-9d95d19fe0f1",
  "activeVersionId": null,
  "triggerCount": 0,
  "shared": [
    {
      "updatedAt": "2025-07-25T13:41:13.768Z",
      "createdAt": "2025-07-25T13:41:13.768Z",
      "role": "workflow:owner",
      "workflowId": "Trzbc5gKMrYaeToc",
      "projectId": "Fm4IyGowkpuhQseY"
    }
  ],
  "activeVersion": null,
  "tags": []
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

My workflow 4. Uses rssFeedRead, gmail, todoist, scheduleTrigger. Scheduled trigger; 7 nodes.

Source: https://github.com/Zie619/n8n-workflows — original creator credit. Request a take-down →

More Email & Gmail workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Email & Gmail

My workflow 4. Uses rssFeedRead, gmail, todoist, stopAndError. Scheduled trigger; 8 nodes.

RSS Feed Read, Gmail, Todoist +1
Email & Gmail

The workflow is triggered automatically every day at 12:00 PM using a Cron node.

RSS Feed Read, Google Sheets, Gmail +1
Email & Gmail

Trello Limit. Uses scheduleTrigger, rssFeedRead, sort, limit. Scheduled trigger; 15 nodes.

RSS Feed Read, Trello, Gmail
Email & Gmail

This workflow is designed for professionals and teams who need to monitor multiple RSS feeds, filter the latest content, and distribute actionable updates as a Trello comment. Ideal for content manage

RSS Feed Read, Trello, Gmail
Email & Gmail

Freelancers and agencies who track new Upwork leads via Vollna RSS and want clean logging to Google Sheets with instant Slack alerts.

Google Sheets, RSS Feed Read, Slack +1