Skip to content
Dashboard

Chat SDK now includes AI SDK tools

lib/bot.ts
import { Chat } from "chat";
import { createChatTools } from "chat/ai";
import { ToolLoopAgent } from "ai";
const chat = new Chat({ userName: "mybot" /* ... */ });
const agent = new ToolLoopAgent({
model: "openai/gpt-5.4",
instructions: 'You are a helpful assistant.'
tools: createChatTools(chat, { preset: "messenger" }),
});

Create a chat agent with the messenger preset

The Complete Guide to Chat SDK

Learn how Chat SDK works end-to-end: from core concepts to building your first bot to deploying it across Slack, Teams, and more.

Read the guide

Ready to deploy?