You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/all/add-rca-context-to-ai-agents.md
+25-42Lines changed: 25 additions & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,7 @@ Follow the steps below to create the blueprint:
55
55
"identifier": "rootCauseAnalysis",
56
56
"title": "Root Cause Analysis",
57
57
"icon": "Bug",
58
+
"description": "Historical Root Cause Analysis documents from past incidents, including resolutions, lessons learned, and preventive measures",
58
59
"schema": {
59
60
"properties": {
60
61
"summary": {
@@ -598,43 +599,26 @@ For a more comprehensive knowledge base, consider adding 5-10 RCA documents cove
598
599
599
600
## Update AI agent configuration
600
601
601
-
Now we'll modify the Incident Manager AI agent to include access to our RCA documents.
602
+
The Incident Manager AI agent uses the MCP tools pattern (`^(list|get|search|track|describe)_.*`), which automatically provides access to all blueprints in your catalog - including the RCA blueprint you just created. This means the agent can already search and reference RCA documents without any configuration changes.
602
603
603
-
<h3> Add RCA blueprint to allowed blueprints</h3>
604
-
605
-
1. Go to the [AI Agents](https://app.getport.io/_ai_agents) page.
606
-
607
-
2. Find the **Incident Manager** agent and click on the `...` on the far right of the row.
608
-
609
-
3. Click on `Edit`.
604
+
:::tip Automatic blueprint discovery
605
+
With the MCP tools pattern, AI agents automatically discover new blueprints you create. You don't need to manually add `"rootCauseAnalysis"` to any configuration - the agent already has access to query and reference these documents.
606
+
:::
610
607
611
-
4. In the `allowed_blueprints` array, add `"rootCauseAnalysis"`:
612
608
613
-
```json showLineNumbers
614
-
"allowed_blueprints": [
615
-
"pagerdutyService",
616
-
"pagerdutyIncident",
617
-
"pagerdutyEscalationPolicy",
618
-
"pagerdutySchedule",
619
-
"pagerdutyOncall",
620
-
"pagerdutyUser",
621
-
"_user",
622
-
"_team",
623
-
"service",
624
-
"rootCauseAnalysis" //highlight
625
-
]
626
-
```
609
+
<h3> Update the agent prompt (Optional)</h3>
627
610
628
-
5. Click `Save` to save the changes.
611
+
While the agent can automatically access RCA documents, updating the prompt helps guide it on when and how to use this information effectively.
629
612
613
+
1. Go to the [AI Agents](https://app.getport.io/_ai_agents) page.
630
614
631
-
<h3> Update the agent prompt</h3>
615
+
2. Find the **Incident Manager** agent and click on the `...` on the far right of the row.
632
616
633
-
Enhance the prompt to include instructions about using RCA context:
617
+
3. Click on `Edit`.
634
618
635
-
1. Click on `Edit property` on the `Prompt` field.
619
+
4. Click on `Edit property` on the `Prompt` field.
636
620
637
-
2. Replace the existing content with the following:
621
+
5. Replace the existing content with the following:
638
622
639
623
<details>
640
624
<summary>Enhanced agent prompt</summary>
@@ -643,7 +627,7 @@ Enhance the prompt to include instructions about using RCA context:
643
627
You are an agent responsible for answering questions about PagerDuty incidents, services, escalation policies, schedules, and on-call rotations.
644
628
You also have access to historical Root Cause Analysis (RCA) documents from past incidents.
645
629
646
-
## Guidelines
630
+
### Guidelines
647
631
- Provide clear information about incidents
648
632
- Identify who is on-call for services (both primary and secondary on-call)
649
633
- Report on incident statistics and resolution times
@@ -653,9 +637,9 @@ Enhance the prompt to include instructions about using RCA context:
0 commit comments