select navigate esc close

eve adds new Slack event hooks and session controls

Vercel News·

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.

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:

When routing depends on who has joined the thread, the new ctx.thread.listParticipants() helper returns unique human Slack user ids in first-appearance order. Public channel messages require the message.channels trigger event type and the channels:history bot scope; private channels also need message.groups and groups:history.

Cancel a turn or reset the conversation

Message hooks also receive two thread-bound session helpers.

ctx.cancel() stops the current turn while keeping the session: call it before returning { auth } to queue the new message as replacement input, so a mid-turn correction drops the stale work and the agent responds to the latest message.

When the conversation should start over instead, ctx.reset() terminally retires the session that owns the thread. The next delivered message begins a new session with fresh history, state, and sandbox. Inside your onMessage dispatch logic, a reset command takes three lines:

Handle any Events API callback

Your agent can now react to any event your Slack app subscribes to.

The new onEvent hook receives raw events such as reaction_added, team_join, and channel_created. Inside the hook, call ctx.receive() to start an agent turn, or call it several times to fan one event out to multiple targets. The team_join event, for example, can kick off onboarding in each of your welcome channels.

Read the Slack channel documentation to get started, or add the channel to your eve agent with eve channels add slack.

Read more