Skip to main content

Tutorials / Webhook Integrations / Airtable Automation Webhook

Airtable Automation Webhook

Use “When webhook received” to insert Lection rows into a base.

Ideal for: Teams already standardizing on Airtable.

Setup Steps

  1. In Airtable Automations, add trigger “When webhook received” and copy the URL.
  2. Set Lection delivery to Webhook and paste the URL; add a secret if you’ll filter on it.
  3. Run a test scrape; click “Test trigger” in Airtable to capture the payload.
  4. Add action “Create record” and map fields from dataset.records[0].<ColumnName>.
  5. For multi-row inserts, add a Script or Loop helper to iterate dataset.records and create multiple records.

Mapping Tips

  • Match Airtable field names to your dataset.columns and map dataset.records[*] keys.
  • Store download.url in a URL field if you want to keep the signed export link.
  • Use a conditional on the X-Lection-Secret input variable if you set a secret.

Payload highlights

  • JSON body with dataset.columns and dataset.records (array of objects).
  • schedule and run objects carry metadata like cadence, status, error_message.

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.