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 send | Why |
|---|---|
| Domains | Every domain where Inline will run. |
| Staging environment | Domain and credentials, if you have one. |
| Sitemap URL | So Inline can learn your site structure. |
| RSS feeds | For content ingestion and updates. |
| Custom APIs or MCP servers | Docs 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.
1. Allowlist the Inline crawler (recommended)
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>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 divs | Automated targeting | |
|---|---|---|
| Who sets the position | You | Inline, from the dashboard |
| Template change needed | Yes, once | No |
| Survives a redesign | Yes | Only if the selector survives |
| Best for | Exact, stable placement | Fast 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.
| Placement | Anchor div ID |
|---|---|
| Basic embed | inline-ai-basic-embed |
| Key Takeaways embed | inline-ai-key-takeaways-embed |
| Integrated Chat embed | inline-ai-integrated-chat-embed |
| In-Content Questions | inline-ai-in-content-embed (wraps the article) |
| Search embed | inline-ai-search-embed |
| Search icon | inline-ai-search-icon |
| Floating Action Button | Not needed |
| Search FAB | Not 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.
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.
5. Troubleshooting Steps
Check that it works
- Load any page on your site.
- Look for the Widget trigger button in the bottom corner.
- Confirm each placement appears where you expect.
- Open a placement and ask a question about the page.
Nothing renders? Check these in order:
| Check | How |
|---|---|
| Script is on the page | View the page source and find the <script> tag. |
| Publisher ID is correct | ?key= holds your real ID, not YOUR_PUBLISHER_ID. |
| Placement is enabled | Check the dashboard. |
| Domain is registered | Ask your Inline contact. |
| Page isn't cached | Hard-refresh the page. |
| No errors | Open the browser console and look for Inline messages. |
| Answers are empty or generic | Allowlist 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.
- Send your Google Ad Manager network code and GAM account email to your Inline account manager.
- Accept the Multiple Customer Management (MCM) request Inline emails you.
- Add the
ads.txtentries 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
Every placement Inline renders, and which ones need a target.
Integrated chatA full conversational chat embedded in your page.
Integration modesAuto, programmatic, and hybrid.
Crawler referenceUser agent, IP addresses, and Web Bot Auth signature.
Need help?
Contact support@getinline.io or sam@getinline.io.