Menu

eve adds new Slack event hooks and session controls - Vercel
📰

eve adds new Slack event hooks and session controls - Vercel

Vercel News·Andrew Barba·5 days ago
#fTgDeewH
#vercel#message#slack#agent#event
Reading 0:00
15s threshold

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 ( ) )

?…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.