Skip to main content

Migrate a customer-managed app to Agent messaging

Update your customer-managed Glean Slack app to use Slack's Agent messaging experience. Users then start chats in Messages and continue each chat in its own thread.

This procedure applies to an existing customer-managed app, not the Glean-managed Marketplace app. Glean migrates the Marketplace app automatically, with no admin reinstall or configuration change. This messaging migration is separate from Slack connector and Real Time Search (RTS) migrations and from creating a standalone app for an agent.

Slack plans to deprecate the legacy Assistant messaging experience in February 2027. Your customer-managed app keeps the legacy experience until you migrate it or Slack deprecates that experience.

You can't reverse this migration

Changing the manifest from assistant_view to agent_view switches the experience for all users of the app. Slack doesn't support switching back to Assistant messaging. Plan the change with your Slack admin and tell users what will change before you update the app.

Review the changes for users​

After migration, users:

  • Start a chat by sending a top-level message in the Glean app's Messages tab
  • Continue the chat by replying in its thread
  • Start a separate chat by sending another top-level message
  • Return to a chat by opening its thread in Messages
  • Run /glean agents from the main message field to choose an agent for a new thread

The new experience removes the Chat and History tabs, the New Chat button, and the Chat mode menu. Users don't select Adaptive, Thinking, or Fast in the new experience. Channel chats don't change. See Use Glean in the Slack sidebar for the user instructions.

Prerequisites​

Before you change the app:

  • Identify the customer-managed app that users open to chat with Glean. Don't change the background Enterprise Graph app or a separate app created for an agent.
  • Have permission to edit that app's configuration in Slack.

Update the existing app​

Edit the existing manifest rather than replacing it with a new app manifest:

  1. Open Slack app management and select your customer-managed Glean app.
  2. Open App Manifest.
  3. Under features, rename assistant_view to agent_view. Within that object, rename assistant_description to agent_description. Keep the existing description and other settings in that object.
  4. Under settings.event_subscriptions.bot_events, update the event subscriptions:
    • Remove assistant_thread_started. Agent messaging apps don't receive this event, and Slack's manifest editor warns against it.
    • Remove assistant_thread_context_changed. Slack no longer sends this event.
    • Add app_context_changed.
  5. Keep the assistant:write bot token scope, which both messaging experiences require. Leave all other configuration unchanged, including the remaining event subscriptions, permissions, slash commands, request URLs, and OAuth settings.
  6. Click Save Changes.
  7. Ask users to hard refresh Slack to load the new experience.

For example, the existing manifest might contain these sections:

features:
assistant_view:
assistant_description: Ask questions and search company knowledge
suggested_prompts: []
settings:
event_subscriptions:
bot_events:
- assistant_thread_started
- assistant_thread_context_changed
# Keep all other bot events.

After the changes, those sections contain:

features:
agent_view:
agent_description: Ask questions and search company knowledge
suggested_prompts: []
settings:
event_subscriptions:
bot_events:
- app_context_changed
# Keep all other bot events.

These partial examples omit other settings and event subscriptions. Don't replace your complete manifest or event list with either example. /glean agents uses the existing /glean command, so don't register it as a separate slash command.

For Slack's migration requirements, see Migrating to the Agent messaging experience. Slack requires Marketplace review for an app that is already distributed.

Verify the migration​

Use an account that has Glean access and access to a supported agent. If your organization renamed the /glean command, substitute its configured name in these checks:

  1. Open the Glean app's Messages tab and send a top-level question. Confirm that Glean replies in its thread.
  2. Reply in that thread. Confirm that Glean continues the same chat.
  3. Send another top-level question. Confirm that Glean starts a separate thread.
  4. Run /glean agents from the main message field. Choose an agent, click Run, and open the new chat. Reply in its thread and confirm that the selected agent responds.
  5. Send a new top-level message. Confirm that Glean responds rather than continuing the selected agent's chat.
  6. Check that Glean still responds in a channel where it already worked.

Troubleshooting​

If Slack still shows the legacy experience, hard refresh Slack and reopen the Glean app. Check that you updated the app your users open, not another installed Glean app.

If older threads don't load after migration, refresh Slack and try again later. Contact Glean Support if the issue persists. Don't try to restore assistant_view, because Slack doesn't support reversing the migration.