Package
@slack/web-api
Description
Fetching only unread conversations & messages is very useful for AI clients to summarize to the user what is new in Slack since they last checked.
There should be a simple way to list
- conversations with unread messages
- threads with unread messages
- all unread messages
Alternatives Considered
Currently, the only way to list unread conversations seems to be
users.conversations (fetch ALL of them)
conversations.info to get last_read (for ALL of them)
conversations.history to get the latest message (for ALL of them)
- Compare the latest message timestamp of each conversation with its
last_read property.
⚠️ For 100 channels + DMs, that's 201 API calls!
And that doesn't even cover unread threads yet.
Package
@slack/web-api
Description
Fetching only unread conversations & messages is very useful for AI clients to summarize to the user what is new in Slack since they last checked.
There should be a simple way to list
Alternatives Considered
Currently, the only way to list unread conversations seems to be
users.conversations(fetch ALL of them)conversations.infoto getlast_read(for ALL of them)conversations.historyto get the latest message (for ALL of them)last_readproperty.And that doesn't even cover unread threads yet.