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.
Add the widget to your page in under 2 minutes.
Integration modesAuto, programmatic, or hybrid. Compare tradeoffs side by side.
Placement types
Placements are the individual AI features the SDK renders on your page. There are seven types:
| Placement | Description | Needs a target element |
|---|---|---|
Widget | Sticky sidebar panel with a floating trigger button | No |
SearchFab | Floating action button for search (fixed to the viewport) | No |
SearchEmbed | Full-width search input bar embedded inline | Yes |
SearchIcon | Compact search button that opens the search overlay | Yes |
KeyTakeaways | AI-generated summary block for the page's content | Yes |
SingleQuestion | In-content question pills distributed across article paragraphs | Yes |
BasicEmbed | Embedded AI content block | Yes |
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.
Add the script tag and do nothing else. Placements render from your dashboard config. No JavaScript required.
Call init() and mount() each placement yourself. You decide what renders, where, and when.
Auto rendering plus access to SDK events and imperative open() / close().
Key capabilities
- Search overlay:
SearchEmbed,SearchIcon, andSearchFaball open the same AI-powered overlay. You can also open it programmatically withwindow.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.