{
  "name": "Automatically send a direct message (DM) to new followers on Bluesky using Baserow",
  "nodes": [
    {
      "id": "0c391374-282e-4c6f-9c73-3fded8a9b411",
      "name": "Create Bluesky Session",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -2160,
        540
      ]
    },
    {
      "id": "4affbd7c-c4b0-466d-8431-7c8388a340d3",
      "name": "Run Daily at 9 AM",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -2640,
        540
      ]
    },
    {
      "id": "6cf70c45-b0b3-4621-9253-62dd6da61c13",
      "name": "Set Bluesky Credentials",
      "type": "n8n-nodes-base.set",
      "position": [
        -2380,
        540
      ]
    },
    {
      "id": "ea8ac8ce-167a-4931-a6dd-4d4a16f27e36",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2440,
        380
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "621704b0-1a65-4c12-82f9-16bd002f3ccf",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1960,
        380
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "94667269-8229-4f60-88a5-2b8ca0fc67cc",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1480,
        380
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "22d8220c-8dc8-4251-a49f-2e55708beb60",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2700,
        380
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "ecbd5fa3-ebcb-4fe1-8b44-d2f5edf77acc",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2440,
        740
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "f1390527-06d9-49aa-8cd9-1b47d5c1c17c",
      "name": "Extract Followers Array",
      "type": "n8n-nodes-base.code",
      "position": [
        -1680,
        540
      ]
    },
    {
      "id": "694fb919-12e3-421d-99e9-c07c9b3ca131",
      "name": "Create Follower Record",
      "type": "n8n-nodes-base.baserow",
      "position": [
        -760,
        540
      ]
    },
    {
      "id": "c28ade9c-6d2f-48ff-8676-d42a3c7dc47d",
      "name": "Get Follower Record",
      "type": "n8n-nodes-base.baserow",
      "position": [
        -1200,
        540
      ]
    },
    {
      "id": "69412b2b-eb8a-46a3-8160-24d2cbc3ed56",
      "name": "If Follower Exists",
      "type": "n8n-nodes-base.if",
      "position": [
        -980,
        540
      ]
    },
    {
      "id": "7bbaa38e-1cb5-460f-a3eb-d3fc8050ecab",
      "name": "Limit",
      "type": "n8n-nodes-base.limit",
      "position": [
        -2380,
        800
      ]
    },
    {
      "id": "d718160e-13c7-4622-a791-dba1a8ea792f",
      "name": "Get All New Followers",
      "type": "n8n-nodes-base.baserow",
      "position": [
        -2200,
        800
      ]
    },
    {
      "id": "ac37c82f-427f-4427-89ba-ea114b89ac16",
      "name": "Send Welcome Message",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -960,
        900
      ]
    },
    {
      "id": "a896bb9b-3ee7-4fa8-b19a-0bf3ae152903",
      "name": "Create Welcome Message",
      "type": "n8n-nodes-base.code",
      "position": [
        -1180,
        900
      ]
    },
    {
      "id": "07ac29b7-2e4d-4558-807c-9e82e54c1eb6",
      "name": "Loop New Followers",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -2000,
        800
      ]
    },
    {
      "id": "bddf0999-dbbe-4c73-86be-b1f000504f15",
      "name": "Loop Followers",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -1420,
        560
      ]
    },
    {
      "id": "ae2e4ccc-eb1f-49e7-9e15-a986c6525951",
      "name": "END OF WORKFLOW",
      "type": "n8n-nodes-base.noOp",
      "position": [
        -1720,
        1020
      ]
    },
    {
      "id": "712b6576-256d-4707-89c9-68600455c4e3",
      "name": "Double Check If Welcome Has Already Been Sent",
      "type": "n8n-nodes-base.if",
      "position": [
        -1420,
        800
      ]
    },
    {
      "id": "b602f44c-d5d9-4ee3-961d-9ff5d1427198",
      "name": "Wait Follower Loop",
      "type": "n8n-nodes-base.wait",
      "position": [
        -540,
        540
      ]
    },
    {
      "id": "811c6f0b-bab7-41f8-bda1-ab2669f3fae5",
      "name": "Wait New Follower Loop",
      "type": "n8n-nodes-base.wait",
      "position": [
        -540,
        800
      ]
    },
    {
      "id": "ea1a5fb3-1283-4d9f-a9a7-d33dc1e74f39",
      "name": "Get Firstname",
      "type": "n8n-nodes-base.code",
      "position": [
        -1800,
        800
      ]
    },
    {
      "id": "ec5b50ab-97be-49e7-b3c4-5261cc8a8b10",
      "name": "Update Follower Record to SentWelcome = TRUE",
      "type": "n8n-nodes-base.baserow",
      "position": [
        -760,
        800
      ]
    },
    {
      "id": "f8e3317f-8e2c-469a-a438-a46bc71a0b4d",
      "name": "Get Latest Followers",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1880,
        540
      ]
    },
    {
      "id": "77a98423-9164-4482-9c8c-9c1c142d7956",
      "name": "Get ConvoId",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1620,
        800
      ]
    }
  ],
  "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
          }
        ]
      ]
    }
  }
}