HomeBook a Demo

Publisher quick start

Inline builds conversational agents for publishers. Readers ask questions about the article in front of them, Inline answers from your own content, and where appropriate it surfaces sponsored products.

Before you start

Send these to your Inline account manager or support@getinline.io:

What to sendWhy
DomainsEvery domain where Inline will run.
Staging environmentDomain and credentials, if you have one.
Sitemap URLSo Inline can learn your site structure.
RSS feedsFor content ingestion and updates.
Custom APIs or MCP serversDocs for any you want Inline to use.

You also need your Publisher ID. Get it from your Inline contact or the settings page of the Inline dashboard.

Allowlisting isn't required, but it's recommended. It ensures Inline can read your content and answer questions about it. Allow this user agent in robots.txt, your WAF, and any bot-management tool:

Inline-AI-Crawler/0.1 (+https://getinline.io; support@getinline.io)
User-agent: Inline-AI-Crawler
Allow: /

To verify that a request really came from Inline, see the crawler reference. Behind Cloudflare? Follow the Cloudflare guide.

2. Test on staging (optional)

Add the snippet to the <head> of your staging pages and replace YOUR_PUBLISHER_ID. Send your Inline contact the staging domain. The embed only runs on registered domains.

<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>

3. Add the embed script

Inline is one <script> tag. There's no server-side API and no build step.

Paste the snippet inside the <head> of your page template and replace YOUR_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>

The ?key= parameter must hold your Publisher ID. Keep the getinline.tech script URL as-is.

On the next page load, the SDK reads your dashboard configuration and renders every enabled placement. By default the Widget sidebar appears with a floating trigger button in the bottom corner. This is auto mode. See integration modes if you need programmatic control instead.

4. Choose where placements appear

The Floating Action Button and Search FAB attach to the page on their own. Every other placement renders inside an element on your page. You can choose that element in one of two ways, and you can mix them per placement.

Anchor divsAutomated targeting
Who sets the positionYouInline, from the dashboard
Template change neededYes, onceNo
Survives a redesignYesOnly if the selector survives
Best forExact, stable placementFast rollout, hard-to-edit sites

Option A: placement anchor divs

Add an empty div where each unit should appear. Inline renders inside it.

<div id="inline-ai-basic-embed"></div>
<div id="inline-ai-integrated-chat-embed"></div>
<div id="inline-ai-search-embed"></div>
<div id="inline-ai-search-icon"></div>
<div id="inline-ai-key-takeaways-embed"></div>

For In-Content Questions, put the ID on the element that wraps your article paragraphs. Inline scans it for spots to insert questions.

<div id="inline-ai-in-content-embed">
  <!-- your article body -->
</div>

Email the IDs you added to support@getinline.io, and Inline connects each placement.

PlacementAnchor div ID
Basic embedinline-ai-basic-embed
Key Takeaways embedinline-ai-key-takeaways-embed
Integrated Chat embedinline-ai-integrated-chat-embed
In-Content Questionsinline-ai-in-content-embed (wraps the article)
Search embedinline-ai-search-embed
Search iconinline-ai-search-icon
Floating Action ButtonNot needed
Search FABNot needed

Rules

  • One div per placement per page. Inline uses the first match.
  • Leave it empty, with no fixed height. Inline sizes it.
  • Include it in the HTML at page load. If JavaScript renders it later, ask Inline about the mount() API.
  • Keep it outside re-rendering React or Vue components. Otherwise the framework wipes Inline's content.
  • Ad slot IDs are separate. They come from Google Ad Manager. See display ads.

The Inline script reserves these names. Don't use them on your pages.

  • IDs: inline-root, inline-root-dev, inline-character-rail, inline-character-chat
  • Attributes: data-inline-placement, data-inline-sdk-placement, data-inline-sdk-ref, data-inline-search-overlay, data-inline-theme, data-inline-hcard
  • Class: inline-ai-native-ad

Option B: automated targeting

Can't edit your templates? Inline targets elements that already exist, from the dashboard. Inline can match by:

  • Element ID
  • CSS selector, such as main > aside:first-child
  • Tag and attribute, for pages with generated IDs and class names

Inline also sets whether the unit goes above, below, or inside the matched element. See injection targets.

Tell your Inline contact before a redesign or CSS upgrade. A renamed class can silently stop a placement from rendering.

5. Troubleshooting Steps

Check that it works

  1. Load any page on your site.
  2. Look for the Widget trigger button in the bottom corner.
  3. Confirm each placement appears where you expect.
  4. Open a placement and ask a question about the page.

Nothing renders? Check these in order:

CheckHow
Script is on the pageView the page source and find the <script> tag.
Publisher ID is correct?key= holds your real ID, not YOUR_PUBLISHER_ID.
Placement is enabledCheck the dashboard.
Domain is registeredAsk your Inline contact.
Page isn't cachedHard-refresh the page.
No errorsOpen the browser console and look for Inline messages.
Answers are empty or genericAllowlist the crawler.

Still stuck? Send the page URL to support@getinline.io.

Optional add-ons

Display ads

Inline can show display ads inside its placements.

  1. Send your Google Ad Manager network code and GAM account email to your Inline account manager.
  2. Accept the Multiple Customer Management (MCM) request Inline emails you.
  3. Add the ads.txt entries Inline sends you.

Custom system prompts

Inline writes two system prompts for you, and you can edit both:

  • Suggested questions controls which questions readers see. Add context about your site, plus example exploratory and transactional questions.
  • Answering questions controls how Inline responds. Add site context, strict rules, example Q&A pairs, and a fallback answer.

Next steps

Need help?

Contact support@getinline.io or sam@getinline.io.