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

@copilotkit/bot

ActionsButtonContextDividerFieldsHeaderImageInputMarkdownMessageSectionSelectTable

@copilotkit/bot-slack

ReferencebotComponents

Markdown

Explicit markdown text block in a bot message.


Overview

Markdown is an explicit markdown text block. It behaves like Section but signals intent: this content is markdown (e.g. agent output you're passing through), not incidental body text.

Import

import { Markdown } from "@copilotkit/bot-ui";

Props

Prop

Type

Usage

<Message>
  <Markdown>{agentSummary}</Markdown>
</Message>

On Slack

Renders as a section block whose text is passed through the adapter's Markdown → mrkdwn translation, truncated at 3000 characters (SLACK_LIMITS.sectionText).

Related

  • Section — general body text
  • markdownToMrkdwn — the Markdown → mrkdwn translation
10d3939