{
  "name": "Send Lightning Payment",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "send-payment",
        "responseMode": "responseNode",
        "options": {}
      },
      "id": "webhook-trigger",
      "name": "Webhook Trigger",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 1,
      "position": [
        240,
        300
      ]
    },
    {
      "parameters": {
        "operation": "send",
        "amount": "={{ $json.amount }}",
        "recipient": "={{ $json.recipient }}",
        "description": "={{ $json.description || 'Payment via n8n' }}"
      },
      "id": "nwc-send",
      "name": "Send Satoshis",
      "type": "n8n-nodes-nwc.nwc",
      "typeVersion": 1,
      "position": [
        460,
        300
      ],
      "credentials": {
        "nwcUrl": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "respondWith": "json",
        "responseBody": "={{ { success: $json.success, payment_hash: $json.payment_hash, amount_sent: $json.amount_sent } }}",
        "options": {}
      },
      "id": "respond",
      "name": "Respond to Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1,
      "position": [
        680,
        300
      ]
    }
  ],
  "connections": {
    "Webhook Trigger": {
      "main": [
        [
          {
            "node": "Send Satoshis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Satoshis": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {},
  "versionId": "1"
}