Widget SDK overview

The Inline AI Widget SDK is a JavaScript embed that adds AI search, key takeaways, in-content questions, and a conversational sidebar to any website. One script tag, seven placement types, zero backend work.

The Widget SDK is a single JavaScript file you load on your page. It exposes window.InlineAI and renders one or more placements: individual AI-powered features like a search overlay, an article summary, or a sticky sidebar panel. Placements render automatically from your dashboard configuration, or you can mount them explicitly from your own JavaScript.

Placement types

Placements are the individual AI features the SDK renders on your page. There are seven types:

PlacementDescriptionNeeds a target element
WidgetSticky sidebar panel with a floating trigger buttonNo
SearchFabFloating action button for search (fixed to the viewport)No
SearchEmbedFull-width search input bar embedded inlineYes
SearchIconCompact search button that opens the search overlayYes
KeyTakeawaysAI-generated summary block for the page's contentYes
SingleQuestionIn-content question pills distributed across article paragraphsYes
BasicEmbedEmbedded AI content blockYes

Widget and SearchFab attach to the page body by default and don't need a target element. They're the fastest way to get AI features on a page. The other five placements require you to specify where they should render using an element ID, a CSS selector, or dynamic attribute matching.

Integration modes

The SDK supports three integration modes. All three use the same script tag; the mode is determined by what (if anything) you push into the command queue before the script loads.

Auto mode

Add the script tag and do nothing else. Placements render from your dashboard config. No JavaScript required.

Programmatic mode

Call init() and mount() each placement yourself. You decide what renders, where, and when.

Hybrid mode

Auto rendering plus access to SDK events and imperative open() / close().

Key capabilities

  • Search overlay: SearchEmbed, SearchIcon, and SearchFab all open the same AI-powered overlay. You can also open it programmatically with window.InlineAI.open().
  • Key takeaways: reads the page content and renders a concise AI summary. Drop it in a sidebar or above the article body.
  • In-content questions: injects clickable question pills into your article, distributed across paragraphs. Limit and strategy are both configurable.
  • Sticky sidebar widget: a persistent conversational panel. A floating trigger button opens a sidebar where readers ask follow-ups scoped to the page content.
© 2026 Inline AI