Plans supporting knowledge base widget
Professional | Business | Enterprise |
---|---|---|
Customizing the knowledge base widget
You can customize each knowledge base widget to improve the user experience.
Log in to the Knowledge base portal and select your desired project.
Navigate to the Widget () tab from the left navigation sidebar. The list of widgets created by the user will be displayed.
Hover over the desired widget and click the Edit (✎) icon.
In the Configure & connect tab, expand the Style widget section.
The following widget customization options are available:
Widget color
You can choose the knowledge base widget theme color. This color is also set as the widget icon color.
Click Change color to open the color palette.
Select a color from the color picker or enter a hex, RGB, or HSL color code.
Widget icon
Similarly, under the widget color section, you can replace the icon with an image or an available icon.
Click the Change icon button.
Choose an icon from the Icon set tab or insert an image from the Insert image tab:
To insert an image from a URL: Paste the URL and click Insert.
To upload an image: Click Upload an image and select a file from your Drive.
Widget position
Choose the position of the widget launcher on your website or application.
Select Left or Right to change the widget position.
Enter the desired spacing values in the Side spacing and Bottom spacing fields to position the widget from the side or bottom of the window.
Hide widget
When toggled on, the Knowledge base widget will be hidden.
NOTE
The Knowledge base widget is enabled by default.
To unhide a Knowledge base widget, turn off the Hide widget toggle and click Save.
Hide most searched articles
When toggled on, the top search article section will be hidden.
NOTE
Enabling Hide top search disables the URL mapping functionality for the widget.
Once you complete making the desired customizations to the knowledge base widget, click the Save button next to the Widget name field.
Adding a ticket deflector in Knowledge base widget
To add a ticket deflector to your Knowledge base widget,
Log in to the Knowledge base portal and select your desired project.
Navigate to the Widget tab from the left navigation sidebar. The list of widgets will be listed.
Hover over the desired widget and click the Edit (✎) icon.
In the Configure & connect tab, expand the Ticket deflector section.
Enable the Show ticket deflector toggle.
Select the desired ticket deflector.
If required, update the Menu name field.
Click the Save button next to the Widget name field.
Once you enable the ticket deflector toggle and click Save, the ticket deflector is added to the knowledge base widget.
Content access for the Knowledge base widget
You may want to show only particular articles or hide some articles in your Knowledge base. You can do this effectively with the Content access option.
NOTE
The autosave option is available for navigation between the Knowledge base widget tabs.
Restricting content access in a Knowledge base widget
To restrict content access in a knowledge base widget,
Navigate to Knowledge base widget () in the Knowledge base portal.
Hover on the desired Knowledge base Widget and click Edit ().
In the Configuration & connect tab, expand the Content access section.
You have three options:
Project
Workspace
Category
Project
When you select Project, all the articles in the Knowledge base appear in the Widget.
Project is selected by default.
Workspace
You can make the desired language(s) or workspace(s) appear in the Widget.
For example, you want to select a different workspace with a specific language.
Select Workspace to view the list of available workspaces and languages.
Select the checkbox of the desired workspace(s) and language(s), and Click Save.
Category
You can make the desired categories appear in the Widget.
For example, you want to show only the Sales categories in the Widget.
Click Category and select the workspace in the Choose category.
The list of categories available in the specific workspace appears, select the checkbox of the desired categories.
If you want to add more categories from other workspace, expand the Workspace(s) to choose the desired categories.
Click Save.
CAUTION
Changes in content access will directly affect your URL mapping
If you make a change related to the configured URL mapping, the URL mapping will be disabled and appear as broken.
For example, you have set the filter Widget content at the project level and configured a URL mapping with a List of articles from category A in workspace V1. Now you are updating the Filter Widget configuration to show only the categories B and C in workspace V1. With this action, the URL mapping will be invalid. This is because the articles you configured in URL mapping will not appear in the Knowledge Base Widget.
In the URL mapping window, you can only configure articles that are made available in the Filter widget content.
For example, you have set the filter Widget content at the workspace level to show only workspace V1. In this case, you cannot configure a URL mapping with an article available in workspace V2.
Domain restriction
Document360 lets you restrict the Knowledge Base Widget to specific domains.
Once a domain is added to the Widget security list, and if a project member wants to install the Knowledge Base Widget on a different domain, they will need to add that domain in the Widget security section.
If no domains are added to the list, the Knowledge base Widget can be added to any SaaS application or public website.
Restrict the Knowledge base widget to a specific domain
To restrict your Knowledge base widget to a specific domain,
Navigate to Knowledge base Widget in the Knowledge base portal.
Hover on the desired Knowledge base Widget and click () Edit.
In the Configure & connect tab, expand the Widget security section. You can find the list of domains previously added (if added).
Enter the domain where you want the Knowledge base Widget to be displayed.
NOTE
The "www" is not a valid part of your domain. Only add what comes after the www. in your URL.
For example: document360.com
Click Add and click Save.
NOTE
The autosave option is available for navigation between the Knowledge base Widget tabs.
Adding custom links
Need to add a download link to an eBook or Google Sheets?
You can direct an end user by adding a custom link to the Knowledge base Widget.
Links are added as a "section" to your Widget. They will be placed in the order they are added, underneath the Top search articles section.
To add a custom link,
Navigate to Knowledge base Widget in the Knowledge base portal.
Hover on the desired Knowledge base Widget and click ( ) Edit.
In the Installation & Setup tab, expand the Add custom links section.
In the Add Custom Links section:
Type the title for your section
Type the display text for the link
For example, Contact Us
Type the URL link
For example, https://support.document360.com
Click the adjacent icon and choose the desired icon from the available options.
Click Add > Save.
NOTE
You can use a mailto:
in the link field. For example: mailto:<youremail@somedomain.com>
Edit a custom link
Navigate to Knowledge base Widget in the Knowledge base portal.
Hover on the desired Knowledge base Widget and click () Edit.
In the Configuration & connect tab, expand the Add links section.
In the Add Links section, locate the custom link you wish to edit.
Click () Edit and update the desired fields.
Click Save.
Deleting a custom link
Navigate to Knowledge base Widget in the Knowledge base portal.
Hover on the desired Knowledge base Widget and click () Edit.
In the Configuration & connect tab, expand the Add links section.
In the Add Links section, locate the custom link you wish to delete.
Click () Delete.
Click Save.
Securing Knowledge base widget authentication using JWT
You can implement an authentication configuration for the widget using JWT, ensuring a secure environment for private and mixed projects.
Navigate to Knowledge base widget in the Knowledge base portal.
The list of widgets will appear.
Hover on the desired Knowledge base Widget and click () Edit.
In the Configure & connect tab, navigate to the JWT section and enable the JWT toggle.
Client ID: The client ID will be your project’s ID.
Widget ID: Since multiple widgets may exist, a Widget ID is provided for their unique purposes.
Token endpoint: A token endpoint is an HTTP endpoint that allows you to obtain an access token given an authorization code.
Client secret: Click Regenerate to generate the client secret. You need to save this for future purposes and the same client secret will apply to all widgets in the future.
NOTE
The Client secret will be required for JWT widgets you may create. Note that this information will not be stored in Document360.
e. Authorize URL: Paste the authorized URL from your knowledge base widget webpage.
Click Save.
Embed the authorized URL within your code and paste it into the script section on your webpage. This will implement a secure, authenticated widget that prevents unauthorized third-party access.
Implementing the auth endpoint
[HttpGet]
[Route("authenticate")]
public async Task<IActionResult> WidgetAuthentication(string id)
{
if (HttpContext.User.Identity.IsAuthenticated)
{
var clientData = new ClientDetails()
{
ClientId = "{Client ID}",
Secret = "{Client secret}",
TokenEndpoint = "{Token endpoint}",
WidgetId = "{Widget ID}",
SecurityGroupIds = "{Comma separated reader group IDs}", // mandatory for configuration to render KB widget
TokenValidity = 15, // integer representing token validity in minutes
};
if (clientData == null)
return NotFound();
List<string> readerGroupids = null;
if (!string.IsNullOrEmpty(clientData.SecurityGroupIds))
readerGroupids = clientData.SecurityGroupIds.Split(',').Select(c => c.Trim()).ToList();
var payload = new
{
username = "{Username}",
firstName = "{First name}",
lastName = "{Last name}",
emailId = "{Email address}",
readerGroupIds = readerGroupids,
tokenValidity = clientData.TokenValidity,
widgetId = clientData.WidgetId,
projectId = clientData.ClientId
};
var payloadString = JsonConvert.SerializeObject(payload);
var result = await client.RequestTokenAsync(new TokenRequest
{
Address = clientData.TokenEndpoint,
ClientId = clientData.ClientId,
ClientSecret = clientData.Secret,
GrantType = "Widget",
Parameters =
{
{
"payload", payloadString
},
{
"id", clientData.ClientId
},
}
});
return Ok(new
{
accessToken = result.AccessToken,
expiresIn = result.ExpiresIn
});
}
else
{
return Unauthorized(new { success = false });
}
}
NOTE
You must include the comma-separated reader group IDs as security group IDs to configure and render the KB widget.
FAQs
Why are certain categories appearing on the Knowledge base site but not in the widget?
This issue may occur if category-level access has not been properly configured for the widget. To ensure your categories are visible in the widget:
Verify that the team account or reader has permission to view the specific categories/articles in the Knowledge base widget.
Check whether category-level access is configured for the widget. If it is, you need to manually add the desired category in the content access section during widget configuration.
To add the category to the widget:
Navigate to Knowledge base widget () in the Knowledge base portal.
Hover over the desired widget and click the Edit icon ().
In the Configuration & connect tab, expand the Content access section.
Select Category and choose the desired category to appear in the widget.
Click Save to apply the changes.
The Knowledge base widget is not loading on the Knowledge base site. How can I fix this issue?
The Knowledge base widget may not load on your Knowledge base site if the API key is outdated. Updating the API key should resolve the issue and restore the widget functionality.