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

@copilotkit/bot

@copilotkit/bot-slack

slackrenderBlockKitmarkdownToMrkdwndefaultSlackToolsdefaultSlackContextSanitizingHttpAgent
ReferencebotSlack

defaultSlackContext

The Slack context entries the adapter ships — tagging procedure, Markdown-vs-mrkdwn guidance, and the thread/DM conversation model.


Overview

defaultSlackContext is the list of Slack-specific ContextEntry values the package ships, meant to be spread into createBot({ context }). It is not auto-applied — you spread it explicitly. Each entry is also exported individually:

EntryTeaches the agent
slackTaggingContextHow to @-mention people: resolve via the lookup_slack_user tool and paste the returned <@U…> mention verbatim
slackFormattingContextWhat formatting survives in Slack — Markdown is translated to mrkdwn for it (see markdownToMrkdwn)
slackConversationModelContextThe Slack conversation model — channels, threads, and DMs, and how the bot participates in each

Usage

import { defaultSlackContext } from "@copilotkit/bot-slack";

const bot = createBot({
  // …
  context: [...defaultSlackContext, ...myAppContext],
});

Context entries are folded into the agent's system context on every thread.runAgent(); per-run additions go through runAgent({ context }).

Related

  • defaultSlackTools — the companion tool the tagging procedure relies on
  • createBot — the context option
  • slack() — the adapter
10d3939