How do I embed knowledge base content in my application?

Last updated: December 8, 2024

Pylon offers the ability to pop open specific knowledge base articles natively within your application, allowing you to provide contextual help and information to your users.

Using the JavaScript API

To embed knowledge base content based on the current page or context in your application, you can use the Pylon JavaScript API. Here's how to do it:

  1. Ensure you have the Pylon chat widget installed in your application.

  2. Use the window.pylon.showKnowledgeBaseArticle() method to open the chat widget with a specific article.

Example Usage

// Open the chat widget with a specific article.
window.pylon.showKnowledgeBaseArticle("123456789");