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
- Create a Discord webhook URL in your server/channel.
- Paste that URL into Lection’s Webhook URL (integration: Discord or custom).
- Run a test scrape; the message includes the summary and download link when available.
- 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.
Helpful links
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.