Public
Likeslack-agent
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v40View latest version
BYOA (Bring Your Own Agent) to Slack.
Based on the Vercel Slack agent guide, adapted for Val Town.
This template uses Claude Sonnet 4.6 in
lib/generate-response.ts, which requires setting
an ANTHROPIC_API_KEY environment variable. Alternatively, you could use the
Vercel AI Gateway, which requires authenticating through Vercel and using a
Vercel API key.
This val uses pinned imports (latest package version as of 2/19/26) to avoid breaking changes:
@slack/web-api@7.14.1hono@4.12.0ai@6.0.92@ai-sdk/anthropic@3.0.45