Repository navigation
Add optional n8n backend for Teams alert reports and replies - #4
Draft
JeffPengCoder wants to merge 9 commits into
Draft
JeffPengCoder wants to merge 9 commits into
JeffPengCoder wants to merge 9 commits into
Conversation
…delivery Signed-off-by: Jeff Peng <jepeng@nvidia.com>
Signed-off-by: Jeff Peng <jepeng@nvidia.com>
Signed-off-by: Jeff Peng <jepeng@nvidia.com>
Signed-off-by: Jeff Peng <jepeng@nvidia.com>
Signed-off-by: Jeff Peng <jepeng@nvidia.com>
Signed-off-by: Jeff Peng <jepeng@nvidia.com>
Signed-off-by: Jeff Peng <jepeng@nvidia.com>
Signed-off-by: Jeff Peng <jepeng@nvidia.com>
Signed-off-by: Jeff Peng <jepeng@nvidia.com>
JeffPengCoder
force-pushed
the
feat/background-alert-investigation
branch
from
November 19, 2026 06:10
fa0ccc8 to
8a33f32
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add an optional n8n Teams backend to the alert-automation service. When selected, completed alert reports go to one fixed Teams DM, and the recipient's ordinary follow-up messages start a MOSAIC Agent turn with the complete report context. The native backend remains the default, with its configuration, credentials and persistent state retained for switching back.
Spark initiates HTTPS requests to two authenticated n8n workflows: send a message, and read replies at a configurable interval (30 seconds by default). n8n manages the approved Teams OAuth credential; MOSAIC retains investigation, conversation history, full-report context and durable deduplication. The workflow verifies the signed-in sender GUID and fixed recipient before creating or using their one-to-one chat. It neither sends n8n callbacks into Spark nor requires a Microsoft Teams Trigger callback.
The n8n backend uses a separate state directory and a View-only automation session. Complete messages are chunked without truncation, Graph message receipts are retained, and ambiguous outgoing sends are preserved for reconciliation instead of automatically retried. The generator exports two inactive workflows without credential values; approved OAuth and Header Auth credentials must be selected before publishing.
This is a stacked, code-only draft against the background-alert branch used by upstream #89. The base transport implementation and existing native deployment are retained separately. Enterprise n8n OAuth and actual Teams DM acceptance remain pending; local simulation is not reported as a real Teams delivery.
Validation
git diff --checkpassed.Checklist
Upstream submission
Submitted as NVIDIA/AI-Factory-Operations-Agent #96. The upstream branch includes current
mainand resolves the installation-guide and generated-documentation conflicts. This draft retains the n8n-only comparison against the parent NVIDIA#89 branch.