Agent context has landed
Agent apps can now receive context about what a user is currently viewing when they send a message, including channels, DMs, threads, canvases, and lists. This context is passed automatically by Slack.
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.
Source: original entry ↗
More from Slack
Follow Slack to get its new changes in your feed and email digest.
Slack CLI v4.10.0 Released
Slack CLI version 4.10.0 is now available, bringing updates and improvements to the developer tools for the Slack platform.
Slack Code for developers
Slack Code enables deeper collaboration between humans and agents by allowing agents to create ephemeral channels from existing conversations, giving collaborators a shared workspace for coordinated work.
Slack CLI v4.9.0 Released
Slack CLI version 4.9.0 is now available with updates and improvements to the command-line tool for building and managing Slack applications.