# Inline AI Docs > Inline AI is the answer engine for digital publishers. It adds on-site conversational AI grounded in the publisher's own content and turns every reader question into first-party data, ad inventory, and editorial intelligence. Developer documentation for the Inline AI Widget SDK — a client-side JavaScript SDK that adds on-site conversational AI to any website that runs JavaScript, with a single script tag. Product, pricing & company info: https://getinline.io (machine-readable: https://getinline.io/llms.txt). ## Start here for agents - [Add Inline with an AI agent](https://docs.getinline.io/install.md): A copy-pasteable hub for installing the Inline AI Widget SDK on any JavaScript site — written so a developer or an AI coding agent can do the whole integration end-to-end. ## Widget SDK: Get Started - [Widget SDK overview](https://docs.getinline.io/introduction.md): 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. - [Add the widget to your site](https://docs.getinline.io/quickstart.md): Drop one script tag into your page and the Inline AI Widget renders on your site. Auto mode takes under two minutes and requires no JavaScript. - [Integration modes](https://docs.getinline.io/integration-modes.md): The Inline AI Widget SDK supports three integration modes (auto, programmatic, and hybrid) that differ in how much control you take over placement lifecycle. Compare them and pick the right one for your site. ## Widget SDK: Placements - [Placements](https://docs.getinline.io/placements/overview.md): The seven Inline AI placement types: what each one does, when to use it, and whether it needs a target element. - [Widget](https://docs.getinline.io/placements/widget.md): A sticky, conversational AI sidebar with a floating trigger button. The default placement in auto mode, with no target element or configuration required. - [Search FAB](https://docs.getinline.io/placements/search-fab.md): Add a floating action button for AI search anywhere on the page without a target element. It attaches directly to the document body. - [Search embed](https://docs.getinline.io/placements/search-embed.md): Mount a full-width AI search input bar inside any container element, with control over shape, overlay behavior, and open triggers. - [Search icon](https://docs.getinline.io/placements/search-icon.md): Mount a compact search icon or labeled button into your navigation bar or toolbar that opens the AI search overlay when a user clicks it. - [Key takeaways](https://docs.getinline.io/placements/key-takeaways.md): Render an AI-generated summary block inside a target element to give readers a quick overview of your article or long-form content. - [Single question](https://docs.getinline.io/placements/single-question.md): Distribute AI-generated in-content question pills across your article's paragraphs to drive engagement and surface related queries inline. - [Basic embed](https://docs.getinline.io/placements/basic-embed.md): Embed an AI-powered content block into any container element on your page using a simple element ID, CSS selector, or dynamic matcher. ## Widget SDK: Configuration - [Mount options](https://docs.getinline.io/configuration/mount-options.md): Reference for mount() options: configure search input shape, overlay behavior, FAB position, suggested questions, and per-viewport overlay breakpoints. - [Injection targets](https://docs.getinline.io/configuration/injection-targets.md): Learn the three ways to tell the Inline AI SDK where to inject a placement: by element ID, CSS selector, or dynamic tag and attribute matching. - [Breakpoints](https://docs.getinline.io/configuration/breakpoints.md): Configure placement-level and overlay-level breakpoints to show, hide, or resize Inline AI placements and overlays at specific viewport widths. ## Widget SDK: Events - [Events overview](https://docs.getinline.io/events/overview.md): Learn how to subscribe to SDK lifecycle, search, widget, and placement events to integrate Inline AI with your analytics, UI, and custom page logic. - [Events reference](https://docs.getinline.io/events/reference.md): Complete reference for all Inline AI SDK events, including enum constants, raw string values, payload shapes, and ready-to-use code snippets for each event. ## Widget SDK: Guides - [Programmatic control](https://docs.getinline.io/guides/programmatic-control.md): Mount and unmount placements at runtime, open search with a pre-filled query, inspect active placements, and tear down the SDK for single-page app routing. - [Command queue](https://docs.getinline.io/guides/command-queue.md): The Inline AI command queue buffers SDK method calls made before the script loads. Learn how to use array and callback syntax to set up placements and events safely. ## Widget SDK: SDK Reference - [init() & destroy()](https://docs.getinline.io/api/init.md): Initialize Inline AI in programmatic mode with your publisher ID, and tear it down cleanly with destroy() when you need to reinitialize or navigate away. - [mount()](https://docs.getinline.io/api/mount.md): Mount any Inline AI placement type into a target DOM element, with full control over injection target, position, dimensions, and overlay behavior. - [unmount() & getPlacements()](https://docs.getinline.io/api/unmount.md): Remove a specific placement by ID with unmount(), or inspect all currently mounted placements with getPlacements() to manage the full placement lifecycle. - [open() & close()](https://docs.getinline.io/api/open-close.md): Programmatically open or close the search overlay and sticky widget using open() and close(), with optional query prefill and catalog auto-answer for both targets. - [on() & off()](https://docs.getinline.io/api/events-api.md): Subscribe to SDK lifecycle, placement, and user interaction events with on(), and remove handlers with off() or the unsubscribe function returned by on(). - [Enums](https://docs.getinline.io/api/enums.md): All Inline AI SDK enum objects: named constants for placement types, events, overlay behavior, typography, injection strategies, and FAB positioning. ## Partner API: Get Started - [Partner API](https://docs.getinline.io/partner-api/overview.md): Server-to-server API for Inline AI partners. Programmatic access to publisher data, content, and AI-generated assets. ## Optional - [All docs as one file](https://docs.getinline.io/llms-full.txt): every page concatenated as Markdown.