Skip to content

Slack

There are two ways to send alerts to Slack:

  • The YipYap Slack app (YipYap Cloud, all plans). An owner or admin connects your Slack workspace once. Alerts carry Acknowledge and Resolve buttons that work from Slack.
  • Your own Slack app. You create an app in Slack and give YipYap its Bot Token and a Channel ID. Alerts carry an Open in YipYap link instead of buttons. Use this on self-hosted servers.

Only organization owners and admins can connect or remove workspaces.

  1. Go to Settings > Channels. The Slack workspaces section is at the top.
  2. Click Connect Slack (or Connect another workspace if one is already connected).
  3. Slack opens. Pick the workspace and approve the access the app asks for.
  4. Slack sends you back to Settings > Channels with “Slack workspace connected.” The workspace is listed with who connected it and when.

Finish the install in the same browser you started it from, within 10 minutes. Otherwise YipYap shows “That install link expired or was already used.” and you start again with Connect Slack.

The app asks Slack for these bot permissions:

PermissionWhat Slack grants
chat:writePost messages in channels the app is in.
chat:write.publicPost in public channels without being invited.
channels:readSee basic information about public channels.
groups:readSee basic information about private channels the app is in.
im:writeStart direct messages with people.
users:readLook up the name and profile of the person who clicks a button.
users:read.emailSee the email addresses of people in the workspace.

YipYap keeps one bot token per connected workspace, encrypted. It is never shown in the console or returned by the API.

After a workspace is connected, add a channel that posts through it:

  1. Go to Settings > Channels and click Add Channel.
  2. Enter a Name, for example “Ops Slack”.
  3. Set Type to Slack (YipYap app).
  4. Pick the Slack workspace. With only one connected workspace, it is picked for you.
  5. Pick the Channel. The list shows public channels and the private channels the app was invited to.
  6. Click Save.
  7. Click Test on the new channel in the list. A sample alert appears in the Slack channel. Test messages have no buttons, because there is no real alert to act on.

Public channels work right away. For a private channel, type /invite @YipYap in that channel first, then click Reload next to the Channel list.

The channel config holds no token. YipYap uses the connected workspace’s token when it sends.

Alerts sent through the YipYap Slack app have Acknowledge and Resolve buttons. Clicking one acknowledges or resolves that alert in YipYap, the same as doing it in the console. Resolve asks you to confirm first.

After a click, YipYap updates the Slack message: it names who acted, and the buttons follow the alert. An acknowledged alert keeps only Resolve, and a resolved alert has no buttons.

YipYap names the person by their Slack email address. If it matches a YipYap user in your organization, the alert timeline shows that user. Otherwise it shows “Slack user” and their Slack name. The email only labels who acted. Anyone who can see the Slack channel can press the buttons, so post alerts to channels your on-call team uses.

If the alert was already acknowledged or resolved, the message says “Already acknowledged” or “Already resolved” and nothing changes.

  1. In Settings > Channels, find the workspace under Slack workspaces and click Remove.
  2. Read the prompt and click Remove workspace.

YipYap stops posting to that workspace for your organization. If no other YipYap organization uses the same workspace, YipYap also uninstalls the app from Slack. You can connect it again later.

If someone uninstalls the YipYap app from Slack’s own app settings, or revokes its token, YipYap notices and removes the workspace for every organization that connected it.

Channels that post through a removed workspace stop getting alerts. Each alert they miss shows “Slack workspace disconnected” on its timeline. To fix it, connect the workspace again, then edit the channel and pick the workspace and channel.

These steps also work on self-hosted servers, where the Slack workspaces section is not shown.

  1. Go to api.slack.com/apps and create a new app from scratch in your workspace.
  2. Open OAuth & Permissions. Under Bot Token Scopes, add chat:write. Add chat:write.public as well if you want the bot to post in public channels without being invited.
  3. Install the app to your workspace from the same page.
  4. Copy the Bot User OAuth Token. It starts with xoxb-.
  5. For a private channel, or if you skipped chat:write.public, invite the bot to the channel: type /invite @your-app-name in the channel.

In Slack, right-click the channel and choose View channel details. The channel ID (for example C01234ABC) is at the bottom of the dialog, with a copy button.

  1. Go to Settings > Channels and click Add Channel.
  2. Enter a Name, for example “Ops Slack”.
  3. Set Type to Slack.
  4. Paste the token into Bot Token and the ID into Channel ID.
  5. Click Save.
  6. Click Test on the new channel in the list. A sample alert should appear in the Slack channel.

YipYap does not show the bot token again after saving. To change it, edit the channel and paste a new token.

Each alert message shows the severity, the monitor name and the alert message. When they are set on the monitor or service, it also shows the runbook link, the service name, the status of the service’s dependencies and its quick links. It ends with an Open in YipYap link.

Alerts posted through your own Slack app cannot be acknowledged or resolved from Slack. Slack sends button clicks to the app that posted the message, which is your app, not YipYap. So these messages have no Acknowledge or Resolve buttons. Instead each one ends with an Open in YipYap link to the alert (a test message links to the alert list).

Open the alert in YipYap to acknowledge or resolve it.

If you would rather not create a Slack app, use a Slack incoming webhook URL:

  1. In Slack, create an incoming webhook for the channel and copy its URL.
  2. In Settings > Channels, click Add Channel and set Type to Webhook.
  3. Paste the URL into URL. Payload Format switches to Slack for hooks.slack.com URLs.

See Webhooks for details.

If Test fails, check these first. The codes are the ones Slack returns.

Slack errorLikely cause
not_in_channelThe bot is not in the channel. Invite it, or add the chat:write.public scope for public channels.
channel_not_foundThe channel ID is wrong, or the channel is private and the bot was not invited.
invalid_auth, token_revokedThe token is wrong or the app was uninstalled. Paste a fresh Bot User OAuth Token.
missing_scopeThe app lacks chat:write. Add it, reinstall the app and paste the new token.

When a button click cannot be handled, Slack shows a message that only you can see:

MessageWhat to do
”This Slack workspace is no longer connected to YipYap.”An owner or admin connects the workspace again from Settings > Channels.
”That alert was not found.”The alert belongs to an organization that has not connected this workspace, or it was deleted. Open YipYap to check.
”YipYap could not acknowledge the alert. Try again.” or “YipYap could not resolve the alert. Try again.”Click again. If it keeps failing, acknowledge or resolve it in YipYap.