Skip to content

Add Chat SDK template for multi-platform bots#1

Draft
teallarson wants to merge 3 commits intomainfrom
teallarson/chat-sdk-pr
Draft

Add Chat SDK template for multi-platform bots#1
teallarson wants to merge 3 commits intomainfrom
teallarson/chat-sdk-pr

Conversation

@teallarson
Copy link
Collaborator

Summary

  • Adds a 4th template option (chat-sdk) to create-arcade-agent that scaffolds a multi-platform chat bot using Vercel's Chat SDK
  • Deploys to Slack, Discord, Teams, GitHub, and Linear from a single codebase
  • AI-powered responses via AI SDK with streaming + Arcade MCP tools
  • Arcade OAuth flow surfaces auth URLs directly in the chat thread (not just terminal)
  • Lightweight ~10 file project — no web UI or database needed

Test plan

  • npm run build compiles the CLI
  • node dist/index.js test-bot --template chat-sdk scaffolds correctly
  • Generated project passes npx tsc --noEmit with zero errors
  • npm run dev starts Next.js, webhook endpoint responds
  • Slack bot receives @mentions and streams AI responses
  • Arcade auth URL appears in Slack when authorization is needed

🤖 Generated with Claude Code

teallarson and others added 3 commits February 24, 2026 17:43
New template option for create-arcade-agent that generates a chat bot
using Vercel's Chat SDK (npm i chat). Deploys to Slack, Discord, Teams,
GitHub, and Linear from a single codebase with AI-powered responses
and Arcade tool integration.

Key features:
- Chat SDK event handlers (onNewMention, onSubscribedMessage)
- AI SDK streaming responses with Arcade MCP tools
- Slack adapter with webhook endpoint (/api/chat-webhook)
- Arcade OAuth flow with auth URL surfaced directly in chat
- Simple ~10 file project (no web UI, no database needed)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
File-based OAuth storage fails on Vercel's read-only filesystem.
This adds ioredis for persisting OAuth tokens, PKCE verifiers, and
client info in Redis when REDIS_URL is set, with file-based fallback
for local dev. Also switches Chat SDK state to Redis when available
and rewrites README with clear local (ngrok) and Vercel deploy paths.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Cleaner flow: create Redis via Vercel dashboard (Storage → Upstash Redis)
instead of signing up for Upstash separately. REDIS_URL is auto-injected.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant