PHPackages                             sagarsdeshmukh/swayam-ai-chatbot - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. sagarsdeshmukh/swayam-ai-chatbot

ActiveWordpress-plugin[Utility &amp; Helpers](/categories/utility)

sagarsdeshmukh/swayam-ai-chatbot
================================

WordPress Swayam AI Chatbot plugin using LLPhant, Llama 3.2, and Elasticsearch

1.0.0(4mo ago)10GPL-2.0-or-laterPHPPHP ^8.2

Since Feb 25Pushed 4mo agoCompare

[ Source](https://github.com/sagarsdeshmukh/swayam-ai-chatbot)[ Packagist](https://packagist.org/packages/sagarsdeshmukh/swayam-ai-chatbot)[ RSS](/packages/sagarsdeshmukh-swayam-ai-chatbot/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Swayam AI Chatbot - WordPress Plugin
====================================

[](#swayam-ai-chatbot---wordpress-plugin)

[![PHP Version](https://camo.githubusercontent.com/187240af044d09d5b14a1d9d9ebdf3f7a993e4c7bc09bdb46b4ba661a891bf5b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e322532422d626c7565)](https://camo.githubusercontent.com/187240af044d09d5b14a1d9d9ebdf3f7a993e4c7bc09bdb46b4ba661a891bf5b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e322532422d626c7565)[![WordPress](https://camo.githubusercontent.com/995d288ea283699d9d873373e531541ea59d27b7a61ae70bad1824f6c4fbd7e7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f576f726450726573732d362e302532422d626c7565)](https://camo.githubusercontent.com/995d288ea283699d9d873373e531541ea59d27b7a61ae70bad1824f6c4fbd7e7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f576f726450726573732d362e302532422d626c7565)[![License](https://camo.githubusercontent.com/e9677e511af4892d1e604e0dc64b42fe0785ffc4fdbffc6a025ff97b84441d3d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d47504c25323076332d677265656e)](https://camo.githubusercontent.com/e9677e511af4892d1e604e0dc64b42fe0785ffc4fdbffc6a025ff97b84441d3d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d47504c25323076332d677265656e)

A WordPress plugin that provides an AI-powered chatbot using RAG (Retrieval-Augmented Generation) architecture with LLPhant, Llama 3.2 (via Ollama), and Elasticsearch.

Why "Swayam"?
-------------

[](#why-swayam)

Swayam (स्वयं)—an ancient Sanskrit word meaning "self." Your content. Your knowledge. Autonomously intelligent.

Features
--------

[](#features)

- **RAG-Powered Q&amp;A**: Answers questions based on your WordPress content
- **Automatic Content Indexing**: Syncs posts, pages, and custom post types to Elasticsearch
- **Auto-Sync on Publish**: Automatically updates the index when content is published/updated/deleted
- **Customizable Chat Interface**: Shortcode and floating widget options
- **Admin Dashboard**: Easy configuration with connection testing
- **REST API**: Programmatic access to the chatbot
- **Rate Limiting**: Built-in protection against spam
- **PHP 8.2+ Compatible**: Works with PHP 8.2, 8.3, and later versions

**[Download plugin on wordpress.org](https://wordpress.org/plugins/swayam-ai-chatbot/)**

Requirements
------------

[](#requirements)

- **PHP**: 8.2 or higher
- **WordPress**: 6.0 or higher
- **Ollama**: Running locally with Llama 3.2 model
- **Elasticsearch**: 9.x with vector search support
- **Composer**: For dependency management

Installation
------------

[](#installation)

**1. Install the Plugin**

```
# Navigate to your WordPress plugins directory
cd /path/to/wordpress/wp-content/plugins/

# Clone or copy the plugin
cp -r /path/to/swayam-ai-chatbot ./

# Install dependencies
cd swayam-ai-chatbot
composer install
```

**2. Install and Start Ollama**

You can install [Llama 3.2](https://www.llama.com/) using [ollama](https://ollama.com/).

For installing ollama on Linux, run the following command:

```
curl -fsSL https://ollama.com/install.sh | sh
```

For macOS or Windows use the [download](https://ollama.com/download) page.

It is recommended to install Llama 3.2-1B or 3B for optimized CPU/GPU, and RAM usage.

For installing Llama3.2-3B use the following command:

```
ollama run llama3.2:3b
```

You can start interacting to the LLama3.2 model using a chat. To exit, write `/bye` in the chat.

**3. Install and Start Elasticsearch**

```
curl -fsSL https://elastic.co/start-local | sh
```

This script will install Elasticsearch and Kibana using a `docker-compose.yml` file stored in `elastic-start-local` folder.

Elasticsearch and Kibana will run locally at  and .

All the settings of Elasticsearch and Kibana are stored in the `elastic-start-local/.env` file.

You can use the `start` and `stop` commands available in the `elastic-start-local` folder.

To **stop** the Elasticsearch and Kibana Docker services, use the `stop` command:

```
cd elastic-start-local
./stop.sh
```

To **start** the Elasticsearch and Kibana Docker services, use the `start` command:

```
cd elastic-start-local
./start.sh
```

License
-------

[](#license)

[GPL v3](https://github.com/sagarsdeshmukh/swayam-ai-chatbot/blob/main/LICENSE)

Credits
-------

[](#credits)

- [LLPhant](https://github.com/LLPhant/LLPhant) - PHP LLM framework
- [Ollama](https://ollama.com/) - Local LLM runtime
- [Elasticsearch](https://www.elastic.co/elasticsearch/) - Vector database

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance76

Regular maintenance activity

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

130d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/73b0188184085e27029f0917c76dbc21e87c206c01909c3e931d53adf0bb3b3c?d=identicon)[sagarsdeshmukh](/maintainers/sagarsdeshmukh)

---

Top Contributors

[![sagarsdeshmukh](https://avatars.githubusercontent.com/u/5357471?v=4)](https://github.com/sagarsdeshmukh "sagarsdeshmukh (15 commits)")

### Embed Badge

![Health badge](/badges/sagarsdeshmukh-swayam-ai-chatbot/health.svg)

```
[![Health](https://phpackages.com/badges/sagarsdeshmukh-swayam-ai-chatbot/health.svg)](https://phpackages.com/packages/sagarsdeshmukh-swayam-ai-chatbot)
```

###  Alternatives

[bagisto/bagisto

Bagisto Laravel E-Commerce

27.6k172.1k9](/packages/bagisto-bagisto)[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[akeneo/pim-community-dev

Akeneo PIM, the future of catalog management is open!

1.0k624.1k85](/packages/akeneo-pim-community-dev)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[pagemachine/searchable

TYPO3 extension to index and search content with Elasticsearch

1139.9k](/packages/pagemachine-searchable)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
