{
  "name": "Monetize your X following with x402 and 1Shot API",
  "nodes": [
    {
      "id": "11dec1d0-79e7-4b81-a5b0-0e6ce638524a",
      "name": "Approve or Decline?",
      "type": "n8n-nodes-base.if",
      "position": [
        1104,
        -64
      ]
    },
    {
      "id": "1b1640b7-8f36-4b61-a814-5956fcd1877f",
      "name": "Forward the URL to a Moderator",
      "type": "n8n-nodes-base.telegram",
      "position": [
        656,
        -64
      ]
    },
    {
      "id": "b657d961-e3e4-44b4-aa5d-9ea6e368a12a",
      "name": "Get Moderator Approval",
      "type": "n8n-nodes-base.telegram",
      "position": [
        880,
        -64
      ]
    },
    {
      "id": "6c660e32-ec43-4a2e-914f-6433b6d91a8a",
      "name": "Retweet the Post",
      "type": "n8n-nodes-base.twitter",
      "position": [
        1392,
        -176
      ]
    },
    {
      "id": "9a90fcd1-d2fb-4c79-917d-6925ebfb106e",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -528,
        -928
      ],
      "parameters": {
        "width": 712,
        "height": 1036,
        "content": "# Get Paid to Promote!\n\nWith the [x402 Webhook Gateway](https://youtu.be/SzuSpIWLy5k?si=inDuPG06x5SCetW2), you can quickly set up an n8n workflow to allow X users to pay your for likes & reposts. \n\n##"
      }
    },
    {
      "id": "75a8f239-ce2e-4b0d-a006-99a6bbb146ae",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1296,
        -432
      ],
      "parameters": {
        "width": 592,
        "height": 416,
        "content": "## X V2 API\n\nThe X V2 API lets you like, repost, and DM from your X account. It requires a [developer account](https://docs.x.com/x-api/introduction) in order to authenticate the n8n node against X. \n"
      }
    },
    {
      "id": "a22c5d0c-e825-4ea6-b60c-9000957cd2c8",
      "name": "Code in JavaScript",
      "type": "n8n-nodes-base.code",
      "position": [
        224,
        -48
      ]
    },
    {
      "id": "3dce7d15-1595-401b-a1f4-be67616bbe9f",
      "name": "x402 Webhook Gateway",
      "type": "n8n-nodes-1shot.oneShotWebhook",
      "position": [
        0,
        -48
      ]
    },
    {
      "id": "eb4d965e-e1ed-4083-b77e-eea84ff01730",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        624,
        -304
      ],
      "parameters": {
        "width": 656,
        "height": 416,
        "content": "## Human in the Loop Moderation\n\nN8n's X node doesn't have a way to read posts from X, so in this workflow we'll send the URL to a moderation channel where you or your assistants can quickly review th"
      }
    },
    {
      "id": "eb0dee71-7ab1-4679-a2ce-a6f51c4f88c3",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        432,
        -48
      ]
    },
    {
      "id": "4e2fa88e-852a-4add-8c72-35cbd36680ba",
      "name": "Refund for Invalid URL",
      "type": "n8n-nodes-1shot.oneShot",
      "position": [
        704,
        160
      ]
    },
    {
      "id": "8356c67b-cea8-4b47-9939-8e0547950a07",
      "name": "Refund for Denied Promotion",
      "type": "n8n-nodes-1shot.oneShot",
      "position": [
        1312,
        160
      ]
    },
    {
      "id": "db029e55-3c5c-4be0-a69d-28914fbb2aeb",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        624,
        128
      ],
      "parameters": {
        "width": 976,
        "height": 352,
        "content": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n## Refund the Caller\n\nSince the x402 Gateway will block until the caller's payment settles, we'll refund the payment amount back to the `from` address if either the repost URL is bad or "
      }
    },
    {
      "id": "577f9026-091a-476e-8c93-c7d695440568",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        192,
        -240
      ],
      "parameters": {
        "width": 416,
        "height": 352,
        "content": "## X Post Validation\n\nThis section ensures that the caller has provided a valid link to a post on X. "
      }
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Forward the URL to a Moderator",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Refund for Invalid URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Retweet the Post": {
      "main": [
        []
      ]
    },
    "Code in JavaScript": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Approve or Decline?": {
      "main": [
        [
          {
            "node": "Retweet the Post",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Refund for Denied Promotion",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "x402 Webhook Gateway": {
      "main": [
        [
          {
            "node": "Code in JavaScript",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Moderator Approval": {
      "main": [
        [
          {
            "node": "Approve or Decline?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Refund for Denied Promotion": {
      "main": [
        []
      ]
    },
    "Forward the URL to a Moderator": {
      "main": [
        [
          {
            "node": "Get Moderator Approval",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}