Answer customer inquiries instantly at any hour with verified factual accuracy and zero waiting.
WordPress Chatbot: Add an AI Chatbot for WordPress
Add an AI assistant to WordPress in minutes without heavy plugins or MySQL bloat. Instead of configuring an external API key inside PHP settings, drop a single script so your chatbot answers visitor questions grounded in your WordPress pages, posts, PDFs, and Excel sheets—with full chat history and booking capture via WPCode, functions.php, or Gutenberg.
Three Ways to Install on WordPress
Use WPCode for a quick no-code install, hook directly into your child theme's functions.php, or drop an inline chat widget into any Gutenberg page.
Site-Wide Floating Widget via WPCode (Recommended)
- 1. Install and activate the free WPCode plugin from Plugins > Add New (or use your theme's built-in footer script box).
- 2. Go to Code Snippets > Header & Footer and scroll to the Footer box.
- 3. Paste the snippet below with your agent ID and click Save Changes.
<!-- 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>Zero-Plugin Install via Child Theme functions.php
Add this wp_footer hook to your child theme's functions.php file so the async script loads on every frontend page without installing a snippet plugin.
add_action('wp_footer', function () {
?>
<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>
<?php
});Inline Chat Inside a Page (Gutenberg Custom HTML Block)
In the WordPress block editor, insert a Custom HTML block and paste the container div and inline script below together.
<div id="rag-inline-bot" style="width: 100%; height: 600px; min-height: 450px;"></div>
<script>
window.widgetConfig = {
chatbotId: "YOUR_CHATBOT_ID",
display: "inline"
};
</script>
<script
async
data-id="YOUR_CHATBOT_ID"
id="knogents-widget-script"
type="text/javascript"
src="https://knogents.com/embed.js"
></script>Built for Content-Heavy WordPress Sites
Keep WordPress fast while offloading document parsing, vector search in PostgreSQL pgvector, and lead capture to Knogents.
Automated WordPress Sitemap Sync
Connect /wp-sitemap.xml, Yoast SEO, or RankMath sitemaps. Knogents crawls your published posts and pages and re-indexes changes automatically on a schedule.
- Monthly sync on Free, weekly on Basic, daily on Standard
- Excludes wp-admin and private draft paths
Excel & CSV Table Parsing
Upload multi-sheet .xlsx, .xls, or .csv pricing sheets, directories, or product catalogs. Column headers stay attached across chunks so tabular answers remain accurate.
- Preserves row and column context for pricing and SKUs
- Eliminates flattened spreadsheet hallucinations
PDF, Word & Docs grounded in your knowledge base to minimize hallucinations
Upload .pdf, .docx, .md, and .txt manuals or policy docs. Cosine similarity thresholds filter irrelevant passages, and every answer links directly to its source.
- Verified answers grounded strictly in your reference files
- Refuses to guess when facts are missing
Consultation Scheduling & Email Alerts
Detect natural language date and time requests right inside the chat, check for scheduling conflicts, and deliver visitor contact details and notes straight to your inbox.
- Instant email notifications for leads and appointments
- Full transcripts and analytics in your Knogents dashboard
Flat Monthly Plans
Start free on WordPress and scale with predictable quotas, team seats, and modular add-ons.
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
Clear expectations before installing Knogents on WordPress.
- Running WooCommerce? See our dedicated WooCommerce chatbot guide for product CSV exports and store catalog tips.
- No WP Admin live-chat inbox: Knogents is an automated AI agent. Captured leads and bookings arrive in your email inbox and dashboard.
- Websites only: No social DM or external messaging inbox automation.
- No flowchart builder or native HubSpot/Salesforce sync: Configure agents with prompts and documents, and review analytics inside your Knogents workspace.
Frequently Asked Questions
Common technical and setup questions for WordPress site owners.
How do I install Knogents on WordPress?
The fastest way is using the free WPCode plugin: in WP Admin, go to Code Snippets > Header & Footer, paste the Knogents embed snippet into the Footer box, and click Save. If you prefer zero extra plugins, paste the snippet into your theme's footer script settings or hook it into wp_footer in your child theme's functions.php.
Does Knogents require a WordPress.org plugin?
No. Knogents loads as a standalone, under 20 KB vanilla JavaScript embed script with zero external library dependencies. Skipping a heavy PHP plugin avoids extra MySQL tables, prevents PHP memory overhead, and keeps WordPress core updates from breaking your widget.
Can I embed the chatbot inline inside a specific WordPress page?
Yes. Open any page in the WordPress Gutenberg editor (such as /contact or /support), add a Custom HTML block, and paste <div id="rag-inline-bot"></div> together with the inline widgetConfig and embed.js snippet right below it.
How does Knogents stay updated when I publish or edit WordPress posts?
Connect your WordPress XML sitemap (/wp-sitemap.xml, Yoast SEO, or RankMath) inside the Knogents dashboard. Knogents automatically re-crawls connected URLs on a schedule (monthly on Free, weekly on Basic, daily on Standard) to pick up new and updated pages.
Does Knogents work with WordPress caching plugins like WP Rocket or LiteSpeed Cache?
Yes. Because embed.js loads asynchronously on the client side and never queries your WordPress database on page load, it works alongside page caching and CDN plugins without hurting TTFB or Core Web Vitals.
How does human follow-up work compared to WordPress live-chat plugins like Tidio?
Knogents is an automated AI agent and does not include a shared human live-chat inbox inside WP Admin. When a visitor wants to speak with your team or book a consultation, the agent detects dates and times, checks for scheduling conflicts, captures their name, email, and notes, and sends an instant email alert to your inbox.
Solutions Powered by this Integration
Explore autonomous AI customer service and sales workflows built for your platform.
Lead Generation & Consultation Scheduling
Qualify website visitors, capture contact details, and book consultations in real-time.
Consulting Practices AI Assistant
Showcase client case studies, answer methodology questions, and qualify inbound consulting leads.
Setup Guides & Tutorials
Step-by-step technical guides for setting up Knogents on this platform.
How to Add an AI Chatbot to WordPress
Integrate Knogents into WordPress via header/footer code plugins or child theme functions.
How to Create an AI Chatbot Without Coding
Deploy a production-ready AI agent with custom colors, greeting messages, and knowledge sync in minutes.
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.
AI product recommendation and policy knowledge agent for WordPress WooCommerce stores.
Add responsive AI support to Webflow projects via Custom Code head/footer integrations.
Embed an AI customer service agent into Wix using Custom Code settings or tracking tools.
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.