Slack
Connect AI apps and agents to Slack without managing long-lived credentials.
Install the skill
$ npx skills add vercel/vercel-plugin --skill vercel-connectConnect to
Slack$ vercel connect create slack --name acme-slackUse its data in agents(opens in new tab) and apps(opens in new tab)
import { getToken } from '@vercel/connect';const token = await getToken('slack/acme-slack');
Use Slack in apps and agents
Use authorized Slack conversation context and events to let apps and agents read messages, respond in channels and threads, and trigger workflows.
Read the Slack developer docs(opens in new tab)Build with Slack events
Vercel Connect delivers verified Slack events to your app or agent in real time.
- app_context_changed
- app_home_opened
- app_mention
- entity_details_requested
- member_joined_channel
- message.channels
- message.groups
- message.im
- reaction_added
- reaction_removed
Why use Vercel Connect with Slack?
Credentials on demand
Request Slack credentials only when your application or agent needs them instead of copying secrets into application code.
Access for the right subject
Keep app-scoped Slack access behind a reusable connector controlled by your team.
Managed authorization lifecycle
Centralize Slack authorization and token exchange rather than rebuilding the provider flow in every application.
Vercel-native controls
Bind connections to the projects and environments that need them while Vercel OIDC authenticates each runtime request.
What you can build with Slack
Operate an agent in Slack
Receive workspace events and let an agent respond in channels or threads.
Post alerts and updates
Send deployment, incident, support, or workflow updates to the right channel.
Use conversation context
Read authorized messages and channel history to ground internal tools and agents.
Use Slack with your stack
Follow a complete setup for the Connect SDK or a supported agent framework.
Add Slack to an existing Vercel application with the Connect SDK.
Install the Connect SDK
npm install @vercel/connectCreate the Slack connector
Run these commands from the project that will use the connection.
vercel linkvercel connect create slack --name acme-slackvercel env pullRequest Slack credentials
app/api/route.tsimport { getToken } from '@vercel/connect';const token = await getToken('slack/acme-slack');