---
title: Chat SDK Frameworks
description: Use Chat SDK with Next.js, Nuxt, Hono, Nitro, or TanStack Start on Vercel.
url: "https://vercel.com/docs/chat-sdk/frameworks"
last_updated: 2018-10-20
related:
  - /docs/connect/frameworks/chat-sdk
  - /docs/chat-sdk/frameworks/nextjs
  - /docs/chat-sdk/frameworks/nuxt
  - /docs/chat-sdk/frameworks/hono
  - /docs/chat-sdk/frameworks/nitro
install_vercel_plugin: npx plugins add vercel/vercel-plugin
search_with_vercel_cli: npx vercel@latest docs search "<query>"
search_kb_with_vercel_cli: npx vercel@latest kb search "<query>"
---

# Chat SDK Frameworks

Chat SDK works with frameworks that handle standard Web `Request` and `Response` objects. Your framework receives the webhook, passes it to a Chat SDK adapter, and keeps the function running while your bot processes the event.

## Choose your framework

Each guide uses a Slack bot with Redis state and [Vercel Connect](/docs/connect/frameworks/chat-sdk) for credentials and webhook delivery.

| Framework | Webhook route | Background processing |
| --- | --- | --- |
| [Next.js](/docs/chat-sdk/frameworks/nextjs) | App Router Route Handler | `after` from `next/server` |
| [Nuxt](/docs/chat-sdk/frameworks/nuxt) | Nuxt 4 server API route | `waitUntil` from `@vercel/functions` |
| [Hono](/docs/chat-sdk/frameworks/hono) | Hono POST handler | `waitUntil` from `@vercel/functions` |
| [Nitro](/docs/chat-sdk/frameworks/nitro) | Nitro 3 filesystem route | `event.waitUntil` |
| [TanStack Start](/docs/chat-sdk/frameworks/tanstack-start) | React server route | `waitUntil` from `@vercel/functions` |

For a new Next.js bot, follow the [quickstart](/docs/chat-sdk/quickstart) to scaffold it with `create-chat-sdk`. The other guides show how to add Chat SDK to an existing framework project.

## Share bot behavior across frameworks

Define your `Chat` instance and event handlers in a server-only module. The framework route passes incoming requests to `bot.webhooks.slack`; Chat SDK handles verification, event parsing, and dispatching to your handlers. Keep the request body unread until it reaches the adapter.

Use a [persistent state adapter](/docs/chat-sdk/adapters#state-adapters) to share subscriptions and locks across function instances. Keep bot credentials and database connections on the server.

## Process events after responding

Pass your framework's background-task function as the webhook handler's `waitUntil` option. This lets the adapter acknowledge the webhook while your event handlers continue running.

Background work is still subject to the function's [maximum duration](/docs/functions/configuring-functions/duration). Use [Workflows](/docs/workflows) for tasks that need durable execution or must wait for an external event.

## Next steps

- [Choose platform and state adapters](/docs/chat-sdk/adapters)
- [Connect an eve agent](/docs/chat-sdk/eve)
- [Read the Chat SDK webhook API](https://chat-sdk.dev/docs/usage#webhook-routing)

## Search the docs from your terminal

Search the Vercel docs and read pages as Markdown with the Vercel CLI. No login required.

```bash
# Find docs pages by keyword
npx vercel@latest docs search "environment variables"
npx vercel@latest docs search "function timeout"

# Print a docs page as Markdown, by path or URL
npx vercel@latest docs inspect <page>
```

## Search guides from your terminal

Search the Knowledge Base and read guides as Markdown with the Vercel CLI. No login required.

```bash
# Find guides by keyword
npx vercel@latest kb search "rewrites and redirects"
npx vercel@latest kb search "AI SDK streaming"

# Show the latest guides
npx vercel@latest kb

# Print a guide as Markdown, by slug or URL
npx vercel@latest kb inspect <guide>
```

---

[View full sitemap](/docs/sitemap)


If you encounter incorrect information, can’t find what you need, need a capability Vercel doesn’t currently offer, or have any other feedback to report, please do it by following the instructions at https://vercel.com/feedback.md.
