Set up the Incident Manager AI agent
Overviewโ
This guide will walk you through setting up an "Incident Manager" AI agent in Port.
By the end of this guide, your developers will be able to get information about incidents and on-call status via Port's AI chat.

Common use casesโ
- Get a quick overview of active incidents and their priorities.
- Check who is currently on-call for specific services.
- Monitor incident resolution times and trends.
- Acknowledge or trigger incidents directly from Port.
Prerequisitesโ
This guide assumes you have:
- A Port account with the AI agents feature enabled.
- Appropriate permissions to create and configure AI agents.
Set up data modelโ
To create an Incident Manager AI agent in Port, we'll need to configure two main components as described in our Build an AI agent guide:
- The data sources it will use to answer questions about incidents and on-call rotations.
- The agent configuration that defines its capabilities and conversation starters.
Configure data source accessโ
For this guide, we will be using PagerDuty as our primary data source to provide comprehensive incident management capabilities. This integration will automatically create and configure all the necessary resources needed by the Incident Manager AI agent.
Install the following integration to have access to these data sources:
- Port's PagerDuty integration for incidents, on-call schedules, and escalation policies.
While this guide uses PagerDuty, you can choose tools that best fit your organization's needs. For example, Opsgenie or Firehydrant.
Create the agent configurationโ
-
Go to the AI Agents page of your portal.
-
Click on
+ AI Agent
. -
Toggle
Json mode
on. -
Copy and paste the following JSON schema:
Incident Manager agent configuration (Click to expand)
{
"identifier": "incident_manager",
"title": "Incident Manager",
"icon": "Details",
"properties": {
"description": "Incident Manager responsible for answering questions about PagerDuty incidents, services, MTTR, escalation policies, schedules, and on-call rotations.",
"status": "active",
"allowed_blueprints": [
"pagerdutyService",
"pagerdutyIncident",
"pagerdutyEscalationPolicy",
"pagerdutySchedule",
"pagerdutyOncall",
"pagerdutyUser",
"_user",
"_team",
"service"
],
"prompt":"You are an agent responsible for answering questions about PagerDuty incidents, services, escalation policies, schedules, and on-call rotations. ### Guidelines \n - Provide clear information about incidents \n - Identify who is on-call for services (both primary and secondary on-call) \n - Report on incident statistics and resolution times",
"execution_mode": "Approval Required",
"allowed_actions": [ "_triggerPagerdutyIncident", "_acknowledgePagerdutyIncident" ],
"conversation_starters": [
"Who is on call for the payment service?",
"What are the active incidents right now?",
"What is our average incident resolution time?"
]
}
} -
Click on
Create
to save the agent.
Interact with the Incident Managerโ
You can interact with the Incident Manager AI agent in several ways.
This guide will demonstrate the two main ways.
- Port UI
- Slack Integration
The Incident Manager AI agent can be accessed through an AI Agent widget in your Port dashboard.
Follow the step below to set it up:
-
Go to the homepage of your portal
-
Click on
+ Widget
. -
Choose
AI agent
. -
Type Incident Manager for
Title
. -
Select Incident Manager from the
Agent
dropdown. -
Click on
Save
.
Once the widget is set up, you can:
-
Use the conversation starter buttons to quickly check:
- Who is on-call for specific services.
- Active incidents.
- Average incident resolution times.
-
Type custom questions in the chat field about:
- Incident status and severity.
- On-call rotations.
- Historical incident data.
-
Engage in natural follow-up conversations to explore specific topics.

The Slack integration provides a natural way to interact with the Incident Manager agent. Before using this method, ensure you have installed and configured the Port AI Assistant Slack App.
You can interact with the Incident Manager agent in two ways:
- Direct message the Port AI Assistant.
- Mention the app in any channel it's invited to.
When you send a message, the app will:
- Open a thread.
- Respond with the agent's answer.
Example queries:
@Port incident-manager Who is on-call for the payment service?
@Port Show me all active P1 incidents
@Port What was our MTTR for March 2024?
While including "incident-manager" in your message can help when you have multiple agents, it's not mandatory.
The Slack app is smart enough to route your request to the appropriate agent based on the context.

Example questionsโ
Here are some questions you can ask the Incident Manager agent:
- "Which team has the highest number of open incidents?".
- "How many open incidents are there currently?".
- "Who is currently on-call for the payment gateway service?".
- "What is our mean time to resolution?".
- "What services were impacted by the outage on Jan 16th 2024?".
- "Trigger an incident for the Checkout service regarding increase in response time".
Best practicesโ
To get the most out of your Incident Manager agent:
- Try it out: Start with simple queries and see how the agent responds.
- Add context: If the response isn't what you expected, try asking again with more details.
- Troubleshoot: If you're still not getting the right answers, check our troubleshooting guide for common issues and solutions.
Possible enhancementsโ
You can further enhance the Incident Manager setup by:
- Integration expansion: Add more data sources like Opsgenie or ServiceNow.
- Automated notifications: Configure the agent to proactively notify about incident updates or escalations.
- Custom conversation starters: Add organization-specific queries to the conversation starters.
- Monitor and improve: Check how your developers are interacting with the agent and improve it according to feedback.