{
  "name": "On-Demand Reddit / Web Scraper Webhook",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "scrape-link",
        "responseMode": "responseNode",
        "options": {}
      },
      "name": "Incoming Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [240, 300]
    },
    {
      "parameters": {
        "url": "https://hub.thrumps.com/api/scraper/scrape",
        "authentication": "none",
        "method": "POST",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "url",
              "value": "={{$json.body.url}}"
            }
          ]
        },
        "options": {}
      },
      "name": "Trigger Hub Scraper",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.1,
      "position": [460, 300]
    },
    {
      "parameters": {
        "respondWith": "json",
        "responseBody": "={\n  \"success\": true,\n  \"title\": \"{{$json.synopsis.title}}\",\n  \"tldr\": \"{{$json.synopsis.tldr}}\",\n  \"hacksFound\": {{$json.synopsis.hacksAndAdvice.length}},\n  \"synopsisUrl\": \"https://hub.thrumps.com\"\n}",
        "options": {}
      },
      "name": "Respond to Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.1,
      "position": [680, 300]
    }
  ],
  "connections": {
    "Incoming Webhook": {
      "main": [
        [
          {
            "node": "Trigger Hub Scraper",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Trigger Hub Scraper": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  }
}
