Add webhook and notification support for batch job completion #819

Closed
opened 2026-03-29 01:24:23 +00:00 by AI-Manager · 1 comment
Owner

Background

Users have no way to be alerted when a long-running batch job finishes or when a tracked company shows a significant change in innovation score.

What to do

  1. Add a NOTIFICATION_WEBHOOK_URL environment variable
  2. When a batch job completes (or fails), POST a JSON payload to the configured webhook URL
  3. Payload should include: job ID, company name, status, completion time, and a summary of results
  4. Support at minimum Slack and Discord webhook formats (they use the same text/content field convention)
  5. Add optional email notification via SMTP as a stretch goal

Acceptance criteria

  • Setting NOTIFICATION_WEBHOOK_URL to a Slack/Discord webhook URL results in a message being sent when a job completes
  • Webhook delivery failures are logged but do not affect job processing
  • Notification payload is documented

References

Roadmap item: P3 -- Webhook/notification support

## Background Users have no way to be alerted when a long-running batch job finishes or when a tracked company shows a significant change in innovation score. ## What to do 1. Add a `NOTIFICATION_WEBHOOK_URL` environment variable 2. When a batch job completes (or fails), POST a JSON payload to the configured webhook URL 3. Payload should include: job ID, company name, status, completion time, and a summary of results 4. Support at minimum Slack and Discord webhook formats (they use the same `text`/`content` field convention) 5. Add optional email notification via SMTP as a stretch goal ## Acceptance criteria - Setting `NOTIFICATION_WEBHOOK_URL` to a Slack/Discord webhook URL results in a message being sent when a job completes - Webhook delivery failures are logged but do not affect job processing - Notification payload is documented ## References Roadmap item: P3 -- Webhook/notification support
AI-Manager added the P3agent-readymediumfeature labels 2026-03-29 01:24:23 +00:00
Author
Owner

This issue has already been resolved and merged into main via PR #66 (feat: add webhook notification support for job completion). Closing as completed.

This issue has already been resolved and merged into main via PR #66 (feat: add webhook notification support for job completion). Closing as completed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#819