8
n8n 中文网amn8n.com

4个病毒式新闻到AI头像视频

高级

这是一个Miscellaneous, Multimodal AI领域的自动化工作流,包含 35 个节点。主要使用 If, Set, Wait, Merge, Perplexity 等节点。 使用Perplexity和HeyGen创建病毒式新闻AI头像视频并发布到9个平台

前置要求
  • 可能需要目标 API 的认证凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "nWQ4mxLIgIk7eipH",
  "meta": {
    "instanceId": "e232d38e020fdf3e4c5aac7fdf84cd849e91ffb2c1ad80af1a4b16753ff64418",
    "templateCredsSetupCompleted": true
  },
  "name": "4个病毒式新闻到AI头像视频",
  "tags": [],
  "nodes": [
    {
      "id": "c340145f-6843-41a9-ac3a-27adf4fe1abf",
      "name": "计划触发器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -2224,
        976
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "triggerAtHour": 10
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "24fc9cb6-00eb-47f4-938e-6c895d55f930",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2288,
        560
      ],
      "parameters": {
        "color": 5,
        "width": 940,
        "height": 868,
        "content": "# 使用Perplexity研究行业新闻"
      },
      "typeVersion": 1
    },
    {
      "id": "5a6e58be-ddc5-46b2-bde0-b0ad59789136",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2032,
        -432
      ],
      "parameters": {
        "color": 6,
        "width": 864,
        "height": 944,
        "content": "# 完整教程"
      },
      "typeVersion": 1
    },
    {
      "id": "dd96ed83-e655-4514-9edf-369a48eb67f6",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2080,
        800
      ],
      "parameters": {
        "color": 2,
        "width": 182,
        "height": 148,
        "content": "# 设置1"
      },
      "typeVersion": 1
    },
    {
      "id": "2d14361b-3535-48e9-98dc-a87bb1da09a6",
      "name": "AI写手",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -1616,
        976
      ],
      "parameters": {
        "modelId": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-5",
          "cachedResultName": "GPT-5"
        },
        "options": {},
        "messages": {
          "values": [
            {
              "role": "system",
              "content": "=# TASK\n1. Analyze the following viral news story:\n<news>\n{{ $('AI Research - Report').item.json.message }}\n</news>\n\n2. Write a conversational monologue script for an AI avatar video, following these guidelines:\n   - The script should be approximately 30 seconds when spoken aloud.\n   - Include lots of factual details and statistics from the article.\n   - Use 6th grade reading level.\n   - Balanced viewpoint.\n   - First sentence should create an irresistible curiosity gap to hook viewers.\n   - Replace the last sentence with this CTA: \"Hit follow to stay up to date!\"\n   - ONLY output the exact video script. Do not output anything else. NEVER include intermediate thoughts, notes, or formatting.\n\n3. Write an SEO-optimized caption that will accompany the video, following a similar structure as the EXAMPLE below, max 5 hashtags:\n\n<example>\nMany people have recently asked me about ask engine optimization, which is all about optimizing your website and existing content, so it can be pulled into ChatGPT and other generative AI tools. Consider that generative AI tools tend to be more conversational in nature and have a Q&A type format, so search engines will want to pull in snippets that concisely answer a user’s question.\n\n- what is ask engine optimization in the age of AI?\n- How does traditional SEO compare to ask engine optimization today?\n- top tips and tricks to get started with ask engine optimization?\n\n#ai #askengineoptimization #chatgpt #seo\n</example>\n\n4. Write 1 viral sentence, max 8 words, summarizing the content, use 6th grade language, balanced neutral perspective, no emojis, no punctuation except `?` or `!`.\n\n# OUTPUT\n\nYou will output structured JSON in the following format, where `script` is the output of step 2, `caption` is the output of step 3, and `title` is the output of step 4:\n\n```\n{\n  \"script\": \"Monologue script to be spoken by AI avatar\",\n  \"caption\": \"Long SEO-optimized video caption\",\n  \"title\": \"Short video title\"\n}\n```"
            }
          ]
        },
        "simplify": false,
        "jsonOutput": true
      },
      "credentials": {
        "openAiApi": {
          "id": "nN3d2hW6JDmQL1j8",
          "name": "[S BRAND] OpenAI"
        }
      },
      "typeVersion": 1.8
    },
    {
      "id": "66a341d1-04be-46bd-a084-ba9aaa1cda7e",
      "name": "AI研究 - 报告",
      "type": "n8n-nodes-base.perplexity",
      "position": [
        -1824,
        976
      ],
      "parameters": {
        "model": "sonar-pro",
        "options": {},
        "messages": {
          "message": [
            {
              "content": "=# INSTRUCTIONS\n\nComplete the following tasks, in order:\n\n1. Out of the 10 news stories listed below, select the ONE top news story that is most likely to go viral on social media. It should have broad appeal and contain something unique, controversial, or vitally important information that millions of people should know.\n\n<news>\n{{ $('AI Research - Top 10').item.json.message }}\n</news>\n\n2. Research more information about the top news story you selected in step 2.\n\n3. Your final output should be a detailed report of the top story you've selected. It should be dense with factual data, statistics, sources, and key information based on your research. Include reasons why this story would perform well on social media. Include why a \"normal person\" in this industry should care about this news."
            }
          ]
        },
        "simplify": true,
        "requestOptions": {}
      },
      "credentials": {
        "perplexityApi": {
          "id": "zKtBc5ncbxZXdKHU",
          "name": "[S BRAND] Perplexity"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "4e2476d1-930d-4194-8143-a0eab762720a",
      "name": "AI研究 - 前10条",
      "type": "n8n-nodes-base.perplexity",
      "position": [
        -2032,
        976
      ],
      "parameters": {
        "model": "sonar-pro",
        "options": {
          "searchRecency": "day"
        },
        "messages": {
          "message": [
            {
              "content": "Research the top 10 trending news items in my industry from the past 24 hours.\n\n- Industry: real estate"
            }
          ]
        },
        "simplify": true,
        "requestOptions": {}
      },
      "credentials": {
        "perplexityApi": {
          "id": "zKtBc5ncbxZXdKHU",
          "name": "[S BRAND] Perplexity"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "e6048a83-57ff-48c1-b2bd-761dd1b9b596",
      "name": "便签 7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        944,
        1312
      ],
      "parameters": {
        "color": 7,
        "width": 288,
        "height": 192,
        "content": "# 错误报告"
      },
      "typeVersion": 1
    },
    {
      "id": "ba1eded1-5f8d-4b2d-a493-829595aa6b74",
      "name": "错误报告",
      "type": "n8n-nodes-base.merge",
      "position": [
        1024,
        928
      ],
      "parameters": {
        "numberInputs": 9
      },
      "notesInFlow": false,
      "typeVersion": 3.2
    },
    {
      "id": "06af15ae-55bf-42d0-850f-1033bc8ce545",
      "name": "便签8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1344,
        160
      ],
      "parameters": {
        "color": 7,
        "width": 608,
        "height": 1632,
        "content": "# 平台特定说明"
      },
      "typeVersion": 1
    },
    {
      "id": "c16ccf28-4f72-46fb-b5c9-f49f7af39236",
      "name": "便签 9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        480,
        240
      ],
      "parameters": {
        "color": 2,
        "width": 320,
        "height": 176,
        "content": "# 设置2"
      },
      "typeVersion": 1
    },
    {
      "id": "46c34ea2-6536-4496-bc4c-d1ff0b952d67",
      "name": "便签10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        352,
        -48
      ],
      "parameters": {
        "color": 4,
        "width": 912,
        "height": 1968,
        "content": "# 随处发布"
      },
      "typeVersion": 1
    },
    {
      "id": "2a607887-2c28-4bb8-9f6d-22ce8a5e17ad",
      "name": "便签11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -368,
        1200
      ],
      "parameters": {
        "color": 7,
        "width": 320,
        "content": "## 故障排除清单"
      },
      "typeVersion": 1
    },
    {
      "id": "6f3a7aa9-e65d-4078-8e67-0635462739eb",
      "name": "便签12",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1264,
        560
      ],
      "parameters": {
        "color": 3,
        "width": 1536,
        "height": 868,
        "content": "# 使用HeyGen创建AI克隆视频"
      },
      "typeVersion": 1
    },
    {
      "id": "fc580f31-1a48-4b75-b1a2-10778459d271",
      "name": "便签13",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1232,
        1136
      ],
      "parameters": {
        "color": 2,
        "width": 182,
        "height": 116,
        "content": "# 设置1"
      },
      "typeVersion": 1
    },
    {
      "id": "b61a4fed-6aa7-4fb1-b604-cc3086515afc",
      "name": "便签14",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1040,
        -144
      ],
      "parameters": {
        "color": 6,
        "width": 896,
        "height": 640,
        "content": "# 设置"
      },
      "typeVersion": 1
    },
    {
      "id": "5bc4de30-adf9-487b-8a00-e3e7955b4aa3",
      "name": "设置Heygen",
      "type": "n8n-nodes-base.set",
      "position": [
        -1184,
        976
      ],
      "parameters": {
        "mode": "raw",
        "options": {},
        "jsonOutput": "{\n  \"heygen_api_key\": \"\",\n  \"avatar_id\": \"\",\n  \"voice_id\": \"\",\n  \"has_background_video\": false,\n  \"background_video_url\": \"https://database.blotato.io/storage/v1/object/public/public_media/4ddd33eb-e811-4ab5-93e1-2cd0b7e8fb3f/videogen2-render-e6b398a2-5859-4a77-88ef-2345bcefdc98.mp4\"\n}\n"
      },
      "typeVersion": 3.4
    },
    {
      "id": "901cf3d9-9393-49a1-abaa-d9b05e657c64",
      "name": "条件判断",
      "type": "n8n-nodes-base.if",
      "position": [
        -1024,
        976
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "73001c6b-fae2-48cd-b0a6-aa453b837902",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              },
              "leftValue": "={{ $('Setup Heygen').item.json.has_background_video }}",
              "rightValue": ""
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "da150126-3920-44f1-89ad-b529e96b0969",
      "name": "创建带背景视频的头像视频",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -816,
        864
      ],
      "parameters": {
        "url": "https://api.heygen.com/v2/video/generate",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"video_inputs\": [\n    {\n      \"character\": {\n        \"type\": \"avatar\",\n        \"avatar_id\": \"{{ $('Setup Heygen').item.json.avatar_id }}\",\n        \"avatar_style\": \"normal\",\n        \"scale\": 1.0,\n        \"offset\": {\n          \"x\": 0.15,\n          \"y\": 0.15\n        },\n        \"matting\": true\n      },\n      \"voice\": {\n        \"type\": \"text\",\n        \"input_text\":  {{ $('AI Writer').item.json.choices[0].message.content.script.toJsonString() }},\n        \"voice_id\": \"{{ $('Setup Heygen').item.json.voice_id }}\",\n        \"speed\": 1.1,\n        \"pitch\": 50,\n        \"emotion\": \"Excited\"\n      },\n      \"background\": {\n        \"type\": \"video\",\n        \"url\": \"{{ $('Setup Heygen').item.json.background_video_url }}\",\n        \"play_style\": \"loop\",\n        \"fit\": \"cover\"\n      }\n    }\n  ],\n  \"dimension\": {\n    \"width\": 720,\n    \"height\": 1280\n  },\n  \"aspect_ratio\": \"9:16\",\n  \"caption\": false,\n  \"title\": \"{{ $('AI Writer').item.json.choices[0].message.content.title }}\"\n}",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "headerParameters": {
          "parameters": [
            {
              "name": "X-Api-Key",
              "value": "={{ $('Setup Heygen').item.json.heygen_api_key }}"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "b3916543-e72d-4601-92eb-538e50c65daf",
      "name": "创建无背景视频的头像视频",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -816,
        1088
      ],
      "parameters": {
        "url": "https://api.heygen.com/v2/video/generate",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"video_inputs\": [\n    {\n      \"character\": {\n        \"type\": \"avatar\",\n        \"avatar_id\": \"{{ $('Setup Heygen').item.json.avatar_id }}\",\n        \"avatar_style\": \"normal\",\n        \"scale\": 1.0\n      },\n      \"voice\": {\n        \"type\": \"text\",\n        \"input_text\": {{ $('AI Writer').item.json.choices[0].message.content.script.toJsonString() }},\n        \"voice_id\": \"{{ $('Setup Heygen').item.json.voice_id }}\",\n        \"speed\": 1.1,\n        \"pitch\": 50,\n        \"emotion\": \"Excited\"\n      }\n    }\n  ],\n  \"dimension\": {\n    \"width\": 720,\n    \"height\": 1280\n  },\n  \"aspect_ratio\": \"9:16\",\n  \"caption\": false,\n  \"title\": \"{{ $('AI Writer').item.json.choices[0].message.content.title }}\"\n}",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "headerParameters": {
          "parameters": [
            {
              "name": "X-Api-Key",
              "value": "={{ $('Setup Heygen').item.json.heygen_api_key }}"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "24d099e6-c4bc-4028-99f6-47a29352c6cc",
      "name": "合并",
      "type": "n8n-nodes-base.merge",
      "position": [
        -608,
        976
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "dd17bf15-6d98-4208-8db8-f82487038e9d",
      "name": "等待",
      "type": "n8n-nodes-base.wait",
      "position": [
        -400,
        976
      ],
      "webhookId": "d9404622-0a06-4a65-959e-badd4fd87465",
      "parameters": {
        "unit": "minutes",
        "amount": 1
      },
      "typeVersion": 1.1,
      "alwaysOutputData": false
    },
    {
      "id": "7a8c4319-4fd8-41cc-a769-ab672bc27839",
      "name": "获取虚拟人视频",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -272,
        976
      ],
      "parameters": {
        "url": "https://api.heygen.com/v1/video_status.get",
        "options": {},
        "sendQuery": true,
        "sendHeaders": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "video_id",
              "value": "={{ $('Merge').item.json.data.video_id }}"
            }
          ]
        },
        "headerParameters": {
          "parameters": [
            {
              "name": "X-Api-Key",
              "value": "={{ $('Setup Heygen').item.json.heygen_api_key }}"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "cd28cb8f-6fa4-4ebe-889a-9a596fb58e94",
      "name": "如果视频完成",
      "type": "n8n-nodes-base.if",
      "position": [
        -144,
        976
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "loose"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "e511deb8-8e4c-45db-aa35-18f43a0552b6",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $('Get Avatar Video').item.json.data.status }}",
              "rightValue": "completed"
            }
          ]
        },
        "looseTypeValidation": true
      },
      "typeVersion": 2.2
    },
    {
      "id": "bca4e4bc-05a0-4cf5-a472-9647f958212a",
      "name": "上传媒体",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "position": [
        112,
        976
      ],
      "parameters": {
        "mediaUrl": "={{ $('Get Avatar Video').item.json.data.video_url }}",
        "resource": "media"
      },
      "credentials": {
        "blotatoApi": {
          "id": "zI14DNda55rFeyY8",
          "name": "[S BRAND] Blotato"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "1374d8d1-fbd1-4d58-a46d-1c171bb79339",
      "name": "Tiktok [BLOTATO]",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "onError": "continueErrorOutput",
      "maxTries": 2,
      "position": [
        592,
        448
      ],
      "parameters": {
        "options": {},
        "platform": "tiktok",
        "accountId": {
          "__rl": true,
          "mode": "list",
          "value": "199",
          "cachedResultUrl": "https://backend.blotato.com/v2/accounts/199",
          "cachedResultName": "sabrina_ramonov"
        },
        "postContentText": "={{ $('AI Writer').item.json.choices[0].message.content.caption }}",
        "postContentMediaUrls": "={{ $('Upload media').item.json.url }}",
        "postCreateTiktokOptionIsAiGenerated": true
      },
      "credentials": {
        "blotatoApi": {
          "id": "zI14DNda55rFeyY8",
          "name": "[S BRAND] Blotato"
        }
      },
      "retryOnFail": false,
      "typeVersion": 2,
      "waitBetweenTries": 3000
    },
    {
      "id": "0c693f35-a5ad-4b8f-bb36-7e6012a862a9",
      "name": "Linkedin [BLOTATO]",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "onError": "continueErrorOutput",
      "position": [
        592,
        608
      ],
      "parameters": {
        "options": {},
        "platform": "linkedin",
        "accountId": {
          "__rl": true,
          "mode": "list",
          "value": "4590",
          "cachedResultUrl": "https://backend.blotato.com/v2/accounts/4590",
          "cachedResultName": "Sabrina Ramonov 🍄"
        },
        "postContentText": "={{ $('AI Writer').item.json.choices[0].message.content.caption }}",
        "postContentMediaUrls": "={{ $('Upload media').item.json.url }}"
      },
      "credentials": {
        "blotatoApi": {
          "id": "zI14DNda55rFeyY8",
          "name": "[S BRAND] Blotato"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "f7fa456f-f887-4fa9-9fe5-ede1741e6388",
      "name": "Facebook [BLOTATO]",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "onError": "continueErrorOutput",
      "position": [
        592,
        768
      ],
      "parameters": {
        "options": {},
        "platform": "facebook",
        "accountId": {
          "__rl": true,
          "mode": "list",
          "value": "369",
          "cachedResultUrl": "https://backend.blotato.com/v2/accounts/369",
          "cachedResultName": "Sabrina Ramonov"
        },
        "facebookPageId": {
          "__rl": true,
          "mode": "list",
          "value": "161711670360847",
          "cachedResultUrl": "https://backend.blotato.com/v2/accounts/369/subaccounts/161711670360847",
          "cachedResultName": "Blotato"
        },
        "postContentText": "={{ $('AI Writer').item.json.choices[0].message.content.caption }}",
        "postContentMediaUrls": "={{ $('Upload media').item.json.url }}"
      },
      "credentials": {
        "blotatoApi": {
          "id": "zI14DNda55rFeyY8",
          "name": "[S BRAND] Blotato"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "f5f64e19-83ae-4122-85fd-ae759c5a7b93",
      "name": "Instagram [BLOTATO]",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "onError": "continueErrorOutput",
      "maxTries": 2,
      "position": [
        592,
        928
      ],
      "parameters": {
        "options": {},
        "accountId": {
          "__rl": true,
          "mode": "list",
          "value": "28",
          "cachedResultUrl": "https://backend.blotato.com/v2/accounts/28",
          "cachedResultName": "sabrina_ramonov"
        },
        "postContentText": "={{ $('AI Writer').item.json.choices[0].message.content.caption }}",
        "postContentMediaUrls": "={{ $('Upload media').item.json.url }}"
      },
      "credentials": {
        "blotatoApi": {
          "id": "zI14DNda55rFeyY8",
          "name": "[S BRAND] Blotato"
        }
      },
      "retryOnFail": true,
      "typeVersion": 2,
      "waitBetweenTries": 5000
    },
    {
      "id": "23c3b5e8-b7a5-44d3-9223-dd537be2caf0",
      "name": "Twitter [BLOTATO]",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "onError": "continueErrorOutput",
      "position": [
        592,
        1088
      ],
      "parameters": {
        "options": {},
        "platform": "twitter",
        "accountId": {
          "__rl": true,
          "mode": "list",
          "value": "38",
          "cachedResultUrl": "https://backend.blotato.com/v2/accounts/38",
          "cachedResultName": "Sabrina_Ramonov"
        },
        "postContentText": "={{ $('AI Writer').item.json.choices[0].message.content.title }}",
        "postContentMediaUrls": "={{ $('Upload media').item.json.url }}"
      },
      "credentials": {
        "blotatoApi": {
          "id": "zI14DNda55rFeyY8",
          "name": "[S BRAND] Blotato"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "9a00bbc1-4883-40e6-90e1-bbeac1b24abe",
      "name": "Youtube [BLOTATO]",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "onError": "continueErrorOutput",
      "position": [
        592,
        1248
      ],
      "parameters": {
        "options": {},
        "platform": "youtube",
        "accountId": {
          "__rl": true,
          "mode": "list",
          "value": "111",
          "cachedResultUrl": "https://backend.blotato.com/v2/accounts/111",
          "cachedResultName": "Sabrina Ramonov 🍄"
        },
        "postContentText": "={{ $('AI Writer').item.json.choices[0].message.content.caption }}",
        "postContentMediaUrls": "={{ $('Upload media').item.json.url }}",
        "postCreateYoutubeOptionTitle": "={{ $('AI Writer').item.json.choices[0].message.content.title }}",
        "postCreateYoutubeOptionContainsSyntheticMedia": true
      },
      "credentials": {
        "blotatoApi": {
          "id": "zI14DNda55rFeyY8",
          "name": "[S BRAND] Blotato"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "28f69c51-a437-4dcd-8743-f3502d9c5de3",
      "name": "Threads [BLOTATO]",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "onError": "continueErrorOutput",
      "position": [
        592,
        1408
      ],
      "parameters": {
        "options": {},
        "platform": "threads",
        "accountId": {
          "__rl": true,
          "mode": "list",
          "value": "2537",
          "cachedResultUrl": "https://backend.blotato.com/v2/accounts/2537",
          "cachedResultName": "sabrina_ramonov"
        },
        "postContentText": "={{ $('AI Writer').item.json.choices[0].message.content.title }}",
        "postContentMediaUrls": "={{ $('Upload media').item.json.url }}"
      },
      "credentials": {
        "blotatoApi": {
          "id": "zI14DNda55rFeyY8",
          "name": "[S BRAND] Blotato"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "2cde4480-332c-43b5-b8ef-d61833c88f0f",
      "name": "Bluesky [BLOTATO]",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "onError": "continueErrorOutput",
      "position": [
        592,
        1568
      ],
      "parameters": {
        "options": {},
        "platform": "bluesky",
        "accountId": {
          "__rl": true,
          "mode": "list",
          "value": "6036",
          "cachedResultUrl": "https://backend.blotato.com/v2/accounts/6036",
          "cachedResultName": "sabrinaramonov.bsky.social"
        },
        "postContentText": "={{ $('AI Writer').item.json.choices[0].message.content.title }}",
        "postContentMediaUrls": "={{ $('Upload media').item.json.url }}"
      },
      "credentials": {
        "blotatoApi": {
          "id": "zI14DNda55rFeyY8",
          "name": "[S BRAND] Blotato"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "ea528671-63b8-40a7-aa4b-e0a4d35d44f2",
      "name": "Pinterest [BLOTATO]",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "onError": "continueErrorOutput",
      "position": [
        592,
        1728
      ],
      "parameters": {
        "options": {},
        "platform": "pinterest",
        "accountId": {
          "__rl": true,
          "mode": "list",
          "value": "358",
          "cachedResultUrl": "https://backend.blotato.com/v2/accounts/358",
          "cachedResultName": "sabrina_ramonov"
        },
        "postContentText": "={{ $('AI Writer').item.json.choices[0].message.content.caption }}",
        "pinterestBoardId": {
          "__rl": true,
          "mode": "id",
          "value": "1234"
        },
        "postContentMediaUrls": "={{ $('Upload media').item.json.url }}"
      },
      "credentials": {
        "blotatoApi": {
          "id": "zI14DNda55rFeyY8",
          "name": "[S BRAND] Blotato"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "221f4aa7-eace-4f16-827d-0ca76e70ca48",
      "name": "便签15",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2064,
        1168
      ],
      "parameters": {
        "color": 7,
        "width": 384,
        "content": "## 故障排除清单"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "f4241d20-c3f5-402c-b79a-48b63e617359",
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Create Avatar Video WITH Background Video",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Create Avatar Video WITHOUT Background Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "Get Avatar Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Writer": {
      "main": [
        [
          {
            "node": "Setup Heygen",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Setup Heygen": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload media": {
      "main": [
        [
          {
            "node": "Tiktok [BLOTATO]",
            "type": "main",
            "index": 0
          },
          {
            "node": "Linkedin [BLOTATO]",
            "type": "main",
            "index": 0
          },
          {
            "node": "Facebook [BLOTATO]",
            "type": "main",
            "index": 0
          },
          {
            "node": "Instagram [BLOTATO]",
            "type": "main",
            "index": 0
          },
          {
            "node": "Twitter [BLOTATO]",
            "type": "main",
            "index": 0
          },
          {
            "node": "Youtube [BLOTATO]",
            "type": "main",
            "index": 0
          },
          {
            "node": "Threads [BLOTATO]",
            "type": "main",
            "index": 0
          },
          {
            "node": "Bluesky [BLOTATO]",
            "type": "main",
            "index": 0
          },
          {
            "node": "Pinterest [BLOTATO]",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Video Done": {
      "main": [
        [
          {
            "node": "Upload media",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Avatar Video": {
      "main": [
        [
          {
            "node": "If Video Done",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "AI Research - Top 10",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Tiktok [BLOTATO]": {
      "main": [
        [],
        [
          {
            "node": "Error Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Bluesky [BLOTATO]": {
      "main": [
        [],
        [
          {
            "node": "Error Report",
            "type": "main",
            "index": 7
          }
        ]
      ]
    },
    "Threads [BLOTATO]": {
      "main": [
        [],
        [
          {
            "node": "Error Report",
            "type": "main",
            "index": 6
          }
        ]
      ]
    },
    "Twitter [BLOTATO]": {
      "main": [
        [],
        [
          {
            "node": "Error Report",
            "type": "main",
            "index": 4
          }
        ]
      ]
    },
    "Youtube [BLOTATO]": {
      "main": [
        [],
        [
          {
            "node": "Error Report",
            "type": "main",
            "index": 5
          }
        ]
      ]
    },
    "Facebook [BLOTATO]": {
      "main": [
        [],
        [
          {
            "node": "Error Report",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Linkedin [BLOTATO]": {
      "main": [
        [],
        [
          {
            "node": "Error Report",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Instagram [BLOTATO]": {
      "main": [
        [],
        [
          {
            "node": "Error Report",
            "type": "main",
            "index": 3
          }
        ]
      ]
    },
    "Pinterest [BLOTATO]": {
      "main": [
        [],
        [
          {
            "node": "Error Report",
            "type": "main",
            "index": 8
          }
        ]
      ]
    },
    "AI Research - Report": {
      "main": [
        [
          {
            "node": "AI Writer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Research - Top 10": {
      "main": [
        [
          {
            "node": "AI Research - Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Avatar Video WITH Background Video": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Avatar Video WITHOUT Background Video": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

高级 - 杂项, 多模态 AI

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
高级
节点数量35
分类2
节点类型10
难度说明

适合高级用户,包含 16+ 个节点的复杂工作流

作者
Sabrina Ramonov 🍄

Sabrina Ramonov 🍄

@sabrina-ramonov

- Teach 10M people AI - Sold AI startup for $10M+ - 0 to 1.3M+ followers in 1 year - Solo Founder, Blotato.com - social media API - Learn AI for free: www.sabrina.dev

外部链接
在 n8n.io 查看

分享此工作流