Skip to main content
Glean in Slack

Use Glean in Slack to automatically answer questions, summarize content, and cut through noise

Cindy Chang avatar
Written by Cindy Chang
Updated over a month ago

We all know that Slack is a rich source of knowledge in a company - a constant exchange of conversations, information, and documentation.

However, it is also a source of chaos. People ask questions and get blocked on finding answers. At the same time, teammates spend time and effort manually answering questions. Glean in Slack - also known as Gleanbot - addresses both of these problems. It jumps in automatically when it knows the answer to a question, and it responds when tagged by name.

Glean automatically answers questions and responds when tagged

You can configure this in Admin console (wrench icon) > Data sources > Slack > Glean in Slack.

Note: In the past, Glean in Slack surfaced results based on matching Answers. This legacy version of Glean in Slack was deprecated in February 2024.


What you can do with Glean in Slack

1. Answer questions

When a teammate asks a question in a Slack channel, Glean can jump in with a helpful answer. It can respond either automatically when a question is detected, or when someone mentions @Glean in a message.

How it works

First, Glean must be enabled in either your entire Slack workspace or in a particular channel. When Glean registers a question, it searches across all the knowledge in the company - previous Slack messages, knowledge articles, etc. - to generate a response to the person’s question.

The answer is shown privately to the person who asked the question, and just like Glean Search and Glean Chat, it respects the content permissions of that person. In other words, answers are personalized and only based on content that you have access to. If the response was helpful, you can choose to share it publicly. If it wasn’t helpful, you can mark it as "Not helpful" to help Glean get better.

If the person who has asked the question has neither shared nor dismissed Glean's response, Glean posts a message allowing teammates to request their own response.

Glean adds emoji reactions to the original message where it detected a question, to let teammates know it might have a relevant suggestion. Reactions will only appear in channels where Glean is explicitly added. By default, the reactions are:

  • 👀 for suggestion made

  • ✅ for suggestion shared in channel

  • 👎 for suggestion not helpful

Configuring when Glean responds

By default, Glean only responds automatically when it has a confident answer to a question. This is by design, to avoid creating noise. In certain channels, you may want to but you can tune how often Glean responds in a particular channel by typing /glean configure within Slack and selecting from a menu of options.

If you want a guaranteed response from Glean in a channel or a thread, you can enable responses when someone mentions @Glean explicitly. You can ask Glean to answer questions, summarize a thread, or anything else. As always, Glean’s response is personalized to the person who asked the question, and only based on content that person has permission to access.

While you can configure how often Glean responds, certain behaviors are not configurable:

  • Glean will not respond in channels that include external parties, so as to avoid inadvertently leaking information

  • Glean will not automatically respond in threaded messages, so as to avoid noise

  • Glean will only respond to queries by people who have access to Glean Assistant

  • Glean may not respond if calls have exceeded a rate limit

2. Search from any channel with /glean

In addition to answering questions, you can search Glean directly within Slack. Simply type /glean followed by your search query in any channel. The results will only be visible to you, and you have the option to share search results publicly.

This feature is enabled by default, and can't be modified. It is available to all Glean customers who have installed Glean’s Slack app, and it does not require Glean Assistant access.


Set up

As part of configuration, you will need to deploy the Glean app in Slack. The scopes required for the Glean app are provided in Glean's setup page for Slack. Admin console > Data sources > Slack > Setup > Create an App.

Then, click on the Glean in Slack tab and toggle on “Search with /glean” and “Answer questions”.

Expand the menu for “Answer questions” to configure settings such as which channels Glean can reply in.

If you’d like to restrict Glean to only reply in certain channels, choose the last option, and enter or select the channels to enable. Then, add Glean to each of these channels within Slack by typing /add, selecting “Add apps to this channel”, and selecting Glean. Or, see Slack’s full instructions for how to add apps to a channel.

You can also manually enter channels as channel IDs under the "Advanced" dropdown.

To find a channel's channel ID, go to the channel in Slack and click on the channel name in the top bar. In the modal that appears, scroll down to the bottom of the "About" tab. Copy the channel ID shown and paste it into Glean.

You'll also need to make sure that Events are enabled in Slack - visit the Slack App configuration page, choose the app you’re working on, select Features > Event Subscriptions, and turn on Enable Events.

Turn off responses from Glean in Slack

If you want Glean to stop responding to questions in particular channels, you can do one of two things:

  1. Configure Glean to not respond in the channel. Go to the channel in Slack, type /glean configure, and select "Don't respond".

  2. Remove Glean from the channel. First, ensure that Glean is not set to respond in all channels in Glean Workspace Settings (see Setup). Then, make sure that Glean is removed from the channel in Slack. You can remove the Glean app from a channel by typing /remove @Glean.

If you want to stop Glean from responding to questions in your entire Slack workspace, toggle off "Answer questions" in Glean Workspace Settings (see Setup).

Estimating cost

Glean in Slack uses Glean Assistant and generative AI under the hood. If you are using Glean’s Azure OpenAI key, there is no additional cost to you. If you are using your own key, then turning on automatic answers in channels incurs cost. Please work with Glean sales or customer success to get an estimated range of the cost, depending on the number of channels in which you enable Glean.

Did this answer your question?