eve agents on Slack can now keep replying in a thread without repeated mentions, cancel an in-progress response or reset a conversation entirely, and react to any event your Slack app subscribes to.
Copy link to heading Continue conversations without repeated mentions
Mentions no longer have to carry the conversation. Once a thread has an active session, your agent can reply on its own.
The new onMessage hook receives incoming Slack messages, and two helpers decide which ones to handle: ctx.isBotMentioned() detects an explicit mention, and ctx.isSubscribed() checks whether the message belongs to a thread with an active eve session:
export default slackChannel ( {
credentials : connectSlackCredentials ( "slack/my-agent" ) ,
async onMessage ( ctx , message ) {
if ( message . author ?. isBot ) return null ;
const isDirectMessage = message . raw . channel_type === "im" ;
return isDirectMessage || ctx . isBotMentioned ( ) || ( await ctx . isSubscribed ( ) )
?…