8
n8n 中文网amn8n.com

创建类人活动模式,含随机化工作流调度和时间槽

高级

这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 32 个节点。主要使用 N8n, Code, Merge, Switch, SplitOut 等节点。 创建类人活动模式,含随机化工作流调度和时间槽

前置要求
  • 无特殊前置要求,导入即可使用
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "--0",
      "name": "执行子流程",
      "type": "n8n-nodes-base.executeWorkflow",
      "onError": "continueErrorOutput",
      "position": [
        3232,
        96
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "--1",
      "name": "获取子工作流名称",
      "type": "n8n-nodes-base.n8n",
      "position": [
        3440,
        272
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "-3-2",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2768,
        -256
      ],
      "parameters": {
        "content": "## 重要说明"
      },
      "typeVersion": 1
    },
    {
      "id": "--3",
      "name": "追加计划文件",
      "type": "n8n-nodes-base.readWriteFile",
      "position": [
        3856,
        96
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "--4",
      "name": "读取计划文件",
      "type": "n8n-nodes-base.readWriteFile",
      "position": [
        4064,
        96
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "--5",
      "name": "错误:执行子工作流",
      "type": "n8n-nodes-base.stopAndError",
      "position": [
        3648,
        272
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "--6",
      "name": "监控",
      "type": "n8n-nodes-base.code",
      "onError": "continueErrorOutput",
      "position": [
        3648,
        96
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "--7",
      "name": "错误:监控",
      "type": "n8n-nodes-base.stopAndError",
      "position": [
        3856,
        272
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "-Github--8",
      "name": "由 Github 模型提供支持",
      "type": "n8n-nodes-base.scheduleTrigger",
      "notes": "At 1am every day (default",
      "position": [
        1104,
        0
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 1.2
    },
    {
      "id": "--9",
      "name": "执行/不执行",
      "type": "n8n-nodes-base.switch",
      "position": [
        2384,
        0
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "--10",
      "name": "每日调度器",
      "type": "n8n-nodes-base.code",
      "onError": "continueErrorOutput",
      "position": [
        1536,
        0
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "--11",
      "name": "初始化",
      "type": "n8n-nodes-base.code",
      "position": [
        1312,
        0
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "--12",
      "name": "无计划邮件",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        2592,
        96
      ],
      "webhookId": "",
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "--13",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1040,
        -256
      ],
      "parameters": {
        "content": "## 重要说明"
      },
      "typeVersion": 1
    },
    {
      "id": "-1-14",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1488,
        -256
      ],
      "parameters": {
        "content": "## 重要说明"
      },
      "typeVersion": 1
    },
    {
      "id": "-2-15",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1920,
        -256
      ],
      "parameters": {
        "content": "## 重要说明"
      },
      "typeVersion": 1
    },
    {
      "id": "--16",
      "name": "写入计划文件",
      "type": "n8n-nodes-base.readWriteFile",
      "position": [
        2176,
        0
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "--17",
      "name": "发送计划",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        1744,
        -96
      ],
      "webhookId": "",
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "--18",
      "name": "写入日志文件",
      "type": "n8n-nodes-base.readWriteFile",
      "position": [
        1968,
        0
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "-5-19",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1040,
        -720
      ],
      "parameters": {
        "content": "## 重要说明"
      },
      "typeVersion": 1
    },
    {
      "id": "--20",
      "name": "拆分输出",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        2816,
        0
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "--21",
      "name": "错误:每日调度器",
      "type": "n8n-nodes-base.stopAndError",
      "position": [
        1744,
        96
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "--22",
      "name": "最终成功邮件",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        5584,
        16
      ],
      "webhookId": "",
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "--23",
      "name": "读取最终计划文件",
      "type": "n8n-nodes-base.readWriteFile",
      "position": [
        4960,
        -128
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "--24",
      "name": "### 需要帮助?",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4688,
        -256
      ],
      "parameters": {
        "content": "## 重要说明"
      },
      "typeVersion": 1
    },
    {
      "id": "--25",
      "name": "遍历项目",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        3024,
        0
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "--26",
      "name": "循环成功邮件",
      "type": "n8n-nodes-base.emailSend",
      "notes": "Use $env after Split",
      "position": [
        4272,
        96
      ],
      "webhookId": "",
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 2.1
    },
    {
      "id": "Aggregate-27",
      "name": "Aggregate",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        4752,
        0
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "--28",
      "name": "返回监控数据",
      "type": "n8n-nodes-base.code",
      "position": [
        4480,
        272
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "--29",
      "name": "合并",
      "type": "n8n-nodes-base.merge",
      "position": [
        5376,
        0
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "--30",
      "name": "从文件提取",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        5168,
        16
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "985459e2-c127-404b-ad8f-fdd02f6678dd",
      "name": "读取日志文件",
      "type": "n8n-nodes-base.readWriteFile",
      "position": [
        4960,
        176
      ],
      "parameters": {},
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "Init": {
      "main": [
        [
          {
            "node": "Daily Scheduler",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "FINAL SUCCESS Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Go/no go": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "NOTHING Planned Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate-27": {
      "main": [
        [
          {
            "node": "Read Final Planning File",
            "type": "main",
            "index": 0
          },
          {
            "node": "985459e2-c127-404b-ad8f-fdd02f6678dd",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Monitoring": {
      "main": [
        [
          {
            "node": "Append Planning File",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "ERROR: Monitoring",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "985459e2-c127-404b-ad8f-fdd02f6678dd": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Write Log File": {
      "main": [
        [
          {
            "node": "Write Planning File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Daily Scheduler": {
      "main": [
        [
          {
            "node": "Send planning",
            "type": "main",
            "index": 0
          },
          {
            "node": "Write Log File",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "ERROR: Daily Scheduler",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [
          {
            "node": "Aggregate-27",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Execute sub-process",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Init",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract from File": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "LOOP SUCCESS email": {
      "main": [
        [
          {
            "node": "Return Monitoring Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read Planning File": {
      "main": [
        [
          {
            "node": "LOOP SUCCESS email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Execute sub-process": {
      "main": [
        [
          {
            "node": "Monitoring",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get Sub-workflow Name",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Write Planning File": {
      "main": [
        [
          {
            "node": "Go/no go",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append Planning File": {
      "main": [
        [
          {
            "node": "Read Planning File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Sub-workflow Name": {
      "main": [
        [
          {
            "node": "ERROR: Execute Sub-worflow",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Return Monitoring Data": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read Final Planning File": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          },
          {
            "node": "Extract from File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 内容创作, 多模态 AI

需要付费吗?

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

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

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

作者
Florent

Florent

@florent

IT Business Analyst for 8+ years, I am finding joy in developping again, with the help of n8n and AIs 🤗

外部链接
在 n8n.io 查看

分享此工作流

分类

分类: 34