API referenceConsole
communication
Mention Polylane in any Slack channel or DM to ask about production or start an investigation, and get issues and fix updates in the channels you choose.

Connect

Connect Slack from the terminal. Pass --help for the flags Slack accepts.

Terminal
polylane integration connect --type slack

How it works

Questions and threads

Mention Polylane in a channel that it is in, or send it a direct message. The answer arrives in a Slack thread under your message. Replies in that Slack thread continue the same Polylane thread, which also shows under Threads in the console. It is the same agent as in the console, with the same context.

When a question needs more than one check, Polylane posts a short status message in the thread first and updates it while it works. The answer arrives as a separate reply.

Only members of the Slack workspace that installed the app can ask Polylane for work. In a Slack Connect channel, Polylane does not answer people from other organizations.

Notifications channel

#polylane-notifications gets cards for new escalations at the severities chosen under Settings > Workspace > Escalations, fix pull requests, credentials that need attention, usage warnings, the weekly digest, monitoring pauses, invites and new members. Delivery there is for the whole workspace and does not follow personal email preferences.

Channel instructions

Tell Polylane how to work in a channel, for example "keep replies short here" or "always link our runbook". Polylane saves the instruction for that channel and uses it in each new thread there. You can read and edit the saved instructions for each channel in the Slack integration settings.

People and approvals

Polylane matches a Slack user to a workspace member by email the first time that person talks to it. A matched member can approve or reject the writes that the agent asks for in Slack.

Proactive replies

Polylane does not wait for a mention. It reads each new message in the channels that it is in, and it joins the discussion when it can help with production:

  • A production symptom. Someone writes "anyone else seeing 5xx from api-gateway?" or "p99 spiked at 14:02". Polylane checks the logs, metrics, deploys and alerts for that resource and time, then replies in the thread with what it checked and what it found. It does this also when a person says that they will look into it.
  • A question about your infrastructure. Someone asks "did we deploy checkout today?" or "is the replica lagging?", also when the question is for a colleague. Polylane answers from your connected tools.
  • A resolved problem. Someone confirms that a problem in the thread is fixed. Polylane adds a check mark reaction.

Polylane stays quiet for other messages. It does not reply to standups, release notes, chitchat, requests for code work, messages for another person or bot, questions about who is on call or who owns a problem, and HR, legal or payroll topics. It does not reply when the people in the thread already know the cause, or when it already replied in that thread.

A proactive reply can only read. Polylane does not change your systems or open a pull request unless someone asks it to.

Control where Polylane replies

Proactive replies are on in each channel that Polylane is in. To make a channel mention-only, use one of these:

  • Run /polylane unwatch in the channel. Run /polylane watch to turn proactive replies on again.
  • Ask Polylane in the channel to only reply when someone mentions it.
  • Turn off Reply without being mentioned for the channel in the Slack integration settings.

To stop Polylane in one Slack thread only, tell it to leave the thread. It stays quiet there until someone mentions it again. To keep Polylane out of a channel completely, remove it from the channel.

Issue channels

An Issue channel is a public Slack channel that Polylane opens for one issue. Polylane works the issue in the channel as a teammate does: it says what it will check and why, what each check showed, which causes it ruled out, the root cause, and the result. You can follow the full investigation in Slack without opening the console.

What Polylane posts

  • When the channel opens: the issue, its severity, and a link to the investigation thread. Polylane adds bookmarks to the issue and the investigation thread, and invites the people that you selected.
  • Before each check: what it will check and why. For example: "I will check the deploys of checkout-api in the last two hours. The latency started at 14:05."
  • After each check: what the check showed, with the data: a chart of the series, the counts and rates, or a timeline of the events.
  • When it suspects a cause: the possible cause and the clue. For example: "It can be the connection pool. 12 of 12 connections are busy." It also says when a possible cause is not the cause.
  • At the end: the root cause, a blocker that needs a person, and the result. When the fix is code, Polylane posts the pull request in the channel and adds a bookmark to it.

Talk to the investigation

Each message in the channel goes to the investigation. Ask a question, give a clue, or tell Polylane to check something else. Polylane replies in the Slack thread of your message and changes its work when your message asks it to. Its work updates stay at the root of the channel.

Turn on Issue channels

Issue channels are off by default. Turn them on in one of these ways:

  • Accept the offer in the direct message that Polylane sends you when you connect Slack.
  • In the console, open the Slack integration settings and turn on Issue channels. Select the issue severities that open a channel. The default is critical only. Select the people that Polylane invites to each new channel. Anyone else in your Slack workspace can join, because the channel is public.
  • Ask Polylane in Slack, for example "open a channel for each high and critical issue". Polylane posts a card, and the settings change when a workspace member clicks Confirm.

Each repository can override the severities under Issue channels in Slack in its settings. Clear all severities to keep a repository out of Issue channels.

Issue channels open for fix runs, so they need a connected code host such as GitHub. If you connected Slack before Issue channels were available, reconnect Slack to grant the channels:manage scope.

Scopes

ScopesWhy
app_mentions:read, channels:history, groups:history, im:history, mpim:historyRead mentions, and the messages in the channels and direct messages that Polylane is in
chat:write, chat:write.public, assistant:write, reactions:read, reactions:write, files:read, files:writePost replies, cards and files, and add reactions
channels:read, channels:join, channels:manage, groups:read, groups:write, im:read, im:write, mpim:read, mpim:writeFind and join channels, create the notifications channel and issue channels, and open direct messages
bookmarks:read, bookmarks:writeAdd the issue, fix run and pull request bookmarks to issue channels
users:read, users:read.email, team:readMatch Slack users to workspace members by email
commandsReceive slash commands

Disconnecting

Disconnecting in Polylane revokes the bot token. The app, #polylane-notifications, the issue channels, and the direct messages stay in Slack. Remove the app under Settings → Manage apps in Slack.

Disconnect

Disconnecting stops every sync and check and deletes the credentials Polylane held. Polylane removes what Slack's API lets it remove. The following stays until you remove it yourself:

  • Slack app installation (its bot token is revoked)
  • #polylane-notifications and #*-polylane channels
  • bot channel memberships and DMs
Terminal
polylane integration disconnect <id>