---
title: Slack
description: "Connect a Slack channel to Peal by adding its app to your Slack workspace, what a post there may hold, and the option it takes."
sidebar:
  icon: /platform-marks/slack.svg
---

You connect a Slack channel by adding Peal's app to your Slack workspace and picking the channel there. Each channel you connect is a channel of its own in Peal.

## At a glance [#at-a-glance]

Here's what a Slack post can hold:

|                 |                                  |
| --------------- | -------------------------------- |
| Text            | 4,000 characters, as Slack counts them       |
| Text with media | 3,000 characters, as Slack counts them |
| Images          | Up to 10      |
| Parts           | A thread, up to 24 more parts      |
| Alt text        | Shown        |

What each file type must be is in [Images and videos](/guides/media#platforms-slack). Slack takes PNG, JPEG and GIF images, and no video. Each Slack channel counts as one account on your [plan](/guides/workspace/billing).

## Connect a channel [#connect]

1. **Click Connect Slack**

    On **Channels**, under **Slack**, click **Connect Slack**.

2. **Add the app on Slack**

    Slack asks which workspace, then which channel the app posts to. Pick the
    channel and click **Allow**.

3. **Come back to Peal**

    Slack sends you back to Peal, which connects that channel.

One install connects one channel. To post to another channel in the same workspace, connect Slack again and pick that one. Each channel counts on your plan. Peal refuses a direct message, so pick a channel.

In a private channel, invite the app too: type `/invite` in the channel, followed by the app's name. If the app isn't in the channel, or the channel lets only some people post, the post fails with `cannotPost` and says why.

### What Peal asks Slack for [#permissions]

Peal asks Slack for four permissions:

- `chat:write`, to post messages.
- `chat:write.public`, to post in a public channel it hasn't joined.
- `files:write`, to upload the images a post shows.
- `incoming-webhook`, for the channel picker.

Peal doesn't read any channel, message or file in your Slack workspace, and it keeps the app's token encrypted.

Each connection also adds an incoming webhook to the Slack workspace. Peal doesn't use it, and you can remove it in the app's settings in Slack.

### Remove the app [#remove]

To cut Peal off, remove the app from the Slack workspace in its app settings. Every channel of that workspace stops, and Peal marks them to reconnect.

If you add the app back later, reconnect each channel from its row on **Channels**, and pick that same channel on Slack's page. Peal refuses a different channel there.

## What a post becomes [#posts]

Peal sends the text in Slack's own formatting, so `*bold*`, `_italic_`, `~strikethrough~` and `` `code` `` show the way Slack shows them. It escapes `&`, `<` and `>` the way Slack expects.

Nothing you type notifies anyone. Peal asks Slack to read the text as it's written, so `@here`, `@channel`, `@everyone`, a person's name and `#channel` stay plain text, with or without images. Addresses that start with `http://` or `https://` become links, with or without images.

On its own, the text can be up to 4,000 characters, as Slack counts them. With images, it can be up to 3,000 characters, as Slack counts them. Slack counts the text as it receives it, so `&` counts as 5 characters, and `<` and `>` as 4 each. Peal checks the length when you schedule the post.

Images go under the text, in the same message, with their alt text. For a post of images alone, the alt text is also what the notification says. If Slack never shows an image, the post fails as a refused image. Whenever Slack refuses a post, Peal deletes the images it uploaded for it.

The parts of a [thread](/guides/posts#threads) are replies in the thread of the first part.

## Options [#options]

The one option isn't required, and it goes with every part. **API name** is the option's name in the API:

| Option                         | API name      | Values    | Left out |
| ------------------------------ | ------------- | --------- | -------- |
| **Show previews of its links** | `unfurlLinks` | Yes or no | No       |

When it's off, Slack shows no preview of the pages, images or videos the text links to.

## Edit and delete [#live]

Peal can edit a post's text on Slack, keeping its images, and delete the post with its images (see [After a post is published](/guides/posts/published)). A Slack workspace's settings can stop messages being edited after a while. The edit then fails with Slack's reason, `slack:edit_window_closed`.

## When an answer is lost [#lost]

Slack has no key that lets Peal post a message again safely, and Peal doesn't read the channel back. So when Slack takes a post and its answer never reaches Peal, the post shows **To check**. Look at the channel, then confirm the post or send it again from its page.

Peal never sends it again on its own, and it doesn't send the parts that come after it.

## What Peal doesn't do on Slack [#limits]

Peal doesn't read anything back from Slack, so there are no counts, replies or inbox for it. It doesn't send videos, documents or direct messages to a person, and it posts under the app's name only.
