Skip to main content

Sidebar Search

The Glean Sidebar provides a unified interface that combines search capabilities, chat functionality, and contextual recommendations, all accessible from a slide-out panel on your page.

Sidebar Search Interface Sidebar Results View

Implementation Guide

Adding the JavaScript Client

Include the JavaScript library in your page's <head> section. Replace GLEAN_APP_DOMAIN with your company's Glean web app domain (typically app.glean.com or your-company.glean.com for custom subdomains).

info

The Glean web app domain differs from your company's Glean backend domain (which typically follows the format your-company-be.glean.com).

<script
defer
src="https://{GLEAN_APP_DOMAIN}/embedded-search-latest.min.js"
></script>

Basic Setup

Implementing the Sidebar requires a single method call to openSidebar. You can trigger this method in response to user actions, such as clicking a button:

GleanWebSDK.openSidebar();

Customization Options

The Sidebar component can be customized using the GleanWebSDK.openSidebar API. This interface provides options for tailoring the sidebar experience to match your application's needs.

Implementation Example

Experience a complete working implementation of the Sidebar component in our interactive demo: