Bỏ qua đến nội dung chính
Back to home
Tech 2 min read

Vercel Upgrades 'eve' on Slack with Event Hooks and Session Control

Vercel has updated eve on Slack, introducing event hooks and session control features that enable AI agents to maintain natural conversations and manage chat states more flexibly.

Tier 2 · sources 55% confidence Reviewed
Sources vercel.com

Vercel has officially announced a new update for its 'eve' platform, bringing advanced capabilities to AI agents operating on Slack. This update focuses on optimizing interactions within chat threads and expanding session control for developers. According to Vercel, these new enhancements will make the communication experience between users and AI more seamless and natural.

Key Updates

Previously, to maintain a conversation with an AI on Slack, users typically had to repeatedly mention the agent in every reply. With the latest update, this pain point has been resolved as eve agents can now automatically reply within the same chat thread without requiring repetitive mention tags.

Additionally, conversation flow management has become significantly more flexible. Developers can leverage new features to cancel an ongoing response if a user changes their mind mid-way, or completely reset the conversation to start a new session with a clean memory and sandbox environment.

Technical Breakdown

Technically, the system utilizes the onMessage hook to receive incoming messages from Slack. Two key helper functions are ctx.isBotMentioned(), used to detect direct mentions, and ctx.isSubscribed(), used to check if the message belongs to an active eve session thread. To identify the participants and their order in a thread, developers can call ctx.thread.listParticipants(), which returns unique Slack user IDs in the order they appeared.

To control the lifecycle of the conversation session, eve provides two thread-bound helper functions: ctx.cancel() and ctx.reset(). The ctx.cancel() function stops the current response generation but keeps the session active, allowing the system to accept a new message as an alternative input. Meanwhile, ctx.reset() permanently terminates the thread's current session, preparing for an entirely new session on the next message. For other system events like reaction_added or team_join, the new onEvent hook receives them directly and triggers agent processing via the ctx.receive() function.

Expert Perspectives

According to software engineers at Vercel, optimizing these event hooks significantly reduces wasted computing resources when users constantly change their requests mid-interaction. Initial feedback from the developer community suggests that while configuring bot scopes like channels:history and groups:history can be somewhat complex, it is a necessary step to ensure security and privacy within internal enterprise Slack channels.

Impact & Future Outlook

These upgrades to eve mark a significant transition from passive, reactive chatbots to proactive AI agents capable of deep collaboration in enterprise workspaces. For development teams in Vietnam building automated operational tools on Slack, this update will help simplify the integration process and substantially elevate the end-user experience. The combination of raw event processing and granular session control promises to accelerate the adoption of more practical AI agents in the near future.