Add Inline with an AI agent
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.
Inline AI is a client-side JavaScript SDK that adds on-site conversational AI to any website that runs JavaScript. Installing it is one <script> tag — there is no server-side API to call and no build step required.
This page is the fast path for an AI agent (or a developer pairing with one). It gives you the snippet, then links to the canonical page for each variation so there's a single source of truth.
Prerequisites
- A Publisher ID from the dashboard at tools.getinline.tech. The SDK will not initialize without it.
- The ability to add a
<script>tag to the site (directly in the HTML, or via a tag manager).
1. Add the embed snippet
Paste this into the site's <head> (or just before </body>), and replace YOUR_PUBLISHER_ID with the real Publisher ID:
<script>
(function(d) {
var s = d.createElement('script');
s.type = 'module';
s.src = 'https://getinline.tech/default/assets/index.js?key=YOUR_PUBLISHER_ID';
(d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
})(window.top.document);
</script>That's the whole integration for auto mode: on the next page load the SDK reads the publisher's dashboard configuration and renders every enabled placement. No JavaScript to write.
2. Pick the right path for the site
Match the site to the canonical guide instead of guessing:
Use auto mode — paste the snippet once and manage placements from the dashboard. This is the quickstart.
React / Vue / Next.js / other SPASingle-page apps should use programmatic mode and call mount() per placement. See integration modes.
The enum of placement types (Widget, Search FAB, Search Embed, Search Icon, Key Takeaways, Single Question, Basic Embed) and other constants.
Init / mount optionsParameters for init() and mount() — targeting, breakpoints, and per-placement config.
Subscribe to lifecycle, search, and widget events via window.InlineAI to wire Inline into the site's own analytics.
Buffer SDK calls made before the script finishes loading using window.InlineAI.cmd.
3. Verify the install
- Load any page on the site.
- The Widget placement appears with a floating trigger button in the bottom corner by default.
- Don't see it? Open the dashboard, confirm the Widget placement is enabled for the publisher, then hard-refresh.
Notes for agents
- No Partner API for signup yet. Onboarding (creating a publisher, getting a Publisher ID) is done in the dashboard, not programmatically. The install itself is fully client-side.
- A machine-readable index of every docs page is at /llms.txt; the full docs as one file are at /llms-full.txt. Append
.mdto any docs page path for its raw Markdown (e.g./quickstart→/quickstart.md; the home page is at/index.md).