# Channels SDK

> API reference for managed and direct provider agents built with @copilotkit/channels.

The Channels SDK connects an agent to chat providers through a long-running
`@copilotkit/channels` process. In the managed Slack and Microsoft Teams path,
CopilotKit Intelligence owns the provider connection while your process owns
the agent, tools, approvals, state, and deployment. The package also exports
developer-operated direct adapters for Slack, Teams, Discord, and WhatsApp.

Use this tested package combination. Keep exact versions in your lockfile and
verify compatibility before changing either package.

```bash title="Terminal"
npm install --save-exact @copilotkit/channels@0.11.0 @copilotkit/runtime@1.73.3
```

## API reference [#api-reference]

<Cards>
  <Card
    title="createChannel"
    description="Declare a managed provider or developer-operated direct adapter and attach the Channel to CopilotRuntime."
    href="/reference/channels/functions/createChannel"
  />
  <Card
    title="Channel"
    description="Configure managed or direct delivery, register handlers and tools, configure storage, and inspect the Channel declaration."
    href="/reference/channels/classes/Channel"
  />
  <Card
    title="Thread"
    description="Post and update messages, run or resume the agent, read history, and manage conversation state."
    href="/reference/channels/classes/Thread"
  />
  <Card
    title="StateStore"
    description="Persist workflow state, callback snapshots, transcripts, locks, deduplication, and queues."
    href="/reference/channels/types/StateStore"
  />
</Cards>

### Classes [#classes]

- [`Channel`](/reference/channels/classes/Channel)
- [`Thread`](/reference/channels/classes/Thread)
- [`MemoryStore`](/reference/channels/classes/MemoryStore)
- [`Transcripts`](/reference/channels/classes/Transcripts)

### Functions [#functions]

- [`createChannel`](/reference/channels/functions/createChannel)
- [`defineChannelTool`](/reference/channels/functions/defineChannelTool)
- [`defineChannelCommand`](/reference/channels/functions/defineChannelCommand)
- [`bind`](/reference/channels/functions/bind)
- [`renderToIR`](/reference/channels/functions/renderToIR)

### Message components [#message-components]

- [`Message`](/reference/channels/components/Message)
- [`Header`](/reference/channels/components/Header)
- [`Section`](/reference/channels/components/Section) and
  [`Markdown`](/reference/channels/components/Markdown)
- [`Fields` and `Field`](/reference/channels/components/Fields)
- [`Context`](/reference/channels/components/Context)
- [`Image`](/reference/channels/components/Image) and
  [`Divider`](/reference/channels/components/Divider)
- [`Table`, `Row`, and `Cell`](/reference/channels/components/Table)
- [`Chart`](/reference/channels/components/Chart)

### Interactive components [#interactive-components]

- [`Actions`](/reference/channels/components/Actions)
- [`Button`](/reference/channels/components/Button)
- [`Select`](/reference/channels/components/Select)
- [`Input`](/reference/channels/components/Input)
- [Modal components](/reference/channels/components/Modal): exported for
  direct adapters; unavailable on managed Slack and Teams
- [JSX callbacks](/reference/channels/types/JSXCallbacks)

### Types [#types]

- [`IncomingMessage`](/reference/channels/types/IncomingMessage)
- [`AgentContentPart`](/reference/channels/types/AgentContentPart)
- [`InteractionContext`](/reference/channels/types/InteractionContext)
- [`MessageRef`](/reference/channels/types/MessageRef)
- [`StoreConfig`](/reference/channels/types/StoreConfig)
- [`StateStore`](/reference/channels/types/StateStore)
- [`ChannelNode`](/reference/channels/types/ChannelNode)
- [`ActionStore`](/reference/channels/types/ActionStore): deprecated migration
  reference

### Provider SDKs [#provider-sdks]

- [Direct provider adapters](/reference/channels/sdk/direct-adapters):
  public entry points, required options, and the boundary between managed and
  developer-operated delivery

## Provider guides [#provider-guides]

Start with the provider and agent framework you are deploying:

- [Connect and run your agent in Slack](/slack/connect)
- [Connect and run your agent in Microsoft Teams](/teams/connect)

The provider picker in those guides keeps the same task and selected agent
framework when you switch between Slack and Teams.
