One widget brings your AI agent, live chat, docs, and changelog into your product. Install it with two script tags from Settings → Widget, then set it up with the pages at the bottom.
Installation
Copy the snippet from the Install snippet section of the widget settings page, where your widget key is already filled in. Paste it before the closing </body> tag of your website. It looks like this:
<script>
;((w)=>{const P=(w.Productlane={queue:{}});["set","open","close","toggle","on","off","init","enable","disable"].forEach(m=>{P[m]=(n=>function(){P.queue[n]={args:arguments}})(m)})})(window);
Productlane.init({
widgetKey: "<your-widget-key />",
})
</script>
<script
async
defer
crossorigin="anonymous"
src="https://widget.productlane.com/latest.productlane-widget.min.js"
></script>The first script creates the global Productlane object and calls Productlane.init() with your widget key. The second loads the widget from Productlane's CDN.
The snippet picker above the code switches between HTML, React, Next.js, Vue, React Native, Swift (iOS), Kotlin (Android), and Flutter versions. The React Native, Swift, Kotlin, and Flutter snippets run the web widget inside a WebView, a browser view embedded in your app. The copy button opens a popover where you choose Launcher or Spotlight, the Position, and the Color scheme. The snippet updates to match, so you copy it with those options already set.
Productlane does not offer an npm package for the widget. The React, Next.js, and Vue snippets are small components that load the same CDN script as the HTML snippet, so you install nothing with a package manager.
Widget key
widgetKey links the snippet to your workspace's widget settings. The <your-widget-key /> in the examples is a placeholder, not a JSX element. Replace the whole placeholder, angle brackets included, with your key.
Find your key on the widget settings page. It is a UUID:
Productlane.init({
widgetKey: "<your-widget-key />",
})Widget for Multiple Portals
If Multiple Portals is on, pick the portal this page belongs to from the dropdown above the install snippet. Productlane adds a portalInstance field with that portal's slug, and the widget serves that portal's docs, changelog, roadmap, and requests instead of the Main portal's.
Productlane.init({
widgetKey: "<your-widget-key />",
portalInstance: "product-a",
})Branding
Turn off Show branding in Settings → Widget to remove the Productlane branding. Removing branding needs the Scale plan.
