HomeIntegrationsCustom Website Chatbot
Universal Vanilla JS Embed (Under 20 KB)

Custom Website Chatbot: Add an AI Chatbot for Any Website

Deploy an AI-powered custom website chatbot in seconds with one zero-dependency JavaScript snippet for PHP, Laravel, Django, Rails, Go, or custom HTML. Automate customer support with AI automation trained on your XML sitemap, PDFs, and Excel sheets.

Zero external dependenciesFloating, inline, and fullscreen modesScheduled sitemap re-indexing

Install in Your Global Layout File

Paste this snippet before the closing </body> tag. The script loads asynchronously so it never blocks page rendering or modifies your backend routes.

layout.html (before </body>)HTML / JS
<!-- Knogents AI Agent -->
<script>
  window.widgetConfig = {
    chatbotId: "YOUR_CHATBOT_ID"
  };
</script>
<script
  async
  data-id="YOUR_CHATBOT_ID"
  id="knogents-widget-script"
  type="text/javascript"
  src="https://knogents.com/embed.js"
></script>

Common Template Locations

  • Laravel (Blade)resources/views/layouts/app.blade.php
  • Django / FastAPI (Jinja)templates/base.html
  • Ruby on Rails (ERB)app/views/layouts/application.html.erb
  • ASP.NET (Razor)Views/Shared/_Layout.cshtml
  • Vanilla PHPincludes/footer.php
  • Static HTMLindex.html (before </body>)

Three Display Modes Out of the Box

Switch between a corner launcher, an embedded page section, or a full-window support portal using window.widgetConfig.

01 / DEFAULT

Floating Widget

Renders a bottom-right or bottom-left launcher bubble with unread indicators across every page on your site.

window.widgetConfig = {
  chatbotId: "YOUR_ID"
};
02 / EMBEDDED

Inline Container

Mounts directly inside your /support or /contact page. Make sure the target div exists in the DOM before the script runs.

<div id="rag-inline-bot"></div>

<script>
  window.widgetConfig = {
    chatbotId: "YOUR_ID",
    display: "inline"
  };
</script>
03 / PORTAL

Fullscreen Portal

Expands to fill the entire browser viewport. Built for dedicated help subdomains like help.yourdomain.com.

window.widgetConfig = {
  chatbotId: "YOUR_ID",
  display: "fullscreen"
};

What Your Embedded Agent Can Do

All document parsing, vector search in PostgreSQL pgvector, and conversation logging run on Knogents infrastructure.

Excel, CSV, PDF & Docs Ingestion

Upload multi-sheet .xlsx, .xls, and .csv files alongside .pdf, .docx, .md, and .txt manuals. Our table chunker keeps column headers attached to every chunk so price lists and SKU tables stay accurate.

Automated Sitemap Sync & Grounding

Connect your sitemap.xml or individual URLs to re-index changes automatically (monthly on Free, weekly on Basic, daily on Standard). Every answer filters by cosine similarity and links directly to the source page or file.

In-Chat Meeting & Lead Capture

When a visitor asks to book a call or consultation, the agent parses natural language dates and times, checks for scheduling conflicts, and captures their name, email, and project notes directly in chat.

Instant Email Alerts & Team Access

Captured leads and appointment details are sent straight to your inbox and logged in your dashboard. Invite team members with custom roles, inspect full conversation transcripts, and style the widget with themes or custom CSS.

Flat Monthly Plans

Predictable quotas without per-seat helpdesk pricing. Add extra volume anytime.

Free ($0/mo)

100 messages/mo, 1 agent, 30K chars, monthly sync, 0 extra seats (Owner only)

Start free
Basic ($29/mo)

1,000 messages/mo, 2 agents, 150K chars, weekly sync, 2 extra seats, 5 themes

Details
Standard ($59/mo)

3,000 messages/mo, 6 agents, 500K chars, daily sync, 3 extra seats, custom CSS

Details

Optional add-ons: +1,500 messages ($10/mo), +1 agent ($8/mo), Remove Branding ($10/mo).

Scope & Boundaries

Knogents is built for automated website support and lead capture. It is not a full helpdesk suite.

  • No human live-chat inbox: Support reps do not reply live inside the widget. Escalations go to your inbox via email alerts.
  • Websites only: No social DM or external messaging inbox automation.
  • No visual flowchart builder: Agents are driven by prompts and document RAG rather than rigid drag-and-drop trees.
  • No ticketing CRM or native HubSpot/Salesforce sync: Leads and transcripts live in your Knogents dashboard and email notifications.

Frequently Asked Questions

Technical answers for deploying Knogents on custom web stacks.

Does Knogents work with PHP, Laravel, Django, Rails, Go, or custom HTML?

Yes. Knogents embed.js is a standalone vanilla JavaScript loader with zero external dependencies. It works with any backend or templating engine, including Laravel Blade, Django/Jinja, Ruby on Rails ERB, ASP.NET Razor, Go html/template, and plain PHP or HTML. Place the snippet right before the closing </body> tag in your shared layout file.

What display modes can I configure in window.widgetConfig?

You can run the widget in three modes: 'floating' (the default bottom-left or bottom-right chat launcher), 'inline' (renders directly inside a <div id="rag-inline-bot"></div> element on any page), and 'fullscreen' (fills the browser viewport for dedicated help or support portals).

Will embed.js slow down my website or hurt Core Web Vitals?

No. The loader script is under 20 KB, has zero third-party library dependencies, and loads with the async attribute so it does not block HTML parsing or initial page rendering.

How does Knogents index and refresh content on custom web apps?

Submit your sitemap.xml URL or individual public page URLs inside the Knogents dashboard, and upload supporting files (.pdf, .docx, .xlsx, .xls, .csv, .md, or .txt). Knogents automatically re-crawls connected URLs on a schedule: monthly on Free, weekly on Basic, and daily on Standard.

How does human follow-up work if a visitor needs a real person?

Knogents is an automated AI agent and does not include a shared human live-chat helpdesk console. When a visitor asks for a consultation or needs human help, the agent captures their name, email, and notes (or books a time slot with conflict checking) and sends an instant email alert to your inbox.

Ship Your Custom Site AI Agent Today

Connect your sitemap, upload your PDFs or spreadsheets, and paste the embed snippet into your layout file.

Solutions Powered by this Integration

Explore autonomous AI customer service and sales workflows built for your platform.

Setup Guides & Tutorials

Step-by-step technical guides for setting up Knogents on this platform.

Explore Other Platform Integrations

Deploy Knogents across Shopify, WordPress, WooCommerce, Wix, Webflow, and custom stacks.

24/7 STOREFRONT ASSISTANT

Deploy Knogents on Your Website in 2 Minutes

Connect your website sitemap, upload your documentation or product catalog, and embed with a single snippet.

Free tier includes 100 messages/mo
No credit card required
Under 20 KB vanilla script