Skip to main content
Blog/Integration Guide

n8n (HTTP Trigger)

··5 min read

Receive Lection webhooks with an HTTP Trigger node and fan out to workflows.

Setup Steps

  1. Create a workflow → add HTTP Trigger node (method POST).
  2. Activate the workflow and copy the production URL (the test URL only listens while the editor is open), then paste it into Lection’s "n8n" delivery URL.
  3. Run a test scrape to populate sample data in the node.
  4. Add a Split Out node on body.dataset.records to turn each row into an item, then write them to your destination.
  5. Activate the workflow; Lection will POST for every completed scheduled scrape.

Mapping Tips

  • HTTP Trigger node exposes the JSON in {{$json}}; dataset.records is the array to loop.
  • Use download.url for a file link; status is in run.status.

Payload Highlights

  • event: scheduled_scrape.completed; dataset.rowCount + dataset.records payload.

Test Checklist

  • Set webhook URL and optional secret in Lection.
  • Run a scheduled scrape to capture sample data.
  • Confirm dataset.records and download.url arrive in your tool.
  • Publish/activate the workflow so production runs stay wired.

Ready to supercharge your research?

Join thousands of researchers using Lection to capture and organize the web. It's free to get started.