CopilotKitDocs
  • Docs
  • Reference
  • Cookbook
Get Enterprise Intelligence free
CopilotKitDocs
DocsReferenceCookbook
DocsReferenceCookbook

Getting Started

IntroductionQuickstartCopilotKit CLIBuild with agents

Basics

Prebuilt Components
Programmatic ControlInspector

Generative UI

Tool RenderingState RenderingMCP AppsA2UI

App Control

Frontend Tools
Agent App Context

Mastra

Backend

Copilot RuntimeAG-UI

Intelligence Platform

Enterprise Intelligence PlatformCloud-Hosted Enterprise IntelligenceSelf-Hosting Enterprise IntelligenceEnterprise Intelligence ArchitectureThreads & Persistence ArchitectureThreads

Troubleshooting

Migrate to V2Error Debugging & ObservabilityCommon Copilot IssuesMigrate to 1.10.XMigrate to 1.8.2

Other

Anonymous Telemetry
MastraBots

Bots

Build durable, cross-platform AI bots with CopilotKit — a platform adapter, an AG-UI agent, and optional persistence wired together in a single createBot call.


The bot stack is three pieces: @copilotkit/bot (core runtime), a platform adapter (e.g. @copilotkit/bot-slack), and an AG-UI agent — any CopilotKit runtime or compatible backend. Plug them together with createBot and you get a bot that streams agent replies into the platform, handles interactive buttons, and — once you add a store — survives restarts and spans multiple instances.

Slack quickstart

From zero to a working Slack bot in minutes — Socket Mode, streaming replies, and interactive Block Kit buttons.

Persistence

Choose a storage backend (Memory, Redis, PostgreSQL) to make actions, locks, and per-thread state durable across restarts.

Transcripts

Give the agent a cross-platform memory that follows users from Slack to any other channel — with GDPR-ready delete support.

Bot reference

Full API reference — createBot, Thread, StateStore, ActionStore, and the Slack adapter.

6d9397c