Manage KC Bot Content using Content Library (Beta)
This article explains Content Library in Gainsight PX, and how it can be used to create and manage resources that can be used in Knowledge Center Bots.
Overview
Content Library is a centralized repository for managing all bot content at a universal level. It allows you to add and customize content that can be seamlessly integrated into the Knowledge Center Bot (KC Bot) through widgets such as content groups, recommendations, and task lists. This provides a single source for all content needs, making it easier to configure and deploy content across various bots and use cases.
Prerequisites
Ensure that you have Editor access to Knowledge Center to create KC Bots and add content. For more information on assigning user permissions, refer to the User Management article.
Create Content
Content Library allows you to create and curate content tailored to your bot's needs. You can add new items directly into the library, and use them across multiple bots for specific use cases.
To create new content:
- Navigate to Knowledge Center Bot from the main menu.
- Click the Content Library tab.
- Click Add Content. The following content types are available:
Note: You can only view engagements in Content Library and only those that are launched and enabled for the bot are available. If an engagement is not enabled for bots, you need to update its trigger type. For more information on how to create an engagement for the bot, refer to the Anatomy of Engagements article.
Hosted Articles
PX allows you to create in-app articles called Hosted Articles. These articles can be used as a content source in KC Bots. This enables the delivery of essential content, such as EBR decks or best practices, that may not be part of your external knowledge base. You can create a hosted article and add the same to multiple bots within the same product. This eliminates the need to create duplicate articles in case you maintain multiple bots.
Example Business Use Case: Consider a scenario where you have a best practices document that is not a part of the knowledge base, or if you have release notes that you would like your users to quickly access from within your application. You can create such documents as Hosted Articles in PX, and add them to the KC Bot for your users to access.
To create a new hosted article:
- Navigate to Knowledge Center Bot > Content Library.
- Click Add Content and select Hosted Article.
- In the Content tab, enter the following details:
- Name: Enter a name to help you identify your article..
- Title: Enter a title for your article. This can be the same as the Name.
- Body: Enter or paste the contents of your article. You can either add all the content to the body section and not include any URLs, or add some brief overview in the Body section and redirect users to your URL for more info. The option to add images and videos is available. PX supports BMP, GIF, JPEG, PNG, SVG, TIFF, and WEBP image formats.
- (Optional) Link: Enter the URL where users can access additional information or view in a new tab.
- (Optional) Link Text: Provide the clickable text available at the end of the article. The default is Read More, if the Link field is added (only available in the old bot experience).
- View Type: Choose how the article should appear in the bot, and preview the selected layout before publishing. (only available in the old bot experience).
- (Optional) Author Name: Enter the name of the content owner, that appears at the bottom of the bot.
- (Optional) Release Date: Provide the date you want to display at the bottom of the article as its published date.
- Click Save. The new article is created and added to Content Library.
Localize Articles
After creating and saving the article content, you can localize the article to one of the preferred languages from the available list of languages. For more information, refer to the Localize Articles section of the Create Articles for Knowledge Center Bot article.
Linked Articles
Linked Articles allows you reference articles from your integrated Knowledge Base and add them to the KC Bot.
Prerequisite: Ensure that you have a successful integration with the required knowledge base set up in PX. For more information on how to connect PX with an external knowledge base, refer to the Knowledge Center Integrations category of articles.
To add linked articles articles:
- Navigate to Knowledge Center Bot > Content Library.
- Click Add Content and select Linked Article.
- In the Linked Articles window, select the knowledge base from which you wish to add an article.
- Enter the keywords to search the required article(s).
- (Optional) Click the eye icon to preview an article.
Note: Linked articles from Google, Coveo, and Salesforce open in a new tab, including when accessed by users through the Bot. All other articles open in a preview window. - For the required article(s), click the Add icon. The selected articles are added to Content Library.
Note: Articles from Google, Coveo, and Salesforce open in a new tab, including when accessed through the Bot. Articles from other sources open natively in a preview window within the Bot.
Web Links
Web Links allow you to create a link to an external resource and add them to your bot with an option to configure the link to open in the same tab or a separate tab.
Example Business Use Case: Consider a scenario where you want to provide resources to a specific document in your knowledge base, direct users to content that does not exist in your help center, or to any event registration forms. Using Web Links, you can directly add such URLs to your bot for quick access for your users.
To create links to external URLs:
- Navigate to Knowledge Center Bot > Content Library.
- Click Add Content and select Web Link. The Add Weblink window appears.
- Enter the following information:
- Title: Enter the name of the URL for reference.
- (Optional) Description: Provide an overview or details of the link.
- URL: Enter the URL that the user must be redirected to.
- Select whether the URL should open in a new tab or the current tab.
- Click Add. The web link is added to Content Library.
JavaScript Functions
JavaScript Function allows you to invoke custom JavaScript functions defined within your application directly from the Knowledge Center Bot. This is useful for integrating dynamic actions, such as triggering application-specific behaviors, without leaving the bot. This enhances interactivity by connecting the KC Bot to application-level functionalities.
To create a JavaScript function:
- Navigate to Knowledge Center Bot > Content Library.
- Click Add Content and select JavaScript Function. The Add Function window appears.
- Enter the following information:
- Title: Name of the function for reference.
- Description: Overview or details of the function.
- JavaScript Function Name: Enter the name of the function from your application that must be invoked.
- JavaScript Function Payload: Enter any data or parameters that should be passed to the function when it is triggered.
- Click Add. The function is added to Content Library.
IMPORTANT: Admins need to add the JavaScript function to the product tag to ensure security. Following is an example of adding the tag where the function to add is allowedLink:
view sourceprint 1 var config = {kcAllowedFuncNames : ["allowedLink"]};
Manage Content
Content Library provides a centralized space for managing all resources that can be added to the Knowledge Center Bot. You can perform a variety of actions to keep the content organized and up-to-date, including viewing detailed information, uploading images, cloning existing items, and deleting outdated resources.
Content Library provides you with the following information:
- Summary: A count summary of all the different types of content available in the library. Click a content type to filter the corresponding content type.
- Content Details: Details such as the type of content, display name that appears to the users when available in the bot, last updated date, and so on.
You can perform the following actions in Content Library:
- Modify Details: Update information such as Display Name and Display Description for all content types.
- Search: Search a resource or content using the name or display name.
- Upload or Preview Image: Add or view an image for a content that will be used in the bot in the Card or Thumbnail layouts.
- Edit: Modify or update existing Hosted Articles, Web Links, or JavaScript Functions.
- Clone: Clone existing Hosted Articles.
- Delete: Permanently remove content (except engagements) from the library. Content currently used in active bots cannot be deleted.