{"id":280227,"date":"2026-02-25T05:47:18","date_gmt":"2026-02-25T05:47:18","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/rag-chatbot\/"},"modified":"2026-02-25T05:52:43","modified_gmt":"2026-02-25T05:52:43","slug":"swayam-ai-chatbot","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/swayam-ai-chatbot\/","author":16791826,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.0","stable_tag":"1.0.0","tested":"6.9.4","requires":"6.0","requires_php":"8.2","requires_plugins":null,"header_name":"Swayam AI Chatbot","header_author":"Sagar Deshmukh","header_description":"AI-powered chatbot using RAG (Retrieval-Augmented Generation) with LLPhant, Llama 3.2, and Elasticsearch","assets_banners_color":"294271","last_updated":"2026-02-25 05:52:43","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/github.com\/sagarsdeshmukh","rating":0,"author_block_rating":0,"active_installs":0,"downloads":178,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"sagardeshmukh","date":"2026-02-25 05:52:43"}},"upgrade_notice":{"1.0.0":"<p>Initial release of Swayam AI Chatbot.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3469066,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3469066,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":3469066,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3469066,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3469066,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3469066,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3469066,"resolution":"4","location":"assets","locale":""},"screenshot-5.png":{"filename":"screenshot-5.png","revision":3469066,"resolution":"5","location":"assets","locale":""}},"screenshots":{"1":"Admin settings page with Ollama and Elasticsearch configuration","2":"Content sync section showing indexed documents","3":"Floating chat widget on the frontend","4":"Shortcode-embedded chatbot in a page","5":"Chat conversation showing RAG-powered responses with sources"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2353,2364,23025,226124,70446],"plugin_category":[],"plugin_contributors":[256559],"plugin_business_model":[],"class_list":["post-280227","plugin","type-plugin","status-publish","hentry","plugin_tags-ai","plugin_tags-chatbot","plugin_tags-elasticsearch","plugin_tags-llm","plugin_tags-rag","plugin_contributors-sagardeshmukh","plugin_committers-sagardeshmukh"],"banners":{"banner":"https:\/\/ps.w.org\/swayam-ai-chatbot\/assets\/banner-772x250.png?rev=3469066","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/swayam-ai-chatbot\/assets\/icon-128x128.png?rev=3469066","icon_2x":"https:\/\/ps.w.org\/swayam-ai-chatbot\/assets\/icon-256x256.png?rev=3469066","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/swayam-ai-chatbot\/assets\/screenshot-1.png?rev=3469066","caption":"Admin settings page with Ollama and Elasticsearch configuration"},{"src":"https:\/\/ps.w.org\/swayam-ai-chatbot\/assets\/screenshot-2.png?rev=3469066","caption":"Content sync section showing indexed documents"},{"src":"https:\/\/ps.w.org\/swayam-ai-chatbot\/assets\/screenshot-3.png?rev=3469066","caption":"Floating chat widget on the frontend"},{"src":"https:\/\/ps.w.org\/swayam-ai-chatbot\/assets\/screenshot-4.png?rev=3469066","caption":"Shortcode-embedded chatbot in a page"},{"src":"https:\/\/ps.w.org\/swayam-ai-chatbot\/assets\/screenshot-5.png?rev=3469066","caption":"Chat conversation showing RAG-powered responses with sources"}],"raw_content":"<!--section=description-->\n<h4>Why \"Swayam\"?<\/h4>\n\n<p>Swayam (\u0938\u094d\u0935\u092f\u0902)\u2014an ancient Sanskrit word meaning \"self.\" Your content. Your knowledge. Autonomously intelligent.<\/p>\n\n<p>Swayam AI Chatbot is a WordPress plugin that provides an intelligent chatbot powered by Retrieval-Augmented Generation (RAG) technology. It indexes your WordPress content and uses AI to answer visitor questions based on your actual posts, pages, and custom post types.<\/p>\n\n<h4>Features<\/h4>\n\n<ul>\n<li><strong>RAG-Powered Q&amp;A<\/strong> - Answers questions using your actual WordPress content as context<\/li>\n<li><strong>Automatic Content Indexing<\/strong> - Syncs posts, pages, and custom post types to a vector database<\/li>\n<li><strong>Auto-Sync on Publish<\/strong> - Automatically updates the index when content is published, updated, or deleted<\/li>\n<li><strong>Customizable Chat Interface<\/strong> - Use the shortcode or floating widget<\/li>\n<li><strong>Admin Dashboard<\/strong> - Easy configuration with connection testing<\/li>\n<li><strong>REST API<\/strong> - Programmatic access to the chatbot<\/li>\n<li><strong>Rate Limiting<\/strong> - Built-in protection against spam<\/li>\n<\/ul>\n\n<h4>Shortcode Usage<\/h4>\n\n<p>Embed the chatbot on any page or post:<\/p>\n\n<pre><code>[swayam_ai_chatbot]\n<\/code><\/pre>\n\n<p>With custom attributes:<\/p>\n\n<pre><code>[swayam_ai_chatbot title=\"Ask about our products\" placeholder=\"What would you like to know?\"]\n<\/code><\/pre>\n\n<h4>External Services<\/h4>\n\n<p>This plugin connects to the following external services:<\/p>\n\n<p><strong>Ollama (Required)<\/strong>\nThis plugin requires a running Ollama instance to generate embeddings and chat responses using the Llama 3.2 model.<\/p>\n\n<ul>\n<li>Ollama website: <a href=\"https:\/\/ollama.com\/\">https:\/\/ollama.com\/<\/a><\/li>\n<li>Ollama Privacy Policy: <a href=\"https:\/\/ollama.com\/privacy\">https:\/\/ollama.com\/privacy<\/a><\/li>\n<li>Ollama Terms of Service: <a href=\"https:\/\/ollama.com\/terms\">https:\/\/ollama.com\/terms<\/a><\/li>\n<\/ul>\n\n<p>Ollama runs locally on your server or a server you control. No data is sent to third-party cloud services unless you configure it to connect to a remote Ollama instance.<\/p>\n\n<p><strong>Elasticsearch (Required)<\/strong>\nThis plugin requires an Elasticsearch instance to store vector embeddings and perform semantic search.<\/p>\n\n<ul>\n<li>Elasticsearch website: <a href=\"https:\/\/www.elastic.co\/elasticsearch\/\">https:\/\/www.elastic.co\/elasticsearch\/<\/a><\/li>\n<li>Elastic Privacy Policy: <a href=\"https:\/\/www.elastic.co\/legal\/privacy-statement\">https:\/\/www.elastic.co\/legal\/privacy-statement<\/a><\/li>\n<li>Elastic Terms of Service: <a href=\"https:\/\/www.elastic.co\/legal\/elastic-license\">https:\/\/www.elastic.co\/legal\/elastic-license<\/a><\/li>\n<\/ul>\n\n<p>Elasticsearch can run locally on your server. If using Elastic Cloud, your indexed content will be stored on Elastic's servers according to their privacy policy.<\/p>\n\n<p><strong>Data Transmitted<\/strong>\n* To Ollama: Post content for embedding generation, user questions for response generation\n* To Elasticsearch: Post content, titles, excerpts, URLs, and vector embeddings<\/p>\n\n<!--section=installation-->\n<h4>Requirements<\/h4>\n\n<ul>\n<li>PHP 8.2 or higher<\/li>\n<li>WordPress 6.0 or higher<\/li>\n<li>Ollama running locally with Llama 3.2 model<\/li>\n<li>Elasticsearch 8.x with vector search support<\/li>\n<li>Composer (for dependency installation)<\/li>\n<\/ul>\n\n<h4>Installation Steps<\/h4>\n\n<ol>\n<li>Upload the <code>swayam-ai-chatbot<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Navigate to the plugin directory and run <code>composer install<\/code> to install dependencies<\/li>\n<li>Install and start Ollama with the Llama 3.2 model (<code>ollama pull llama3.2:3b<\/code>)<\/li>\n<li>Install and start Elasticsearch<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Go to Settings &gt; Swayam AI Chatbot to configure the plugin<\/li>\n<li>Test connections and sync your content<\/li>\n<\/ol>\n\n<h4>Setting up Ollama<\/h4>\n\n<pre><code># Install Ollama (macOS)\nbrew install ollama\n\n# Or download from https:\/\/ollama.com\/download\n\n# Pull the Llama 3.2 model\nollama pull llama3.2:3b\n\n# Start Ollama server\nollama serve\n<\/code><\/pre>\n\n<h4>Setting up Elasticsearch<\/h4>\n\n<pre><code># Quick start with Docker\ncurl -fsSL https:\/\/elastic.co\/start-local | sh\n\ncd elastic-start-local\n.\/start.sh\n<\/code><\/pre>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20this%20plugin%20work%20with%20any%20ai%20model%3F\"><h3>Does this plugin work with any AI model?<\/h3><\/dt>\n<dd><p>Currently, the plugin is designed to work with Ollama running the Llama 3.2 model. Support for additional models may be added in future versions.<\/p><\/dd>\n<dt id=\"is%20my%20content%20sent%20to%20external%20servers%3F\"><h3>Is my content sent to external servers?<\/h3><\/dt>\n<dd><p>By default, both Ollama and Elasticsearch run locally on your server, so no data leaves your infrastructure. If you configure remote instances, data will be transmitted to those servers.<\/p><\/dd>\n<dt id=\"can%20i%20customize%20the%20chat%20appearance%3F\"><h3>Can I customize the chat appearance?<\/h3><\/dt>\n<dd><p>Yes, the plugin includes CSS that you can override in your theme. Key CSS variables are available for customization including colors, border radius, and more.<\/p><\/dd>\n<dt id=\"how%20do%20i%20use%20the%20chatbot%20on%20a%20specific%20page%3F\"><h3>How do I use the chatbot on a specific page?<\/h3><\/dt>\n<dd><p>Use the shortcode <code>[swayam_ai_chatbot]<\/code> on any page or post. You can also enable the floating widget in settings to show it on all pages.<\/p><\/dd>\n<dt id=\"the%20chatbot%20says%20it%20cannot%20find%20relevant%20content\"><h3>The chatbot says it cannot find relevant content<\/h3><\/dt>\n<dd><p>Make sure you have synced your content in Settings &gt; Swayam AI Chatbot. Click \"Sync All Content\" to index your posts and pages.<\/p><\/dd>\n<dt id=\"connection%20to%20ollama%2Felasticsearch%20fails\"><h3>Connection to Ollama\/Elasticsearch fails<\/h3><\/dt>\n<dd><p>If WordPress runs in Docker, use <code>http:\/\/host.docker.internal:11434<\/code> for Ollama and <code>http:\/\/host.docker.internal:9200<\/code> for Elasticsearch instead of localhost.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<li>RAG-powered Q&amp;A with Llama 3.2 and Elasticsearch<\/li>\n<li>Shortcode and floating widget support<\/li>\n<li>Auto-sync on post publish\/update\/delete<\/li>\n<li>Admin settings page with connection testing<\/li>\n<li>REST API endpoint<\/li>\n<li>Customizable chat title and placeholder<\/li>\n<li>Rate limiting for spam protection<\/li>\n<\/ul>","raw_excerpt":"AI-powered chatbot using RAG (Retrieval-Augmented Generation) to answer questions based on your WordPress content.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/280227","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=280227"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/sagardeshmukh"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=280227"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=280227"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=280227"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=280227"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=280227"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=280227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}