Slack application
Port's Slack app brings your developer portal experience into your team's daily communication flow โ allowing you to interact with Port directly from Slack and receive real-time notifications from Port right where your team collaborates.
Use-casesโ
Manage notificationsโ
The Slack app allows you to send messages to any Slack channel directly from Port, without the need to create a separate webhook for each channel.
This can be used to communicate important notifications to people in your organization, such as:
- A new PagerDuty incident has been created.
- A new GitHub issue has been created.
- A GitLab merge request has been merged.
Interact with AI agentsโ
Another powerful use-case of the Slack app is to interact with the AI agents in your portal directly from Slack.
This can be used to get quick answers to questions about your resources, such as:
- Which services had an incident in the last 30 days?
- How many open Jira tickets are there for the service 'x'?
- What is the status of the deployment 'y'?
Prerequisitesโ
-
A Port account with admin permissions.
-
To install the Slack app, you will first need to apply for access to Port's AI program by filling out this form.
-
To interact with AI agents, you need to have at least one agent deployed in your portal.
See the Build an AI agent page to learn more.
Installationโ
To install the Slack app, follow these steps:
-
Navigate to the Slack app installation page. This page will be accessible only after being approved for the AI program (see prerequisites above).
-
Click on the "Add to Slack" button.
-
Select the workspace where you'd like to install the app, then click "Allow".
-
Once installed, you will receive a Slack message from Port's bot with a summary of the app's capabilities:
Send notifications from Portโ
Slack app bot tokenโ
Once the app is installed into the Slack workspace, a new system secret will be created in your Port organization named __SLACK_APP_BOT_TOKEN_T<team_id>
, where <team_id>
is the ID of the Slack workspace.
You can copy it and use it in actions & automations to send messages to a specific Slack channel.
To view your system secrets, click on the ...
button in the top right corner of your Port application, select Credentials
and then click on the Secrets
tab.
Usage exampleโ
The following snippet defines an automation that sends a Slack message to a specific channel when a new PagerDuty incident is created in Port, using the Slack app's bot token:
{
"identifier": "pagerduty_incident_to_slack",
"title": "PagerDuty incident to slack",
"icon": "pagerduty",
"description": "Sends a Slack message on new incident",
"trigger": {
"type": "automation",
"event": {
"type": "ENTITY_CREATED",
"blueprintIdentifier": "pagerdutyIncident"
}
},
"invocationMethod": {
"type": "WEBHOOK",
"url": "https://slack.com/api/chat.postMessage",
"synchronized": true,
"method": "POST",
"headers": {
"Content-Type": "application/json; charset=utf-8",
"Authorization": "Bearer {{ .secrets.\"__SLACK_APP_BOT_TOKEN_T123\" }}"
},
"body": {
"blocks": [
{
"type": "markdown",
"text": "There is a new incident!\nTitle: {{ .event.diff.after.title }}\nOwner: {{ .event.diff.after.properties.assignees }}"
}
],
"channel": "C06BUh123"
}
},
"publish": true
}
Customize messagesโ
You can customize messages with blocks following the Slack formatting guidelines.
Interact with Port from Slackโ
New user authentication flowโ
When a new team member first tries to use the Slack app, a private message with a "Connect to Port" button will be sent to them:

Once the user is authenticated, they can:
- Mention
@Port
in any channel it's invited to. - Start interacting with Port directly from Slack.
Slash commandsโ
The Slack app responds to the /port
slash command with these options:
/port
(or/port help
) - Shows general help and available actions./port agents
- Lists all Port AI agents in your organization.
To ask the app a question, simply mention @Port
and ask away, for example:
@Port is there an active incident for the service 'x'?
Use the Slack AI assistant interfaceโ
On paid Slack workspaces, you can also interact with Port through Slack's AI assistant interface, which provides enhanced features:
-
Chat history for previous interactions with Port is available when using direct messages with the app.
-
You can start a new conversation easily using the "New Chat" button in the top-right corner.
-
For quicker access, add Port to your Slack top bar by clicking the three dots menu and selecting "Add assistant to top bar".
-
Once added, you can access Port from anywhere in Slack through a side panel, without leaving your current conversation.
This provides a more seamless way to interact with your Port AI agents while working in Slack.
Advanced configurationโ
Renaming the Slack Botโ
You can rename the Port Slack bot in your workspace. This can be useful if you want the bot to have a name that is more recognizable to your organization, instead of the default "Port".
Follow these steps to rename the bot:
-
In your Slack workspace, find the Port app. Right-click on it and select "View app details".
-
In the app details view, click on the "Configuration" tab. This will open a new page in your web browser. Scroll down to the "Bot User" section.
-
Click on the "Edit" button next to the bot user. In the modal that appears, enter the new desired name for your bot and click "Save Changes". The change will apply immediately.
Limitationsโ
-
The Slack app can only operate in channels it's invited to and in private DMs with the bot.
-
Users must authenticate individually.
-
You can install only one Slack app, related to one Port organization, in each Slack workspace.
-
When sending a message from Port to Slack, up to 50
blocks
can be used, and eachtext
value can be up to 3000 characters long.