Skip to main content

Check out Port for yourselfย 

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:

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:

Optional tools

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โ€‹

  1. Go to the AI Agents page of your portal.

  2. Click on + AI Agent.

  3. Toggle Json mode on.

  4. 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?"
    ]
    }
    }
  5. 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.

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:

  1. Go to the homepage of your portal

  2. Click on + Widget.

  3. Choose AI agent.

  4. Type Incident Manager for Title.

  5. Select Incident Manager from the Agent dropdown.

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

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:

  1. Try it out: Start with simple queries and see how the agent responds.
  2. Add context: If the response isn't what you expected, try asking again with more details.
  3. 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: