{
  "name": "Lightroom cloud to Instagram auto poster (AI captions)",
  "nodes": [
    {
      "id": "c5c56fa4-6410-45eb-bc41-c61363f538e5",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -672,
        48
      ],
      "parameters": {
        "width": 464,
        "height": 576,
        "content": "### Instagram Auto-Publisher (Lightroom → IG)\n\n**Purpose**  \nPick the next unposted photo from **Photos**, build a caption from **ALT + EXIF**, publish via **Instagram Graph API**, then mark it as pos"
      }
    },
    {
      "id": "1ca855b3-27be-4a12-8c76-dffaef453109",
      "name": "Get row(s)",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        -448,
        912
      ]
    },
    {
      "id": "4f8f87b3-7105-4799-96b7-1efcea307fba",
      "name": "Sort",
      "type": "n8n-nodes-base.sort",
      "position": [
        -224,
        912
      ]
    },
    {
      "id": "e19763a7-714c-4de8-8259-544313f3eb95",
      "name": "Limit",
      "type": "n8n-nodes-base.limit",
      "position": [
        0,
        912
      ]
    },
    {
      "id": "92b9bb0a-98eb-4e47-94d9-51ff3ed79af5",
      "name": "Message a model",
      "type": "@n8n/n8n-nodes-langchain.anthropic",
      "position": [
        432,
        912
      ]
    },
    {
      "id": "be2362e2-965e-4dcb-a6fe-f7ef89b8937a",
      "name": "Publish image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1824,
        912
      ]
    },
    {
      "id": "4fe1ae6a-ef49-4b3e-9007-fcf0c4b3f279",
      "name": "Create container",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1616,
        912
      ]
    },
    {
      "id": "7ed0076c-bd55-438e-97ed-6ff81c93a29f",
      "name": "Get instagram id",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1328,
        912
      ]
    },
    {
      "id": "3a5068e2-e585-49c8-91e2-f5d0cb69e087",
      "name": "get access_token",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1136,
        912
      ]
    },
    {
      "id": "282ad7a6-f6d7-4bc7-9440-cba5f63f2631",
      "name": "Update row(s)",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        2240,
        912
      ]
    },
    {
      "id": "eae2db29-c107-4502-8f19-103d0f02c64f",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -656,
        912
      ]
    },
    {
      "id": "f414301b-84f8-46b0-bb60-8f3dd5622484",
      "name": "Params",
      "type": "n8n-nodes-base.set",
      "position": [
        944,
        912
      ]
    },
    {
      "id": "fa55bb79-7bb0-44ca-bdfc-665adf10f820",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -496,
        752
      ],
      "parameters": {
        "width": 672,
        "height": 416,
        "content": "## STEP1 - Select the next image to publish"
      }
    },
    {
      "id": "564e8e3c-41eb-451e-9e18-bc9284baee08",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        192,
        752
      ],
      "parameters": {
        "width": 672,
        "height": 416,
        "content": "## STEP2 - Generate the description with AI"
      }
    },
    {
      "id": "a3e90617-d77e-46e0-84d3-eecd3bf5d1d5",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        880,
        752
      ],
      "parameters": {
        "width": 608,
        "height": 416,
        "content": "## STEP3 - Instagram auth\n"
      }
    },
    {
      "id": "362685f6-2692-47a6-a178-66d084640f74",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1504,
        752
      ],
      "parameters": {
        "width": 528,
        "height": 416,
        "content": "## STEP4 - Publish the image\n\n"
      }
    },
    {
      "id": "2055e870-14e5-436d-a674-720a9197b520",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2048,
        752
      ],
      "parameters": {
        "width": 528,
        "height": 416,
        "content": "## STEP5 - Update Data Table\n\n"
      }
    }
  ],
  "connections": {
    "Sort": {
      "main": [
        [
          {
            "node": "Limit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Limit": {
      "main": [
        [
          {
            "node": "Message a model",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Params": {
      "main": [
        [
          {
            "node": "get access_token",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s)": {
      "main": [
        [
          {
            "node": "Sort",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Publish image": {
      "main": [
        [
          {
            "node": "Update row(s)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Message a model": {
      "main": [
        [
          {
            "node": "Params",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create container": {
      "main": [
        [
          {
            "node": "Publish image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get instagram id": {
      "main": [
        [
          {
            "node": "Create container",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get row(s)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "get access_token": {
      "main": [
        [
          {
            "node": "Get instagram id",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}