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.
YipYap Slack app
Section titled “YipYap Slack app”Connect a workspace
Section titled “Connect a workspace”Only organization owners and admins can connect or remove workspaces.
- Go to Settings > Channels. The Slack workspaces section is at the top.
- Click Connect Slack (or Connect another workspace if one is already connected).
- Slack opens. Pick the workspace and approve the access the app asks for.
- 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.
What the app can access
Section titled “What the app can access”The app asks Slack for these bot permissions:
| Permission | What Slack grants |
|---|---|
chat:write | Post messages in channels the app is in. |
chat:write.public | Post in public channels without being invited. |
channels:read | See basic information about public channels. |
groups:read | See basic information about private channels the app is in. |
im:write | Start direct messages with people. |
users:read | Look up the name and profile of the person who clicks a button. |
users:read.email | See 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.
Send alerts through the app
Section titled “Send alerts through the app”After a workspace is connected, add a channel that posts through it:
- Go to Settings > Channels and click Add Channel.
- Enter a Name, for example “Ops Slack”.
- Set Type to Slack (YipYap app).
- Pick the Slack workspace. With only one connected workspace, it is picked for you.
- Pick the Channel. The list shows public channels and the private channels the app was invited to.
- Click Save.
- 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.
Acknowledge and Resolve
Section titled “Acknowledge and Resolve”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.
Remove a workspace
Section titled “Remove a workspace”- In Settings > Channels, find the workspace under Slack workspaces and click Remove.
- 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.
Your own Slack app
Section titled “Your own Slack app”These steps also work on self-hosted servers, where the Slack workspaces section is not shown.
1. Create your Slack app
Section titled “1. Create your Slack app”- Go to api.slack.com/apps and create a new app from scratch in your workspace.
- Open OAuth & Permissions. Under Bot Token Scopes, add
chat:write. Addchat:write.publicas well if you want the bot to post in public channels without being invited. - Install the app to your workspace from the same page.
- Copy the Bot User OAuth Token. It starts with
xoxb-. - For a private channel, or if you skipped
chat:write.public, invite the bot to the channel: type/invite @your-app-namein the channel.
2. Find the channel ID
Section titled “2. Find the channel ID”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.
3. Add the channel in YipYap
Section titled “3. Add the channel in YipYap”- Go to Settings > Channels and click Add Channel.
- Enter a Name, for example “Ops Slack”.
- Set Type to Slack.
- Paste the token into Bot Token and the ID into Channel ID.
- Click Save.
- 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.
Message content
Section titled “Message content”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.
Acknowledging alerts from your own app
Section titled “Acknowledging alerts from your own app”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.
Incoming webhook instead of a bot
Section titled “Incoming webhook instead of a bot”If you would rather not create a Slack app, use a Slack incoming webhook URL:
- In Slack, create an incoming webhook for the channel and copy its URL.
- In Settings > Channels, click Add Channel and set Type to Webhook.
- Paste the URL into URL. Payload Format switches to Slack for
hooks.slack.comURLs.
See Webhooks for details.
Troubleshooting
Section titled “Troubleshooting”Your own Slack app
Section titled “Your own Slack app”If Test fails, check these first. The codes are the ones Slack returns.
| Slack error | Likely cause |
|---|---|
not_in_channel | The bot is not in the channel. Invite it, or add the chat:write.public scope for public channels. |
channel_not_found | The channel ID is wrong, or the channel is private and the bot was not invited. |
invalid_auth, token_revoked | The token is wrong or the app was uninstalled. Paste a fresh Bot User OAuth Token. |
missing_scope | The app lacks chat:write. Add it, reinstall the app and paste the new token. |
YipYap Slack app messages
Section titled “YipYap Slack app messages”When a button click cannot be handled, Slack shows a message that only you can see:
| Message | What 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. |