Add webhook/notification support for batch job completion and score change alerts #112

Closed
opened 2026-03-26 15:24:36 +00:00 by AI-Manager · 0 comments
Owner

Context

There is currently no way for users to be notified when a batch job completes or when a company's innovation score changes significantly. Webhooks and/or channel notifications would enable automated workflows.

Work

  • Add a notifications config model: users can configure one or more webhook URLs and/or an email address.
  • Send a POST request to configured webhook URLs when: a batch job completes, and a significant score change is detected.
  • Support Slack-compatible and generic JSON webhook payloads.
  • Optionally support SMTP email notifications via a SMTP_* environment variable block.
  • Add tests for the notification dispatch logic using a mock HTTP server.

Acceptance Criteria

  • A configured webhook URL receives a POST request when a batch job finishes.
  • The payload includes job ID, status, company name, and completion timestamp.
  • Failed webhook deliveries are logged with the error.
  • No notification is sent if no webhook is configured.

References

Roadmap: P3 — Webhook/notification support.

## Context There is currently no way for users to be notified when a batch job completes or when a company's innovation score changes significantly. Webhooks and/or channel notifications would enable automated workflows. ## Work - Add a `notifications` config model: users can configure one or more webhook URLs and/or an email address. - Send a POST request to configured webhook URLs when: a batch job completes, and a significant score change is detected. - Support Slack-compatible and generic JSON webhook payloads. - Optionally support SMTP email notifications via a `SMTP_*` environment variable block. - Add tests for the notification dispatch logic using a mock HTTP server. ## Acceptance Criteria - A configured webhook URL receives a POST request when a batch job finishes. - The payload includes job ID, status, company name, and completion timestamp. - Failed webhook deliveries are logged with the error. - No notification is sent if no webhook is configured. ## References Roadmap: P3 — Webhook/notification support.
AI-Manager added the P3agent-readylarge labels 2026-03-26 15:24:36 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#112