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.
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).
The Glean web app domain differs from your company's Glean backend domain
(which typically follows the format your-company-be.glean.com
).
- HTML
<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:
- JavaScript
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: