IntegrationsDocument360

Add Chat Button to Document360

Integrate Inkeep's chat button into your Document360 documentation for real-time user assistance.

What is Document360

Document360 an AI-powered knowledge base software to create internal and public knowledge bases.

Get an API key

Follow these steps to create an API key for your web integration.

Initialize the widget

To integrate the Inkeep chat button into your Document360 documentation, follow these steps:

  1. Navigate to Custom CSS / Javascript settings.
  2. Click on the Javascript tab.
  3. Add the following script to load the chat button:
document.addEventListener("DOMContentLoaded", () => {
  // Load the Inkeep script
  const inkeepScript = document.createElement("script");
  inkeepScript.src =
    "https://cdn.jsdelivr.net/npm/@inkeep/cxkit-js@0.5/dist/embed.js";
  inkeepScript.type = "module";
  inkeepScript.defer = true;
  document.head.appendChild(inkeepScript);
 
  // Configure and initialize the widget
  const addInkeepWidget = () => {
    const inkeepWidget = Inkeep.ChatButton({
      baseSettings: {
        apiKey: "INKEEP_API_KEY", // required
        primaryBrandColor: "#26D6FF", // your brand color, widget color scheme is derived from this
        organizationDisplayName: "Inkeep",
        // ...optional settings
        colorMode: {
          sync: {
            target: document.documentElement,
            attributes: ["data-color-mode"],
            isDarkMode: (attributes) =>
              attributes["data-color-mode"] === "dark",
          },
        },
      },
      modalSettings: {
        // optional settings
      },
      searchSettings: {
        // optional settings
      },
      aiChatSettings: {
        // optional settings
        aiAssistantAvatar: "https://mydomain.com/mylogo", // use your own AI assistant avatar
        exampleQuestions: [
          "Example question 1?",
          "Example question 2?",
          "Example question 3?",
        ],
      },
    });
  };
 
  inkeepScript.addEventListener("load", () => {
    addInkeepWidget();
  });
});

For a full list of customizations, check out the Chat Button documentation.

On this page