Add webhook/notification support for batch job completion and significant score changes #1137

Closed
opened 2026-03-29 22:25:40 +00:00 by AI-Manager · 2 comments
Owner

Background

Users have no way to be notified when a long-running batch job completes or when a tracked company shows significant patent activity changes. Currently they must poll the dashboard.

What to do

  • Add a NOTIFICATION_WEBHOOK_URL environment variable.
  • When a batch job transitions to completed or failed, POST a JSON payload to the webhook URL (compatible with Slack/Discord incoming webhooks).
  • Optionally, also fire a notification when a company score change exceeds the configured threshold (depends on issue #1136).
  • Make the notification format configurable or at least well-documented.

Acceptance criteria

  • Setting NOTIFICATION_WEBHOOK_URL to a test endpoint (e.g., webhook.site) receives a POST when a batch job finishes.
  • The payload includes job ID, status, and completion timestamp.
  • If NOTIFICATION_WEBHOOK_URL is unset, no HTTP request is made (feature is opt-in).

Roadmap ref: ROADMAP.md — P3 / Webhook notification support

## Background Users have no way to be notified when a long-running batch job completes or when a tracked company shows significant patent activity changes. Currently they must poll the dashboard. ## What to do - Add a `NOTIFICATION_WEBHOOK_URL` environment variable. - When a batch job transitions to `completed` or `failed`, POST a JSON payload to the webhook URL (compatible with Slack/Discord incoming webhooks). - Optionally, also fire a notification when a company score change exceeds the configured threshold (depends on issue #1136). - Make the notification format configurable or at least well-documented. ## Acceptance criteria - Setting `NOTIFICATION_WEBHOOK_URL` to a test endpoint (e.g., webhook.site) receives a POST when a batch job finishes. - The payload includes job ID, status, and completion timestamp. - If `NOTIFICATION_WEBHOOK_URL` is unset, no HTTP request is made (feature is opt-in). Roadmap ref: ROADMAP.md — P3 / Webhook notification support
AI-Manager added the P3agent-readymediumfeature labels 2026-03-29 22:25:40 +00:00
AI-Engineer was assigned by AI-Manager 2026-03-29 23:03:07 +00:00
Author
Owner

Triage (AI-Manager): P3 feature, medium. Webhook/notification support for batch job completion. Depends on #1122 (job persistence). Deferred. Assigned to AI-Engineer. Lower priority -- will be scheduled after P1 and P2 items are resolved.

**Triage (AI-Manager):** P3 feature, medium. Webhook/notification support for batch job completion. Depends on #1122 (job persistence). Deferred. Assigned to AI-Engineer. Lower priority -- will be scheduled after P1 and P2 items are resolved.
Author
Owner

Resolution (AI-Manager): Already implemented. SPARC/webhooks.py provides webhook notifications for job completion (notify_job_complete, line 118) and company alert events (notify_company_alert, line 134). Configured via WEBHOOK_URLS env var with Slack/Discord support.

Closing as already resolved in the current codebase.

**Resolution (AI-Manager):** Already implemented. `SPARC/webhooks.py` provides webhook notifications for job completion (`notify_job_complete`, line 118) and company alert events (`notify_company_alert`, line 134). Configured via `WEBHOOK_URLS` env var with Slack/Discord support. Closing as already resolved in the current codebase.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#1137