How to Build an AI Agent for Slack with Chat SDK and AI SDK Vercel has released a guide for developers to build AI-powered Slack agents using Chat SDK and AI SDK, enabling autonomous responses to mentions, conversation history tracking, and tool calling without managing infrastructure. The integration combines Chat SDK's platform handling with AI SDK's ToolLoopAgent for reasoning loops, while Vercel AI Gateway and Redis provide production-ready state management and streaming responses. Developers can wire up multi-turn conversations and scale tool sets using the provided framework, which supports Node.js 18+, Slack workspace installation, and Redis instances. You can build an AI-powered Slack agent that responds to mentions, maintains conversation history, and calls tools autonomously using Chat SDK and AI SDK. Chat SDK handles the platform integration webhooks, message formatting, thread tracking , while AI SDK's ToolLoopAgent manages the reasoning loop that lets your agent call tools and act on results. Together with Vercel AI Gateway and Redis for state, you get a production-ready Slack agent without managing infrastructure or juggling provider SDKs. This guide will walk you through building a Slack agent with Chat SDK, AI SDK's ToolLoopAgent , and Claude via the Vercel AI Gateway https://vercel.com/ai-gateway . You'll wire up streaming responses, tool calling, and multi-turn conversation history, then scale your tool set for production with toolpick. Before you begin, make sure you have: - Node.js 18+ pnpm https://pnpm.io/ or npm/yarn - A Slack workspace where you can install apps - A Redis instance local or hosted, such as Upstash https://vercel.com/marketplace/upstash - A Vercel account https://vercel.com/signup with an AI Gateway API key Chat SDK is a unified TypeScript SDK for building chatbots across Slack, Teams, Discord, and other platforms. You register event handlers like onNewMention and onSubscribedMessage , and the SDK routes incoming webhooks to them. The Slack adapter handles webhook verification, message parsing, and the Slack API. The Redis state adapter tracks which threads your bot has subscribed to and manages distributed locking for concurrent message handling. AI SDK's ToolLoopAgent wraps a language model with tools and runs an autonomous loop: the model generates text or calls a tool, the SDK executes the tool, feeds the result back, and repeats until the model finishes. When you pass a model string like "anthropic/claude-sonnet-4.6" , and host your application on Vercel, the AI SDK will route the request through the AI Gateway automatically. Chat SDK accepts any AsyncIterable