Answer customer inquiries instantly at any hour with verified factual accuracy and zero waiting.
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.
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.
<!-- 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 PHP
includes/footer.php - Static HTML
index.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.
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"
};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>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.
100 messages/mo, 1 agent, 30K chars, monthly sync, 0 extra seats (Owner only)
1,000 messages/mo, 2 agents, 150K chars, weekly sync, 2 extra seats, 5 themes
3,000 messages/mo, 6 agents, 500K chars, daily sync, 3 extra seats, custom CSS
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.
SaaS & Software Support Chatbot
Resolve API and technical documentation questions with zero-hallucination accuracy from your docs and sitemaps.
Lead Generation & Consultation Scheduling
Qualify website visitors, capture contact details, and book consultations in real-time.
Setup Guides & Tutorials
Step-by-step technical guides for setting up Knogents on this platform.
How to Add an AI Chatbot to an HTML Website
Complete guide to pasting the standalone vanilla JS snippet into static HTML, PHP, or custom stacks.
How to Add an AI Chatbot via Google Tag Manager
Deploy Knogents across your entire domain using a GTM Custom HTML Tag triggered on Page View.
How to Add an AI Chatbot to Shopify
Step-by-step tutorial on embedding Knogents into Shopify theme.liquid with Storefront API tools.
Explore Other Platform Integrations
Deploy Knogents across Shopify, WordPress, WooCommerce, Wix, Webflow, and custom stacks.
Load the Knogents script cleanly in React and Next.js App Router using next/script.
Embed vanilla JS AI support into any static HTML, PHP, or custom web application.
Shopify Storefront GraphQL chatbot with live catalog search, stock checks, in-chat cart, and WISMO.
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.