Skip to main content

Tutorials / Webhook Integrations / Discord Webhook

Discord Webhook

Post a simple message to a Discord channel when a scrape finishes.

Ideal for: Lightweight channel alerts.

Setup Steps

  1. Create a Discord webhook URL in your server/channel.
  2. Paste that URL into Lection’s Webhook URL (integration: Discord or custom).
  3. Run a test scrape; the message includes the summary and download link when available.
  4. Keep the webhook URL private; rotate if it leaks.

Mapping Tips

  • Payload is text-only: summary plus download URL on a new line.
  • For richer embeds, proxy through your own webhook handler and reformat.

Payload highlights

  • POST JSON: { content: "<summary>\n<downloadUrl>" }.
  • Summary uses schedule.name, run.status, dataset.rowCount.

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.