Skip to main content

assistant_thread_context_changed event

The context changed while an AI assistant thread was visible

Facts

Required Scopes
No scopes required!
Compatible APIs

Usage info

Assistant apps will receive this event when a user opens a new channel while the container is open. This can be used to track the active context of a user in Slack.

This example includes both the event wrapper and the event structure for the assistant_thread_context_changed event.

{
"token": "XXYYZZ",
"team_id": "T123ABC456",
"api_app_id": "A123ABC456",
"event": {
"type": "assistant_thread_context_changed",
"assistant_thread": {
"user_id": "U123ABC456",
"context": {
"channel_id": "C123ABC456",
"team_id": "T07XY8FPJ5C",
"enterprise_id": "E480293PS82"
},
"channel_id": "D123ABC456",
"thread_ts": "1729999327.187299"
},
"event_ts": "17298244.022142"
},
"type": "event_callback",
"authed_users": [
"U123ABC456",
"U222222222"
],
"event_id": "Ev123ABC456",
"event_time": 123456789
}