AutomationFlowsAI & RAG › Automacao Conteudo Curiosidades

Automacao Conteudo Curiosidades

Automacao_Conteudo_Curiosidades. Uses openai, executeCommand. Manual trigger; 12 nodes.

Manual trigger★★★☆☆ complexityAI-powered12 nodesOpenAIExecute Command
AI & RAG Trigger: Manual Nodes: 12 Complexity: ★★★☆☆ AI nodes: yes Added:

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
{
  "name": "Automacao_Conteudo_Curiosidades",
  "nodes": [
    {
      "id": "1",
      "name": "Gerar Roteiro PT",
      "type": "n8n-nodes-base.openai",
      "typeVersion": 1,
      "position": [
        250,
        150
      ],
      "parameters": {
        "operation": "chatCompletion",
        "model": "gpt-4",
        "messages": [
          {
            "role": "system",
            "content": "Voc\u00ea \u00e9 um roteirista de v\u00eddeos de fatos curiosos, sempre cria roteiros \u00fanicos, evitando repetir fatos anteriores."
          },
          {
            "role": "user",
            "content": "Crie um roteiro de curiosidade em portugu\u00eas, cativante e f\u00e1cil de transformar em v\u00eddeo, com cerca de 150 palavras."
          }
        ]
      },
      "credentials": {
        "openAiApi": "<your credential>"
      }
    },
    {
      "id": "2",
      "name": "Gerar Roteiro EN",
      "type": "n8n-nodes-base.openai",
      "typeVersion": 1,
      "position": [
        250,
        450
      ],
      "parameters": {
        "operation": "chatCompletion",
        "model": "gpt-4",
        "messages": [
          {
            "role": "system",
            "content": "You are a scriptwriter for viral curiosity videos, always generating unique scripts, avoiding repetition of previous facts."
          },
          {
            "role": "user",
            "content": "Create a script in English for a curiosity/fact video, engaging and easy to turn into video, about 150 words."
          }
        ]
      },
      "credentials": {
        "openAiApi": "<your credential>"
      }
    },
    {
      "id": "3",
      "name": "Gerar \u00c1udio PT",
      "type": "n8n-nodes-base.executeCommand",
      "typeVersion": 1,
      "position": [
        500,
        150
      ],
      "parameters": {
        "command": "python C:/Users/Glais/CoquiTTS/venv/tts.py --voice x_pt --text \"{{$json[\"choices\"][0][\"message\"][\"content\"]}}\" --out E:/AutomacaoConteudo/audios/curiosidade_pt_{{$now}}.wav"
      }
    },
    {
      "id": "4",
      "name": "Gerar \u00c1udio EN",
      "type": "n8n-nodes-base.executeCommand",
      "typeVersion": 1,
      "position": [
        500,
        450
      ],
      "parameters": {
        "command": "python C:/Users/Glais/KOKORO/kokoro-tts.py --text \"{{$json[\"choices\"][0][\"message\"][\"content\"]}}\" --voice af_sarah --output E:/AutomacaoConteudo/audios/curiosity_en_{{$now}}.wav"
      }
    },
    {
      "id": "5",
      "name": "Gerar Imagens PT",
      "type": "n8n-nodes-base.executeCommand",
      "typeVersion": 1,
      "position": [
        750,
        150
      ],
      "parameters": {
        "command": "python E:/StableDiffusion/gerar_imagem.py --prompt \"{{$json[\"choices\"][0][\"message\"][\"content\"]}}\" --output E:/AutomacaoConteudo/imagens/curiosidade_pt_{{$now}}.png"
      }
    },
    {
      "id": "6",
      "name": "Gerar Imagens EN",
      "type": "n8n-nodes-base.executeCommand",
      "typeVersion": 1,
      "position": [
        750,
        450
      ],
      "parameters": {
        "command": "python E:/StableDiffusion/gerar_imagem.py --prompt \"{{$json[\"choices\"][0][\"message\"][\"content\"]}}\" --output E:/AutomacaoConteudo/imagens/curiosity_en_{{$now}}.png"
      }
    },
    {
      "id": "7",
      "name": "Montar V\u00eddeo Longo PT",
      "type": "n8n-nodes-base.executeCommand",
      "typeVersion": 1,
      "position": [
        1000,
        150
      ],
      "parameters": {
        "command": "ffmpeg -loop 1 -i E:/AutomacaoConteudo/imagens/curiosidade_pt_{{$now}}.png -i E:/AutomacaoConteudo/audios/curiosidade_pt_{{$now}}.wav -c:v libx264 -tune stillimage -shortest -pix_fmt yuv420p E:/AutomacaoConteudo/videos/curiosidade_pt_{{$now}}.mp4"
      }
    },
    {
      "id": "8",
      "name": "Montar V\u00eddeo Longo EN",
      "type": "n8n-nodes-base.executeCommand",
      "typeVersion": 1,
      "position": [
        1000,
        450
      ],
      "parameters": {
        "command": "ffmpeg -loop 1 -i E:/AutomacaoConteudo/imagens/curiosity_en_{{$now}}.png -i E:/AutomacaoConteudo/audios/curiosity_en_{{$now}}.wav -c:v libx264 -tune stillimage -shortest -pix_fmt yuv420p E:/AutomacaoConteudo/videos/curiosity_en_{{$now}}.mp4"
      }
    },
    {
      "id": "9",
      "name": "Montar Short PT",
      "type": "n8n-nodes-base.executeCommand",
      "typeVersion": 1,
      "position": [
        1250,
        150
      ],
      "parameters": {
        "command": "ffmpeg -i E:/AutomacaoConteudo/videos/curiosidade_pt_{{$now}}.mp4 -vf \"scale=1080:1920:force_original_aspect_ratio=decrease,pad=1080:1920:(ow-iw)/2:(oh-ih)/2\" -c:a copy E:/AutomacaoConteudo/shorts/curiosidade_pt_{{$now}}.mp4"
      }
    },
    {
      "id": "10",
      "name": "Montar Short EN",
      "type": "n8n-nodes-base.executeCommand",
      "typeVersion": 1,
      "position": [
        1250,
        450
      ],
      "parameters": {
        "command": "ffmpeg -i E:/AutomacaoConteudo/videos/curiosity_en_{{$now}}.mp4 -vf \"scale=1080:1920:force_original_aspect_ratio=decrease,pad=1080:1920:(ow-iw)/2:(oh-ih)/2\" -c:a copy E:/AutomacaoConteudo/shorts/curiosity_en_{{$now}}.mp4"
      }
    },
    {
      "id": "11",
      "name": "Criar Thumb PT",
      "type": "n8n-nodes-base.executeCommand",
      "typeVersion": 1,
      "position": [
        1500,
        150
      ],
      "parameters": {
        "command": "ffmpeg -i E:/AutomacaoConteudo/imagens/curiosidade_pt_{{$now}}.png -vf scale=1280:720 E:/AutomacaoConteudo/thumbs/curiosidade_pt_{{$now}}.jpg"
      }
    },
    {
      "id": "12",
      "name": "Criar Thumb EN",
      "type": "n8n-nodes-base.executeCommand",
      "typeVersion": 1,
      "position": [
        1500,
        450
      ],
      "parameters": {
        "command": "ffmpeg -i E:/AutomacaoConteudo/imagens/curiosity_en_{{$now}}.png -vf scale=1280:720 E:/AutomacaoConteudo/thumbs/curiosity_en_{{$now}}.jpg"
      }
    }
  ],
  "connections": {
    "1": {
      "main": [
        [
          {
            "node": "3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "2": {
      "main": [
        [
          {
            "node": "4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "3": {
      "main": [
        [
          {
            "node": "5",
            "type": "main",
            "index": 0
          },
          {
            "node": "7",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "4": {
      "main": [
        [
          {
            "node": "6",
            "type": "main",
            "index": 0
          },
          {
            "node": "8",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "5": {
      "main": [
        [
          {
            "node": "7",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "6": {
      "main": [
        [
          {
            "node": "8",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "7": {
      "main": [
        [
          {
            "node": "9",
            "type": "main",
            "index": 0
          },
          {
            "node": "11",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "8": {
      "main": [
        [
          {
            "node": "10",
            "type": "main",
            "index": 0
          },
          {
            "node": "12",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

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

Automacao_Conteudo_Curiosidades. Uses openai, executeCommand. Manual trigger; 12 nodes.

Source: https://gist.github.com/Grayko1992/0228e75a3e87f7ddcdb76687f9fb0ca9 — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

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

AI & RAG

Content Intelligence. Uses googleSheets, n8n-nodes-hdw, openAi. Manual trigger; 29 nodes.

Google Sheets, N8N Nodes Hdw, OpenAI
AI & RAG

N8Nflow Zhtw. Uses executeCommand, readBinaryFiles, httpRequest, googleGemini. Scheduled trigger; 28 nodes.

Execute Command, Read Binary Files, HTTP Request +2
AI & RAG

N8Nflow En. Uses executeCommand, readBinaryFiles, httpRequest, googleGemini. Scheduled trigger; 28 nodes.

Execute Command, Read Binary Files, HTTP Request +2
AI & RAG

Unified Marketing Automation — Master Scraper / AI Factory / Publisher / Analytics / Control. Uses httpRequest, openai, telegram. Scheduled trigger; 24 nodes.

HTTP Request, OpenAI, Telegram
AI & RAG

Turn email overload into audio insights — automatically.

Gmail Trigger, OpenAI, HTTP Request +3