Skip to main content

Use Glean in the Slack sidebar

Ask questions, search your company's knowledge, and run supported agents from the Glean app in Slack. In Slack's Agent messaging experience, each chat starts in the Messages tab and continues in its own thread.

If your organization's customer-managed app still uses the Chat tab, follow Use the legacy Assistant messaging experience. Your admin manages the migration to the new experience.

Before you begin​

Ask your Slack admin to install and approve the Glean app in your workspace or organization and make it available to users. See Set up Slack sidebar integration.

For results from Slack content, an admin must also set up and authorize the Slack connector and Slack Real Time Search (RTS). You may need to authorize Slack RTS to receive results from private channels and direct messages. See Set up the Slack connector.

Open Glean in Slack​

Open Glean from Slack's top bar, or find the Glean app in Slack's Apps list. Then open the Messages tab.

If you can't find Glean, ask your admin to check the app's installation and visibility settings. Availability depends on your workspace's app policies.

Chat with Glean in Slack​

Keep each request and its follow-up questions in the same thread:

  1. In Messages, enter your question in the main message field, outside any thread.
  2. Send the message. Glean replies in a thread attached to it.
  3. Open that thread and reply there to continue the chat.

To start a separate chat, send another message from the main message field. To return to an earlier chat, open its thread in Messages.

The Agent messaging experience doesn't have Chat or History tabs, a New Chat button, or a Chat mode menu. You don't select Adaptive, Thinking, or Fast in Slack.

Run an agent in the Slack sidebar​

The agent picker lists agents you have access to that use a Chat message trigger. Agent availability also depends on your organization's configuration.

To start an agent chat:

  1. Open the Glean app's Messages tab.

  2. Enter /glean agents in the main message field, outside any thread.

  3. Find the agent you want to use and click Run. Complete any sign-in prompts for the agent's tools.

    Agents picker in Slack with the Created by me filter and Run buttons
  4. Click Open the chat when the link appears. If the link doesn't appear, find the new agent message in Messages and open its thread.

    Agent chat confirmation with an Open the chat link
  5. Reply in the thread to send your request to the agent.

The selected agent stays active in that thread. A new message outside the thread starts a separate chat with Glean, not with the selected agent. To start a chat with another agent, run /glean agents again from the main message field.

Run /glean agents in your direct message with the Glean app, not in a channel or a direct message with another person. Slack doesn't allow slash commands inside threads. If your organization uses a different name for the /glean command, use that name followed by agents.

Agent limitations

Some agents that work in the Glean web app can't complete the same steps in Slack. The Wait for User Input step and write tools that require interactive approval in the Glean web app don't complete in Slack. To use a write tool in Slack, the tool must support running without confirmation and have that configuration enabled. Run agents that need interactive approval or Wait for User Input in the Glean web app instead. See Human-in-the-loop confirmations for write tools.

Use the legacy Assistant messaging experience​

These instructions apply to customer-managed apps that haven't migrated to Agent messaging. If your app uses the Chat tab, keep using this flow until your admin migrates it.

Open Glean from Slack's top bar and select Chat. You can also find Glean in Slack search, open its About tab, and click New Chat.

Legacy Glean Chat tab in Slack showing Adaptive mode

Choose a response mode​

The legacy Chat mode menu can offer these modes, depending on your organization's configuration:

  • Adaptive: Chooses between Fast and Thinking based on your request
  • Fast: Returns a quicker response
  • Thinking: Spends more time reasoning through complex or multi-step questions

To choose a mode:

  1. Open the Chat tab.
  2. Click Chat mode and select an available mode.
  3. Enter your question.

The mode stays active for the rest of the chat.

Legacy Chat mode menu with Adaptive, Thinking, Fast, and Find & run agents

Run an agent in the legacy experience​

Use the Chat mode menu to start an agent chat:

  1. Open the Chat tab and click Chat mode.
  2. Under Find & run agents, select Agents.
  3. Choose an agent and click Run.
  4. Enter your request in the chat.

The selected agent stays active for that chat. Start a new chat to switch agents or return to Glean. The same agent limitations apply to both messaging experiences.

Use the sidebar for a direct message with Glean or a selected agent. Use channel publishing when an agent needs to respond in a shared Slack channel or thread. The move to Agent messaging doesn't change channel chats. See Publish agents to Slack.