CopilotKit

04pattern 04 of 05

One agent. Every channel.

Same agent, new channels. Don't rebuild the agent for every surface — Channels take the in-app agent you already built to Slack and beyond, where your users already work: threads, mentions, actions.

New to CopilotKit? It's the open-source frontend stack for AI agents: you bring the agent, CopilotKit connects it to the people using your app. This page shows one of the five patterns it makes possible. What it is, in 30 seconds ↓

What CopilotKit is

Connect any agent to any user.

CopilotKit is the open-source frontend stack for AI agents: it puts an agent to work inside a real product, not in a chat window next to it. Bring the agent you have; reach the people where they already are.

any agent
Microsoft Agent FrameworkAWS StrandsGoogle ADKLangChain / LangGraphCrewAIAgnoClaude Agents SDKOpenAI Agents SDKMastraPydantic AILlamaIndexAG2
any user
iOSAndroidWebSMSiMessageTelegramWhatsAppSlackDiscordGoogle ChatMicrosoft Teams
01 · bring your agent

Any framework, unchanged

CopilotKit speaks AG-UI, the open protocol it created. The agent side stays yours.

02 · connect it to users

Inside your product

Hooks and components for every pattern on this site. This page is one of them.

03 · ship it safely

Production-ready runtime

Streaming, concurrency, retries, and state sync handled. Open source, 37,000+ GitHub stars.

In code
channel.ts
const channel = createChannel({
  name: required("CHANNEL_CODE"),
  identifyUser: "platform",
  agent: makeAgent,      // the agent you already built
  showToolStatus: true,  // tool progress shows in the thread
});
npm install @copilotkit/react-core @copilotkit/runtime
How it works
01

Keep the agent

makeAgent returns the same agent that powers your app — one per thread, so conversations never mix.

02

Connect the channel

createChannel binds it to a Slack app through Intelligence. Credentials and provider routing stay out of your code.

03

Ship where users are

Mentions, threads, and interactive approvals work in-channel, with tool status visible as it runs.

Building this?

Tell us in one click. We'll point you at the demo source, the right guide, and the people in the community shipping the same pattern — and skip everything else.

Got it.

We'll tailor what we send you from here. The fastest way to go deeper is the live demo above.

Other patterns