8
n8n 中文网amn8n.com

个人每日晨间简报自动化

中级

这是一个自动化工作流,包含 12 个节点。主要使用 Set, Merge, Slack, HttpRequest, RssFeedRead 等节点。 每日晨间简报(Google日历、天气和新闻)发送到Slack

前置要求
  • Slack Bot Token 或 Webhook URL
  • 可能需要目标 API 的认证凭证

分类

-
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "RoQ9cIHyWJOc3u8Y",
  "meta": {
    "instanceId": "15d6057a37b8367f33882dd60593ee5f6cc0c59310ff1dc66b626d726083b48d"
  },
  "name": "个人每日晨间简报自动化",
  "tags": [],
  "nodes": [
    {
      "id": "7dead07a-d3e8-425f-9a49-6503c8b29358",
      "name": "每日晨间触发器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -448,
        192
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "triggerAtHour": 7
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "6dab103c-bbc6-4967-a417-76c83a8c9244",
      "name": "工作流配置",
      "type": "n8n-nodes-base.set",
      "position": [
        -224,
        192
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "id-5",
              "name": "rssUrl",
              "type": "string",
              "value": "https://news.google.com/rss?hl=ja&gl=JP&ceid=JP:ja"
            },
            {
              "id": "id-6",
              "name": "weatherApiUrl",
              "type": "string",
              "value": "https://wttr.in/Tokyo?format=j1"
            }
          ]
        },
        "includeOtherFields": true
      },
      "typeVersion": 3.4
    },
    {
      "id": "6da03f8b-179c-4ca0-850f-12e9e5e8c0b0",
      "name": "获取今日日历事件",
      "type": "n8n-nodes-base.googleCalendar",
      "position": [
        0,
        0
      ],
      "parameters": {
        "limit": 10,
        "options": {},
        "timeMax": "={{ $now.endOf('day') }}",
        "timeMin": "={{ $now.startOf('day') }}",
        "calendar": {
          "__rl": true,
          "mode": "list",
          "value": "YOUR_CALENDAR_ACCOUNT"
        },
        "operation": "getAll"
      },
      "credentials": {
        "googleCalendarOAuth2Api": {
          "id": "0KYfBd8UTIhoYgpE",
          "name": "Google Calendar account 11"
        }
      },
      "typeVersion": 1.3
    },
    {
      "id": "cdb324a8-a60f-4afd-97d6-b0250627486f",
      "name": "获取天气预报",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        0,
        192
      ],
      "parameters": {
        "url": "={{ $('Workflow Configuration').first().json.weatherApiUrl }}",
        "options": {
          "response": {
            "response": {
              "responseFormat": "json"
            }
          }
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "9829c6af-0e49-4580-84d0-2c963738da12",
      "name": "从RSS获取头条新闻",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        0,
        384
      ],
      "parameters": {
        "url": "={{ $('Workflow Configuration').first().json.rssUrl }}",
        "options": {}
      },
      "typeVersion": 1.2
    },
    {
      "id": "baadb772-ec4e-48a0-8dcd-128b48753bf8",
      "name": "格式化简报消息",
      "type": "n8n-nodes-base.set",
      "position": [
        448,
        192
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "id-1",
              "name": "briefingMessage",
              "type": "string",
              "value": "=*📅 Daily Morning Briefing*\n\n*📆 今日の予定*\n{{ $('Get Today\\'s Calendar Events').all().length > 0 ? $('Get Today\\'s Calendar Events').all().map(event => '• ' + event.json.summary + ' - ' + new Date(event.json.start.dateTime).toLocaleTimeString('ja-JP', { hour: '2-digit', minute: '2-digit' })).join('\\n') : '今日の予定はありません' }}\n\n*🌤️ 天気予報*\n• {{ $('Get Weather Forecast').first().json.current_condition[0].weatherDesc[0].value }} / 気温: {{ $('Get Weather Forecast').first().json.current_condition[0].temp_C }}°C\n\n*📰 トップニュース*\n{{ $('Get Top News from RSS').all().length > 0 ? $('Get Top News from RSS').all().slice(0, 3).map(article => '• <' + article.json.link + '|' + article.json.title + '>').join('\\n') : 'ニュースはありません' }}"
            }
          ]
        },
        "includeOtherFields": true
      },
      "typeVersion": 3.4
    },
    {
      "id": "e1f10241-c557-4cf8-ba3f-6b5b4595dbf2",
      "name": "发布到Slack",
      "type": "n8n-nodes-base.slack",
      "position": [
        736,
        192
      ],
      "webhookId": "ccbedadd-8aec-460b-b3ae-b0e952e40909",
      "parameters": {
        "text": "={{ $('Format Briefing Message').first().json.briefingMessage }}",
        "select": "channel",
        "channelId": {
          "__rl": true,
          "mode": "list",
          "value": "C09M5L3UB8U",
          "cachedResultName": "n8nlifework"
        },
        "otherOptions": {},
        "authentication": "oAuth2"
      },
      "typeVersion": 2.3
    },
    {
      "id": "b38c371a-842c-4484-bf7a-1c377010321f",
      "name": "等待所有数据",
      "type": "n8n-nodes-base.merge",
      "position": [
        224,
        176
      ],
      "parameters": {
        "numberInputs": 3
      },
      "typeVersion": 3.2
    },
    {
      "id": "54d2f891-ed19-4466-9e6e-86dabcff91c5",
      "name": "模板描述",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -976,
        -80
      ],
      "parameters": {
        "width": 496,
        "height": 784,
        "content": "## 个人每日晨间简报自动化"
      },
      "typeVersion": 1
    },
    {
      "id": "b74c8ea3-1def-4e46-aa0c-a300cf40ee22",
      "name": "天气说明",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        160,
        -64
      ],
      "parameters": {
        "content": "从wttr.in(东京)获取当前天气数据。"
      },
      "typeVersion": 1
    },
    {
      "id": "e785463c-6d68-4027-b78c-12fee710b78e",
      "name": "新闻说明",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        432,
        -64
      ],
      "parameters": {
        "content": "从Google新闻RSS源读取前3条头条新闻。"
      },
      "typeVersion": 1
    },
    {
      "id": "55af8a49-f7db-415b-a77c-7c375dc0b585",
      "name": "Slack说明",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        704,
        -64
      ],
      "parameters": {
        "content": "将编译的晨间简报消息发送到您选择的Slack频道。"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "22e5200b-1dab-41da-a43d-0e8bd62160ea",
  "connections": {
    "Wait for All Data": {
      "main": [
        [
          {
            "node": "Format Briefing Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Weather Forecast": {
      "main": [
        [
          {
            "node": "Wait for All Data",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Daily Morning Trigger": {
      "main": [
        [
          {
            "node": "Workflow Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Top News from RSS": {
      "main": [
        [
          {
            "node": "Wait for All Data",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Workflow Configuration": {
      "main": [
        [
          {
            "node": "Get Today's Calendar Events",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get Weather Forecast",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get Top News from RSS",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Briefing Message": {
      "main": [
        [
          {
            "node": "Post to Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Today's Calendar Events": {
      "main": [
        [
          {
            "node": "Wait for All Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级

需要付费吗?

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

工作流信息
难度等级
中级
节点数量12
分类-
节点类型8
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

外部链接
在 n8n.io 查看

分享此工作流