{
  "name": "Form-based X/Twitter poster",
  "nodes": [
    {
      "id": "02b20189-94ce-4608-9c8d-a29a9d97db32",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -340,
        -140
      ]
    },
    {
      "id": "750c5cb0-16fd-463f-ad6f-8558fbf51360",
      "name": "Extract Media Details",
      "type": "n8n-nodes-base.code",
      "position": [
        -120,
        -140
      ]
    },
    {
      "id": "2be2cb40-2170-4388-b447-8e282f6ab85c",
      "name": "Upload Media (X)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        320,
        -240
      ]
    },
    {
      "id": "4c947ff2-3753-41a0-8ea7-ffa38bc159f2",
      "name": "X",
      "type": "n8n-nodes-base.twitter",
      "position": [
        540,
        -240
      ]
    },
    {
      "id": "d4706df1-dce1-4005-8e82-e4cca57265f7",
      "name": "If Image Exists",
      "type": "n8n-nodes-base.if",
      "position": [
        100,
        -140
      ]
    },
    {
      "id": "4f53c3ab-8ec5-437f-8a94-93584590be9a",
      "name": "X1",
      "type": "n8n-nodes-base.twitter",
      "position": [
        540,
        -40
      ]
    },
    {
      "id": "4ca9c2b4-840a-4aa6-9b01-0e8f34eb1165",
      "name": "End Form ",
      "type": "n8n-nodes-base.form",
      "position": [
        760,
        -140
      ]
    },
    {
      "id": "4b443e27-94fe-4c37-a851-9080ef799721",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        720,
        -280
      ],
      "parameters": {
        "width": 300,
        "height": 120,
        "content": "## Customize Confirmation Message \nDisplays thank-you message post-submission."
      }
    }
  ],
  "connections": {
    "X": {
      "main": [
        [
          {
            "node": "End Form ",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "X1": {
      "main": [
        [
          {
            "node": "End Form ",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Image Exists": {
      "main": [
        [
          {
            "node": "Upload Media (X)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "X1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Media (X)": {
      "main": [
        [
          {
            "node": "X",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "Extract Media Details",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Media Details": {
      "main": [
        [
          {
            "node": "If Image Exists",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}