8
n8n 中文网amn8n.com

自动化个人洞察:心情与天气记录到Notion

高级

这是一个Other领域的自动化工作流,包含 19 个节点。主要使用 Code, Cron, Notion, Telegram, HttpRequest 等节点。 使用Telegram和OpenWeatherMap将每日心情和天气记录到Notion

前置要求
  • Notion API Key
  • Telegram Bot Token
  • 可能需要目标 API 的认证凭证

分类

工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "Ory496P9KwrXYadC",
  "meta": {
    "instanceId": "bfd420b2507202b96311097daac596f40dd0b52b490356dbc5c97e783dc18513",
    "templateCredsSetupCompleted": true
  },
  "name": "自动化个人洞察:心情与天气记录到 Notion 💡✍️",
  "tags": [],
  "nodes": [
    {
      "id": "39c431e2-2e40-4d75-8392-cc5c5336c045",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -160,
        80
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "0e927881-7fb4-4213-a76c-1b2a9219d5c3",
      "name": "检索城市天气",
      "type": "n8n-nodes-base.code",
      "position": [
        200,
        200
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "3bce046c-ca18-45b2-9c64-776fd63466df",
      "name": "使用城市名称获取天气",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -100,
        200
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "02d0b0f6-800b-4b20-871b-bbbfdcef83c9",
      "name": "使用经纬度获取天气",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -100,
        440
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "4ba432fa-e9e5-4c20-bb71-14ff3a5e9120",
      "name": "等待心情回复1",
      "type": "n8n-nodes-base.telegramTrigger",
      "disabled": true,
      "position": [
        -400,
        440
      ],
      "webhookId": "726154cc-2a8f-4afa-bdd7-d1b1018c0495",
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "a6d8b136-1a62-47fe-b54c-739e0763ea06",
      "name": "等待心情回复",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -400,
        200
      ],
      "webhookId": "726154cc-2a8f-4afa-bdd7-d1b1018c0495",
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "0604a32e-e8f3-499d-a883-4bc23cb26544",
      "name": "发送心情提示",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -700,
        340
      ],
      "webhookId": "38c33b70-b460-4794-a3e2-19abb8206fc9",
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "59c60735-3d0a-4abe-bf96-46dd52312af5",
      "name": "每日触发器",
      "type": "n8n-nodes-base.cron",
      "position": [
        -1000,
        340
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "1bc8610f-8a9c-416b-bff9-a9fb7f6a295a",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -760,
        220
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "1c5256c9-e3b1-47a2-81e4-ff072135a8d0",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1060,
        220
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "f902bfaa-4585-4b58-b20a-0c5413789f6e",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        140,
        80
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "dee685fd-e5a8-4a7c-b64b-dc2168d40075",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -460,
        80
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c92b74b3-d4bd-4e9d-9fe3-008af4e13f60",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        720,
        80
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "b98b75eb-3d7d-4bf7-86ee-0209b0ff6eda",
      "name": "添加行到 Notion",
      "type": "n8n-nodes-base.notion",
      "position": [
        780,
        200
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "42739f1a-f6ee-4e59-8700-a8b5e24255bd",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        440,
        80
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c2c30f90-7538-42b4-b137-5a4ee58da071",
      "name": "检索数据库",
      "type": "n8n-nodes-base.notion",
      "position": [
        500,
        200
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "b80abbd5-7f0f-4744-8d86-ab1bcdc50589",
      "name": "添加行到 Notion1",
      "type": "n8n-nodes-base.notion",
      "position": [
        780,
        440
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "f64148ba-f530-4e8b-bdb4-b286fca327bb",
      "name": "检索数据库1",
      "type": "n8n-nodes-base.notion",
      "position": [
        500,
        440
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "73fc3f9b-8440-442e-beb7-2376ac755d01",
      "name": "检索城市天气1",
      "type": "n8n-nodes-base.code",
      "position": [
        200,
        440
      ],
      "parameters": {},
      "typeVersion": 2
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "16dcec05-5d2a-4f1d-b59c-c2f89dc0ee13",
  "connections": {
    "Daily Trigger": {
      "main": [
        [
          {
            "node": "Send Mood Prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Retrieve Database": {
      "main": [
        [
          {
            "node": "Add row into Notion",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Retrieve Database1": {
      "main": [
        [
          {
            "node": "Add row into Notion1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Retrieve City Weather": {
      "main": [
        [
          {
            "node": "Retrieve Database",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Retrieve City Weather1": {
      "main": [
        [
          {
            "node": "Retrieve Database1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait for Mood Response": {
      "main": [
        [
          {
            "node": "Get Weather using city name",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait for Mood Response1": {
      "main": [
        [
          {
            "node": "Get Weather using lat/lon",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Weather using lat/lon": {
      "main": [
        [
          {
            "node": "Retrieve City Weather1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Weather using city name": {
      "main": [
        [
          {
            "node": "Retrieve City Weather",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 其他

需要付费吗?

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

工作流信息
难度等级
高级
节点数量19
分类1
节点类型7
难度说明

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

外部链接
在 n8n.io 查看

分享此工作流