-
Notifications
You must be signed in to change notification settings - Fork 59
Incident Summary AI Agent #2584
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
This pull request is automatically being deployed by Amplify Hosting (learn more). |
import Tabs from '@theme/Tabs'; | ||
import TabItem from '@theme/TabItem'; | ||
|
||
# Generate contextual incident summaries with AI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@PeyGis it's more "incident updates" rather than "summaries". So maybe the title is "Generate incident updates with AI"
|
||
To enable AI-generated summaries and Slack notifications, update your blueprints as follows: | ||
|
||
1. **Add an `ai_summary` property to the incident blueprint** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe ai_update?
Also, would it make sense to store this info in a separate blueprint to have historical updates? (not a must if we think it complicates)
|
||
- Click `Save` to update the blueprint. | ||
|
||
2. **Add a `slack_channel` property to the service blueprint** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Worth adding a note here that this step is not a must and you can choose to send to a static channel, or decide to store the Slack channel in other hierarchy (for example on the incident itself)
|
||
### Create repository blueprint | ||
|
||
We will create a repository blueprint to store metadata that will be used to enrich incident summaries. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you installed Github, you already have service & repo. why is this still needed?
"pagerdutyService", | ||
"pagerdutyUser", | ||
"pagerdutySchedule", | ||
"pagerdutyEscalationPolicy", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we really need all of this? e.g., escalaltion policy? even pagerduty service? user? running service? Let's keep only what we believe gives the extra benefit
"prompt": "You are an expert incident management AI agent generating clear, contextual summaries for Slack notifications.\nYour task is to produce Slack-compatible summaries for incident updates shared with engineering and on-call teams. Focus on clarity, relevance, and next steps.\n\nYour Slack summary MUST follow this structure and tone:\n\n- 🚨 *Problem:* Brief summary of what changed and why it triggered this update.\n- 📊 *Impact:* Which services or what is affected? Any delivery, uptime, or user-facing issues?\n- 🧠 *Insights / Diagnostics:* Add key technical context from repository metadata: last commit, contributor, vulnerabilities, etc or draw from your technical knowledge on what would have caused this.\n- 🔧 *Action Required:* List next steps for the on-call team. Be specific about what they need to check or resolve.\n\n🔧 **Slack Output Rules**\n* NEVER USER `**bold**` or `[text](url)` — instead use:\n * `*bold*` for emphasis\n * `<https://url.com|Label>` for links\n* Use emoji to indicate sections: `🚨`, `📋`, `👥`, `🔄`\n* Use bullet points (`-`) for clarity\n* Separate sections with one line space (not headers)\n* Never include raw markdown headers like `###` or `---`\n* Your final output **must** look clean when copy-pasted into a Slack message.\n\n## Sample Response Format\n🚨 *Incident Update: CI Pipeline Timeout for ci-runner-template*\n\n*Problem:*\nCI pipeline for `ci-runner-template` timed out, triggering incident reassignment.\n\n*Impact:*\nDeployment or testing processes in the aggregated service may be blocked for this repository. Risk of delayed releases.\n\n*Insights/Diagnostics:*\n- Repository is actively maintained (last push: 2025-07-20 by Maria).\n- Maria is not currently on-call. Assigned engineers: Omri and Tal.\n- 3 known vulnerability exists—could be a contributing factor.\n\n🔧 *Action Required:*\n- Omri and Tal to review Maria's recent commits.\n- Investigate pipeline logs for signs of external failures or internal misconfigurations.\n- Assess whether the known vulnerability is impacting build steps.\n", | ||
"execution_mode": "Automatic", | ||
"conversation_starters": [ | ||
"Generate a status update summary", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume you are expected to provide the incident ID or title for it to be a real use case
So maybe we can update the examples, e.g., "What is the latest update on INC-123?", or "Generate an update for INC-123 , we've found the root cause"
4. Click `Create` to save the automation. | ||
|
||
|
||
### Automation to update incident with AI summary |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about having this step as a self-service action, and letting the agent run it automatically?
why:
- It saves an automation
- You might decide to run the action as a standalone , meaning, you could trigger the agent manually saying "INC-123 we found the root cause, please share the update" and it will run the SSA .
WDYT? relevant?
….com/port-labs/port-docs into PORT-15692-incident-summary-ai-agent
….com/port-labs/port-docs into PORT-15692-incident-summary-ai-agent
|
||
# Generate contextual incident summaries with AI | ||
|
||
This guide demonstrates how to enhance your incident management workflow using Port's AI capabilities. You will learn how to create an AI agent that generates contextual incident summaries and sends slack notification with relevant technical context. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@PeyGis let's try to explain the "pain" here. The pain is that you're so busy managing the incident, that you don't have the time to share the updates with everyone. Learn' how Port AI agent can streamline the updates while you stay focus on the incident resolution
Co-authored-by: Matanga1-2 <matangrady@gmail.com>
Claude finished @PeyGis's task —— View job PR Review: Incident Summary AI AgentI've completed a comprehensive review of this PR according to the CONTRIBUTING.md guidelines. Here's my detailed analysis: Todo List:
✅ Overall AssessmentThis PR successfully adds a comprehensive guide for implementing an AI-powered incident management workflow. The documentation is well-structured and follows most of the contributing guidelines. The changes are focused and add value to the documentation. 📝 Detailed ReviewMain Documentation File (
|
Category | Score | Notes |
---|---|---|
Structure & Organization | 9/10 | Excellent logical flow |
Style Guide Compliance | 6/10 | Several tone and formatting issues |
Technical Accuracy | 8/10 | One critical JSON syntax error |
Accessibility | 7/10 | Missing alt text |
Code Examples | 9/10 | Comprehensive and realistic |
Visual Elements | 8/10 | Good use of images and collapsible sections |
💭 Recommendation
Status:
This is a valuable addition to the documentation that will help users implement AI-powered incident management. However, the critical JSON syntax error and style guide violations should be addressed before merging.
Priority Actions:
- Fix the JSON syntax error (critical)
- Update language to use "We" tone throughout
- Add proper alt text to images
- Replace HTML headers with markdown
Once these issues are resolved, this will be an excellent addition to the guides collection.
Co-authored-by: Matanga1-2 <matangrady@gmail.com>
Claude finished @PeyGis's task —— View job PR Review CompleteReviewing PR #2584 "Incident Summary AI Agent" according to CONTRIBUTING.md guidelines. Todo List:
Review SummaryThis PR adds a comprehensive guide for generating incident updates using AI agents in Port. The implementation is well-structured and follows most documentation standards, but there are several areas for improvement. Issues Found🔴 Critical Issues
|
Claude finished @PeyGis's task —— View job PR Review: Incident Summary AI Agent ✅I have completed a comprehensive review of PR #2584 according to the CONTRIBUTING.md guidelines. Here's my detailed feedback: Todo List:
✅ Overall AssessmentThis PR successfully addresses the feedback from previous reviews and provides a well-structured guide for implementing AI-powered incident management. The documentation follows Port's style guidelines and provides comprehensive technical implementation details. 📋 Detailed Review FindingsDocumentation Quality ✅The main guide
Technical Accuracy ✅
CONTRIBUTING.md Compliance ✅The documentation adheres to all major guidelines:
JavaScript Integration ✅The
Image Assets ✅Both new image files are legitimate PNG assets:
🎯 Strengths
🔧 Minor Suggestions
📈 RecommendationAPPROVE - This PR is ready for merge. The documentation is comprehensive, technically accurate, and follows all established guidelines. The minor JSON syntax issue should be addressed but doesn't block approval. |
….com/port-labs/port-docs into PORT-15692-incident-summary-ai-agent
Claude finished @PeyGis's task —— View job PR Review CompleteReviewing PR #2584 "Incident Summary AI Agent" according to CONTRIBUTING.md guidelines. Todo List:
Review SummaryThis PR adds a comprehensive guide for generating incident updates using AI agents in Port. The implementation is well-structured and follows most documentation standards, but there are several areas for improvement. Issues Found🔴 Critical Issues
|
Claude finished @PeyGis's task —— View job PR Review: Incident Summary AI AgentReviewing PR #2584 "Incident Summary AI Agent" according to CONTRIBUTING.md guidelines. Todo List:
Review SummaryThis PR adds a comprehensive guide for generating incident updates using AI agents in Port. The implementation is well-structured and follows most documentation standards, but there are several areas for improvement. Issues Found🔴 Critical Issues
|
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.
Added docs pages
Please also include the path for the added docs
/
)/platform-overview/port-components/blueprint
)Updated docs pages
Please also include the path for the updated docs
/
)/platform-overview/port-components/blueprint
)