slack-agents
Installation
SKILL.md
Slack Agents on Vercel with the AI SDK
Companion skill for the Slack Agents on Vercel with the AI SDK course. Build a production Slack agent with Bolt, Nitro, and the AI SDK, deploy it to Vercel, and give it the logs and runbook someone else needs to operate it.
Commands
/slack-agents learn
Start the guided learning loop. Fetches lessons from Academy and drives you through the course.
/slack-agents new
Scaffold and run a new Slack agent. Five-stage wizard, following lesson 1.1:
- Project setup: create your own repo from the Slack Agent template with the Deploy button in lesson 1.1 (copies
vercel/academy-starters/slack-agents/starter), clone it,pnpm install - Slack app creation: create the app from
manifest.jsonat api.slack.com/apps (From an app manifest), install it to a Slack Developer Sandbox - Environment configuration:
.envwithSLACK_SIGNING_SECRET,SLACK_BOT_TOKEN,AI_GATEWAY_API_KEY, andNGROK_AUTH_TOKEN;slack login,slack app link, and"source": "local"in.slack/config.json - Local testing:
slack run(starts the ngrok tunnel and the Nitro dev server throughscripts/dev.tunnel.ts); answer y to apply manifest changes; DM the bot "ping" - Production deployment:
pnpm dlx vercel --prod, add env vars withvercel env add, point the Slack Events Request URL athttps://<your-app-domain>.vercel.app/api/slack/events