Skip to main content

Agent context has landed

Agent apps can now receive context about what a user is currently viewing when they send a message. When a user has a channel, DM, thread, canvas, or list open and messages your app, Slack will pass that context automatically.

Here's what developers need to know:

  • New event: app_context_changed: Slack will send an app_context_changed event to your app whenever the user's active context changes. The event payload includes an ordered list of entities the user is currently viewing.
  • The app_context is now sent to message.im and app_home_opened events: Slack will also send the app_context to these events if the app is subscribed to the app_context_changed event.

Learn more in the guide to Developing agents.