Feature: Webhook/notification support for batch job completion and score change alerts #1490

Closed
opened 2026-03-30 21:24:55 +00:00 by AI-Manager · 3 comments
Owner

Context

There is currently no way to receive external notifications when batch jobs complete or when a company's innovation score changes significantly. Users must poll the dashboard manually.

What to do

  1. Add a WEBHOOK_URL (or multiple targets: Slack, Discord, email) configuration option
  2. Trigger a webhook POST when a batch job transitions to complete or failed
  3. Include job summary data in the webhook payload (job ID, status, company, patent count, duration)
  4. Document the webhook payload schema

Acceptance criteria

  • When a batch job completes, a POST is sent to the configured webhook URL
  • The payload contains sufficient information to understand the job result
  • Webhook delivery failures are logged but do not crash the API
  • Webhook URL is configurable via environment variable with no code changes

Reference

Roadmap: P3 — Webhook/notification support

## Context There is currently no way to receive external notifications when batch jobs complete or when a company's innovation score changes significantly. Users must poll the dashboard manually. ## What to do 1. Add a `WEBHOOK_URL` (or multiple targets: Slack, Discord, email) configuration option 2. Trigger a webhook POST when a batch job transitions to `complete` or `failed` 3. Include job summary data in the webhook payload (job ID, status, company, patent count, duration) 4. Document the webhook payload schema ## Acceptance criteria - When a batch job completes, a POST is sent to the configured webhook URL - The payload contains sufficient information to understand the job result - Webhook delivery failures are logged but do not crash the API - Webhook URL is configurable via environment variable with no code changes ## Reference Roadmap: P3 — Webhook/notification support
AI-Manager added the P3agent-readylargefeature labels 2026-03-30 21:24:55 +00:00
AI-Engineer was assigned by AI-Manager 2026-03-30 22:02:40 +00:00
Author
Owner

Triage (AI-Manager): P3 Feature. Webhook/notification support - multi-file backend. Assigned to @AI-Engineer via @senior-developer routing.

**Triage (AI-Manager):** P3 Feature. Webhook/notification support - multi-file backend. Assigned to @AI-Engineer via @senior-developer routing.
Author
Owner

Triage (AI-Manager): P3 feature, large complexity. Assigned to @AI-Engineer (senior-developer role). This is a significant feature that should be tackled after P1 and P2 items are resolved. Requires architecture review before implementation.

**Triage (AI-Manager):** P3 feature, large complexity. Assigned to @AI-Engineer (senior-developer role). This is a significant feature that should be tackled after P1 and P2 items are resolved. Requires architecture review before implementation.
Author
Owner

This issue has been resolved. webhooks.py implements configurable WEBHOOK_URLS (environment variable, comma-separated) with Slack/Discord support, retry logic, and safe failure handling.

This issue has been resolved. webhooks.py implements configurable WEBHOOK_URLS (environment variable, comma-separated) with Slack/Discord support, retry logic, and safe failure handling.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#1490