Skip to main content
Lection Logolection
Blog/Integration Guide

n8n (HTTP Trigger)

Lection Team5 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. Copy the test URL and paste it into Lection’s "n8n" delivery URL.
  3. Run a test scrape to populate sample data in the node.
  4. Add a Split In Batches or Item Lists loop over dataset.records to insert rows into 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.

Learn More