Provides expert guidance for building production AI chatbots using Vercel's unified AI SDK and Next.js.

Install

mkdir -p .claude/skills/chat-sdk && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/16417" && unzip -o skill.zip -d .claude/skills/chat-sdk && rm skill.zip

Installs to .claude/skills/chat-sdk

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Expert on Vercel's Chat SDK for building production-ready AI chatbots. Use when user wants to build chatbot apps, add generative UI, create artifacts, or deploy AI chat interfaces. Triggers on mentions of chat-sdk, ai-chatbot, chatgpt clone, vercel chat, generative ui.
269 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Intermediate

Key capabilities

  • Build AI chatbot applications.
  • Integrate with AI SDK for text generation and tool calls.
  • Utilize generative UI for dynamic interfaces.
  • Create custom artifacts for specialized workspaces.
  • Execute in-browser code via WASM/pyodide.
  • Deploy AI chat interfaces to Vercel.

How it works

The skill use Vercel's Chat SDK, built on Next.js App Router and AI SDK, to create AI chatbots with generative UI, custom artifacts, and in-browser code execution.

Inputs & outputs

You give it
AI model prompts or user interactions
You get back
Generative UI components, text responses, or custom artifact outputs

When to use chat-sdk

  • Building AI chatbot apps
  • Adding generative UI to interfaces
  • Creating custom chatbot artifacts
  • Deploying AI interfaces to Vercel

About this skill

Chat SDK Skill

Expert at building AI chatbot applications with Vercel's Chat SDK.

Overview

Chat SDK is a free, open-source template for building production-ready chatbots:

  • Built on Next.js App Router with AI SDK integration
  • Generative UI for dynamic, interactive interfaces
  • Custom artifacts for specialized workspaces
  • In-browser code execution via WASM/pyodide
  • Auth, persistence, multimodal support, and shareable chats
  • One-click Vercel deployment

Quick Start

# Clone and setup
npx create-next-app --example https://github.com/vercel/ai-chatbot my-chatbot
cd my-chatbot

# Install and configure
pnpm install
cp .env.example .env.local
# Add your API keys to .env.local

# Database setup
pnpm db:migrate

# Run development server
pnpm dev

Core Concepts

AI SDK Integration

Uses unified API for text generation, structured objects, and tool calls:

import { generateText } from 'ai';
import { xai } from '@ai-sdk/xai';

const { text } = await generateText({
  model: xai('grok-2-vision-1212'),
  prompt: 'Hello!',
});

Model Providers

Default: AI SDK Gateway with xAI (grok-2-vision-1212). Switch providers easily:

  • OpenAI, Anthropic, Google, xAI, and more via unified gateway
  • Configure in lib/ai/models.ts

Generative UI

Dynamic interfaces that adapt to conversation context beyond text.

Documentation

For detailed information, see the reference documentation:

Common Workflows

Add New AI Provider

// lib/ai/models.ts
import { anthropic } from '@ai-sdk/anthropic';

export const models = {
  'claude-3': anthropic('claude-3-5-sonnet-20241022'),
};

Create Custom Artifact

See docs/artifacts.md for creating interactive workspaces.

Deploy to Vercel

vercel deploy

Upstream Sources

Sync & Update

When user runs sync: fetch latest from upstream sources, update docs/ files. When user runs diff: compare current vs upstream, report changes.

When not to use it

  • When not building chatbot apps.
  • When not using Vercel's Chat SDK.
  • When the user does not want to deploy AI chat interfaces.

Limitations

  • Requires API keys for AI model providers.
  • Database setup is needed for persistence.
  • Deployment is optimized for Vercel.

How it compares

This workflow provides a structured, open-source template for building production-ready AI chatbots with advanced features like generative UI and in-browser code execution, unlike basic chatbot implementations.

Compared to similar skills

chat-sdk side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
chat-sdk (this skill)05moReviewIntermediate
copilotkit-develop03moNo flagsIntermediate
hr-portal-skill01moNo flagsBeginner
create-mcp-app35moReviewAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

More by diegosouzapw

View all by diegosouzapw

helm-chart-scaffolding-v2

diegosouzapw

Helm Chart Scaffolding workflow skill. Use this skill when the user needs Comprehensive guidance for creating, organizing, and managing Helm charts for packaging and deploying Kubernetes applications and the operator should preserve the upstream workflow, copied support files, and provenance before

00

cc-skill-coding-standards-v2

diegosouzapw

Coding Standards & Best Practices workflow skill. Use this skill when the user needs Universal coding standards, best practices, and patterns for TypeScript, JavaScript, React, and Node.js development and the operator should preserve the upstream workflow, copied support files, and provenance before

00

worktree-setup

diegosouzapw

Automatically invoked after `git worktree add` to create data/shared symlink and data/local directory. Required before starting work in any new worktree.

00

parsehub-automation

diegosouzapw

Automate Parsehub tasks via Rube MCP (Composio). Always search tools first for current schemas.

00

signalwire-agents-sdk

diegosouzapw

Expert assistance for building SignalWire AI Agents in Python. Automatically activates when working with AgentBase, SWAIG functions, skills, SWML, voice configuration, DataMap, or any signalwire_agents code. Provides patterns, best practices, and complete working examples.

00

agent-sales-engineer

diegosouzapw

Expert sales engineer specializing in technical pre-sales, solution architecture, and proof of concepts. Masters technical demonstrations, competitive positioning, and translating complex technology into business value for prospects and customers.

00

You might also like

copilotkit-develop

jerelvelarde

Use when building AI-powered features with CopilotKit v2 -- adding chat interfaces, registering frontend tools, sharing application context with agents, handling agent interrupts, and working with the CopilotKit runtime.

00

hr-portal-skill

hariventures2000-ship-it

Use this skill when developing, testing, debugging, or modifying code inside the HR Portal frontend (apps/hr-portal). It applies to handling HR administration tasks such as employee roster management, contract seeding, leave request approvals, attendance monitoring, payroll calculation, and recruitm

00

create-mcp-app

modelcontextprotocol

This skill should be used when the user asks to "create an MCP App", "add a UI to an MCP tool", "build an interactive MCP View", "scaffold an MCP App", or needs guidance on MCP Apps SDK patterns, UI-resource registration, MCP App lifecycle, or host integration. Provides comprehensive guidance for building MCP Apps with interactive UIs.

331

ai-model-web

TencentCloudBase

Use this skill when developing browser/Web applications (React/Vue/Angular, static websites, SPAs) that need AI capabilities. Features text generation (generateText) and streaming (streamText) via @cloudbase/js-sdk. Built-in models include Hunyuan (hunyuan-2.0-instruct-20251111 recommended) and DeepSeek (deepseek-v3.2 recommended). NOT for Node.js backend (use ai-model-nodejs), WeChat Mini Program (use ai-model-wechat), or image generation (Node SDK only).

13

nextjs-developer

zenobi-us

Expert Next.js developer mastering Next.js 14+ with App Router and full-stack features. Specializes in server components, server actions, performance optimization, and production deployment with focus on building fast, SEO-friendly applications.

328531

shadcn-ui-setup

maneeshanif

Install and configure Shadcn/ui component library with Radix UI primitives, Aceternity UI effects, set up components, and manage the component registry. Use when adding Shadcn/ui to a Next.js project or installing specific UI components for Phase 2.

37194

Search skills

Search the agent skills registry