8
n8n 中文网amn8n.com

自动向 Bluesky 上的新关注者发送私信 (DM)

高级

这是一个Marketing领域的自动化工作流,包含 26 个节点。主要使用 If, Set, Code, Wait, Limit 等节点。 使用 Baserow 自动向 Bluesky 上的新关注者发送私信 (DM)

前置要求
  • 可能需要目标 API 的认证凭证

分类

工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "iL1BabR20UrKFBSs",
  "meta": {
    "instanceId": "1b1e85a338c6ce950207b3b471d43405c7b292e6b980ee5b66c1a9e5af2a50f8"
  },
  "name": "自动向 Bluesky 上的新关注者发送私信 (DM)",
  "tags": [
    {
      "id": "ScSW8zXj1FpGaft9",
      "name": "n8n Template",
      "createdAt": "2025-01-16T04:46:41.376Z",
      "updatedAt": "2025-01-16T04:46:41.376Z"
    },
    {
      "id": "f3JGorUk16BX0hZI",
      "name": "Bluesky",
      "createdAt": "2025-01-19T09:37:40.989Z",
      "updatedAt": "2025-01-19T09:37:40.989Z"
    },
    {
      "id": "hTHZamkzaTBmF3yo",
      "name": "Template",
      "createdAt": "2025-01-16T04:45:44.377Z",
      "updatedAt": "2025-01-16T04:45:44.377Z"
    }
  ],
  "nodes": [
    {
      "id": "0c391374-282e-4c6f-9c73-3fded8a9b411",
      "name": "创建 Bluesky 会话",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -2160,
        540
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "4affbd7c-c4b0-466d-8431-7c8388a340d3",
      "name": "每天上午 9 点运行",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -2640,
        540
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "6cf70c45-b0b3-4621-9253-62dd6da61c13",
      "name": "设置 Bluesky 凭据",
      "type": "n8n-nodes-base.set",
      "position": [
        -2380,
        540
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "ea8ac8ce-167a-4931-a6dd-4d4a16f27e36",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2440,
        380
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "621704b0-1a65-4c12-82f9-16bd002f3ccf",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1960,
        380
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "94667269-8229-4f60-88a5-2b8ca0fc67cc",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1480,
        380
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "22d8220c-8dc8-4251-a49f-2e55708beb60",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2700,
        380
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "ecbd5fa3-ebcb-4fe1-8b44-d2f5edf77acc",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2440,
        740
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "f1390527-06d9-49aa-8cd9-1b47d5c1c17c",
      "name": "提取关注者数组",
      "type": "n8n-nodes-base.code",
      "position": [
        -1680,
        540
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "694fb919-12e3-421d-99e9-c07c9b3ca131",
      "name": "创建关注者记录",
      "type": "n8n-nodes-base.baserow",
      "position": [
        -760,
        540
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "c28ade9c-6d2f-48ff-8676-d42a3c7dc47d",
      "name": "获取关注者记录",
      "type": "n8n-nodes-base.baserow",
      "position": [
        -1200,
        540
      ],
      "parameters": {},
      "typeVersion": 1,
      "alwaysOutputData": true
    },
    {
      "id": "69412b2b-eb8a-46a3-8160-24d2cbc3ed56",
      "name": "如果关注者存在",
      "type": "n8n-nodes-base.if",
      "position": [
        -980,
        540
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "7bbaa38e-1cb5-460f-a3eb-d3fc8050ecab",
      "name": "限制",
      "type": "n8n-nodes-base.limit",
      "position": [
        -2380,
        800
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "d718160e-13c7-4622-a791-dba1a8ea792f",
      "name": "获取所有新关注者",
      "type": "n8n-nodes-base.baserow",
      "position": [
        -2200,
        800
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "ac37c82f-427f-4427-89ba-ea114b89ac16",
      "name": "发送欢迎消息",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -960,
        900
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "a896bb9b-3ee7-4fa8-b19a-0bf3ae152903",
      "name": "创建欢迎消息",
      "type": "n8n-nodes-base.code",
      "position": [
        -1180,
        900
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "07ac29b7-2e4d-4558-807c-9e82e54c1eb6",
      "name": "循环新关注者",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -2000,
        800
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "bddf0999-dbbe-4c73-86be-b1f000504f15",
      "name": "循环关注者",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -1420,
        560
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "ae2e4ccc-eb1f-49e7-9e15-a986c6525951",
      "name": "工作流结束",
      "type": "n8n-nodes-base.noOp",
      "position": [
        -1720,
        1020
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "712b6576-256d-4707-89c9-68600455c4e3",
      "name": "双重检查欢迎消息是否已发送",
      "type": "n8n-nodes-base.if",
      "position": [
        -1420,
        800
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "b602f44c-d5d9-4ee3-961d-9ff5d1427198",
      "name": "等待关注者循环",
      "type": "n8n-nodes-base.wait",
      "position": [
        -540,
        540
      ],
      "webhookId": "417f0e38-4ee7-4de3-9588-eb96bc7eeac1",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "811c6f0b-bab7-41f8-bda1-ab2669f3fae5",
      "name": "等待新关注者循环",
      "type": "n8n-nodes-base.wait",
      "position": [
        -540,
        800
      ],
      "webhookId": "3022fa13-7f7c-4273-80d6-ceb4fbc7fd92",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "ea1a5fb3-1283-4d9f-a9a7-d33dc1e74f39",
      "name": "获取名字",
      "type": "n8n-nodes-base.code",
      "position": [
        -1800,
        800
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "ec5b50ab-97be-49e7-b3c4-5261cc8a8b10",
      "name": "更新关注者记录为 SentWelcome = TRUE",
      "type": "n8n-nodes-base.baserow",
      "position": [
        -760,
        800
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "f8e3317f-8e2c-469a-a438-a46bc71a0b4d",
      "name": "获取最新关注者",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1880,
        540
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "77a98423-9164-4482-9c8c-9c1c142d7956",
      "name": "获取对话 ID",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1620,
        800
      ],
      "parameters": {},
      "typeVersion": 4.2
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "cd72b550-adfc-4286-8fbb-6497cd90be88",
  "connections": {
    "Limit": {
      "main": [
        [
          {
            "node": "Get All New Followers",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get ConvoId": {
      "main": [
        [
          {
            "node": "Double Check If Welcome Has Already Been Sent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Firstname": {
      "main": [
        [
          {
            "node": "Get ConvoId",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Followers": {
      "main": [
        [
          {
            "node": "Limit",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get Follower Record",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Run Daily at 9 AM": {
      "main": [
        [
          {
            "node": "Set Bluesky Credentials",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Follower Exists": {
      "main": [
        [
          {
            "node": "Loop Followers",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Create Follower Record",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop New Followers": {
      "main": [
        [
          {
            "node": "END OF WORKFLOW",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get Firstname",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait Follower Loop": {
      "main": [
        [
          {
            "node": "Loop Followers",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Follower Record": {
      "main": [
        [
          {
            "node": "If Follower Exists",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Latest Followers": {
      "main": [
        [
          {
            "node": "Extract Followers Array",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Welcome Message": {
      "main": [
        [
          {
            "node": "Update Follower Record to SentWelcome = TRUE",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get All New Followers": {
      "main": [
        [
          {
            "node": "Loop New Followers",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Bluesky Session": {
      "main": [
        [
          {
            "node": "Get Latest Followers",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Follower Record": {
      "main": [
        [
          {
            "node": "Wait Follower Loop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Welcome Message": {
      "main": [
        [
          {
            "node": "Send Welcome Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait New Follower Loop": {
      "main": [
        []
      ]
    },
    "Extract Followers Array": {
      "main": [
        [
          {
            "node": "Loop Followers",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Bluesky Credentials": {
      "main": [
        [
          {
            "node": "Create Bluesky Session",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Follower Record to SentWelcome = TRUE": {
      "main": [
        [
          {
            "node": "Wait New Follower Loop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Double Check If Welcome Has Already Been Sent": {
      "main": [
        [
          {
            "node": "Update Follower Record to SentWelcome = TRUE",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Create Welcome Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 营销

需要付费吗?

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

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

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

作者
Gareth B. Davies

Gareth B. Davies

@garethbdavies

API/AI/Automation Coach with 30 years experience helping teams build sustainable, efficient processes and systems. Join my Automate 30 for 30 live cohort and course to reclaim your time.

外部链接
在 n8n.io 查看

分享此工作流