8
n8n 中文网amn8n.com

n8n_slack_daily_motivation_bot_v140525

中级

这是一个Other, AI领域的自动化工作流,包含 6 个节点。主要使用 Code, Slack, HttpRequest, ScheduleTrigger 等节点,结合人工智能技术实现智能自动化。 向Slack发送励志名言

前置要求
  • Slack Bot Token 或 Webhook URL
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "fFyWFtNDFQQQo7gu",
  "meta": {
    "instanceId": "0c91cd2a3133931f13781d4dcd6db321515413596b36e6bddb494176726841a7"
  },
  "name": "n8n_slack_daily_motivation_bot_v140525",
  "tags": [
    {
      "id": "a6b41kNUtX65uzIo",
      "name": "tuguidragos.com",
      "createdAt": "2025-05-14T18:52:56.055Z",
      "updatedAt": "2025-05-14T18:52:56.055Z"
    }
  ],
  "nodes": [
    {
      "id": "6f05aa68-2add-4d8a-97ef-9343c4761ac7",
      "name": "发送到Slack频道",
      "type": "n8n-nodes-base.slack",
      "position": [
        840,
        180
      ],
      "webhookId": "bda484db-c362-4be8-841c-043d6961249e",
      "parameters": {
        "text": "={{$json[\"text\"]}}",
        "select": "channel",
        "channelId": {
          "__rl": true,
          "mode": "list",
          "value": ""
        },
        "otherOptions": {
          "includeLinkToWorkflow": false
        }
      },
      "typeVersion": 2.3
    },
    {
      "id": "59028779-1573-40a4-8ca8-c055ba9d9f0f",
      "name": "格式化Slack消息",
      "type": "n8n-nodes-base.code",
      "position": [
        620,
        180
      ],
      "parameters": {
        "jsCode": "return [\n  {\n    json: {\n      text: `${$json[\"q\"]} — ${$json[\"a\"]}`\n    }\n  }\n];"
      },
      "typeVersion": 2
    },
    {
      "id": "398cfe84-81b4-46c4-8345-2444f8ccf75b",
      "name": "获取每日名言(ZenQuotes API)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        380,
        180
      ],
      "parameters": {
        "url": "https://zenquotes.io/api/random",
        "options": {}
      },
      "typeVersion": 4.2
    },
    {
      "id": "bcb35d99-d8ab-4687-a93e-b0e149d52323",
      "name": "08:00 – 清晨激励",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        0,
        0
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "triggerAtHour": 8,
              "triggerAtMinute": 8
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "8e087127-33c5-4d7b-931d-518e659521f8",
      "name": "13:00 – 午间提醒",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        0,
        180
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "triggerAtHour": 13
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "9f072fdd-902e-4ee0-b773-ddbf15550298",
      "name": "18:00 – 晚间动力",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        0,
        360
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "triggerAtHour": 18
            }
          ]
        }
      },
      "typeVersion": 1.2
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "a1bcdb05-e669-4a02-b86f-c82e0848db13",
  "connections": {
    "Format Slack Message": {
      "main": [
        [
          {
            "node": "Send to Slack Channel",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "08:00 – Morning Boost": {
      "main": [
        [
          {
            "node": "Fetch Daily Quote (ZenQuotes API)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "13:00 – Midday Reminder": {
      "main": [
        [
          {
            "node": "Fetch Daily Quote (ZenQuotes API)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "18:00 – Evening Motivation": {
      "main": [
        [
          {
            "node": "Fetch Daily Quote (ZenQuotes API)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Daily Quote (ZenQuotes API)": {
      "main": [
        [
          {
            "node": "Format Slack Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 其他, 人工智能

需要付费吗?

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

工作流信息
难度等级
中级
节点数量6
分类2
节点类型4
难度说明

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

作者
Țugui Dragoș

Țugui Dragoș

@tuguidragos

I create no-code workflows that feel human, think smart, and close leads automatically.

外部链接
在 n8n.io 查看

分享此工作流