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 anapp_context_changedevent 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_contextis now sent tomessage.imandapp_home_openedevents: Slack will also send theapp_contextto these events if the app is subscribed to theapp_context_changedevent.
Learn more in the guide to Developing agents.