BindKit

Developers

Embed your knowledge base

Your own keys in every sample. Sign in and the code on this page uses your web agent's publishable key.

Sign in

Show your knowledge base on any page, such as your own help page: the articles the web agent may use. It starts at your folders; visitors open one to see its articles, open an article in place, or search them all. With the messenger on the page, an article ends with a way to ask the agent. It draws into a shadow root, so it takes your page's font but not its CSS.

help.html
<div id="help"></div>
<script>
  const remove = BindKit.knowledgeBase({
    element: '#help',
    // The messenger's key unless set, so a page without the messenger needs one.
    publishableKey: 'pk_...',
    layout: BindKit.KnowledgeBaseLayout.CARDS,
    folder: 'Billing',
    css: '.bk-kb { --bk-accent: #4f46e5; --bk-kb-surface: #fafaff; } .bk-kb-card { border-radius: 4px; }',
  })
</script>

React

<BindKitKnowledgeBase /> is the same knowledge base, with the same options as props. It draws into the element it renders, so there is no element; className and style go on that element.

HelpPage.jsx
import { BindKitKnowledgeBase, KnowledgeBaseLayout } from '@bindkit/react'

export function HelpPage() {
  return (
    <BindKitKnowledgeBase
      publishableKey="pk_..."
      layout={KnowledgeBaseLayout.CARDS}
      folder="Billing"
    />
  )
}

Options

Option What it does
element The element to draw into, or a CSS selector for it. What is in it is replaced.
layout From BindKit.KnowledgeBaseLayout: ROWS, one under another; CARDS, a grid; FOLDERS, a compact list of links; or ACCORDION, which opens folders and articles where they are. Each starts at your folders, and opening one shows what is in it. ROWS unless set.
folder Starts in this folder, by its name, and searches only what is in it.
search false leaves out the search field.
language The language its own text is in, such as 'de'. The messenger's unless set.
css CSS added after its own. Its parts have bk-kb classes, such as .bk-kb-card, .bk-kb-row and .bk-kb-article. On .bk-kb, --bk-kb-surface and --bk-kb-text color the rows, cards and article, and --bk-accent the links and buttons, the agent's color unless set.

Put an agent in your product this week