Skip to content

Commit d356102

Browse files
committed
Enhance RCA context in AI agent documentation with automatic blueprint discovery and updated prompt guidelines
1 parent 629cfd4 commit d356102

File tree

1 file changed

+25
-42
lines changed

1 file changed

+25
-42
lines changed

docs/guides/all/add-rca-context-to-ai-agents.md

Lines changed: 25 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ Follow the steps below to create the blueprint:
5555
"identifier": "rootCauseAnalysis",
5656
"title": "Root Cause Analysis",
5757
"icon": "Bug",
58+
"description": "Historical Root Cause Analysis documents from past incidents, including resolutions, lessons learned, and preventive measures",
5859
"schema": {
5960
"properties": {
6061
"summary": {
@@ -598,43 +599,26 @@ For a more comprehensive knowledge base, consider adding 5-10 RCA documents cove
598599

599600
## Update AI agent configuration
600601

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.
602603

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+
:::
610607

611-
4. In the `allowed_blueprints` array, add `"rootCauseAnalysis"`:
612608

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>
627610

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.
629612

613+
1. Go to the [AI Agents](https://app.getport.io/_ai_agents) page.
630614

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.
632616

633-
Enhance the prompt to include instructions about using RCA context:
617+
3. Click on `Edit`.
634618

635-
1. Click on `Edit property` on the `Prompt` field.
619+
4. Click on `Edit property` on the `Prompt` field.
636620

637-
2. Replace the existing content with the following:
621+
5. Replace the existing content with the following:
638622

639623
<details>
640624
<summary>Enhanced agent prompt</summary>
@@ -643,7 +627,7 @@ Enhance the prompt to include instructions about using RCA context:
643627
You are an agent responsible for answering questions about PagerDuty incidents, services, escalation policies, schedules, and on-call rotations.
644628
You also have access to historical Root Cause Analysis (RCA) documents from past incidents.
645629
646-
## Guidelines
630+
### Guidelines
647631
- Provide clear information about incidents
648632
- Identify who is on-call for services (both primary and secondary on-call)
649633
- Report on incident statistics and resolution times
@@ -653,9 +637,9 @@ Enhance the prompt to include instructions about using RCA context:
653637
```
654638
</details>
655639

656-
3. Click `Save` to save the changes.
640+
6. Click `Save` to save the changes.
657641

658-
<h3> Add RCA-focused conversation starters</h3>
642+
<h3> Add RCA-focused conversation starters (Optional)</h3>
659643

660644
1. Click on `Edit property` on the `Conversation starters` field.
661645

@@ -665,20 +649,19 @@ Enhance the prompt to include instructions about using RCA context:
665649
<summary>Conversation starters</summary>
666650

667651
```json showLineNumbers
668-
[
669-
"Who is on call for the payment service?",
670-
"What are the active incidents right now?",
671-
"What is our average incident resolution time?",
672-
"Have we seen database connection issues before?",
673-
"What can we learn from past payment service incidents?",
674-
"Show me RCAs for incidents similar to the current one"
675-
]
676-
```
652+
[
653+
"Who is on call for the payment service?",
654+
"What are the active incidents right now?",
655+
"What is our average incident resolution time?",
656+
"Have we seen database connection issues before?",
657+
"What can we learn from past payment service incidents?",
658+
"Show me RCAs for incidents similar to the current one"
659+
]
660+
```
677661
</details>
678662

679-
3. Click `Save property` to save the changes.
680663

681-
4. Click on `Update` to save the changes to the agent.
664+
3. Click on `Update` to save the changes to the agent.
682665

683666
:::info Using RCA Context
684667
You can now use these RCA context in your agent's responses:

0 commit comments

Comments
 (0)