WP Manifestindependent plugin directory
manifest / ai / simone-ai

Simulation One

AI-powered chatbot interface with WordPress integration and social login support.

by Samybaxy · github.com/samybaxy/simone-ai · website

★ 0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/samybaxy/simone-ai/archive/refs/heads/main.zip

Simulation One (simone-ai)

A modern AI-powered chatbot plugin for WordPress that provides an intelligent conversational interface with seamless WordPress integration and social login support.

🚀 Features

Current Features (Phase 1)

  • 🔐 Advanced Authentication System

    • WordPress user integration
    • Email/username login support
    • Social login (Google, with Facebook & Twitter ready)
    • Secure token-based authentication
    • Session management with 24-hour expiration
  • 💾 Robust Database Architecture

    • Chat session tracking
    • Message history storage
    • User preference management
    • Optimized database queries
  • 🛡️ REST API Infrastructure

    • Modern RESTful endpoints
    • WordPress nonce security
    • Input sanitization and validation
    • Comprehensive error handling
  • 🎨 Modern Design System

    • Dark-themed UI matching modern aesthetics
    • SCSS-based styling with CSS variables
    • Responsive design ready
    • Accessibility-focused components

Upcoming Features

  • React-based chat interface
  • Real-time messaging with WebSocket support
  • GraphQL integration for AI/LLM connectivity
  • WooCommerce order tracking integration
  • Voice input capabilities
  • Multi-language support

📋 Requirements

  • WordPress 6.0 or higher
  • PHP 8.2 or higher
  • MySQL 5.7+ or MariaDB 10.3+
  • Node.js 18+ and npm 8+ (for development)

🔧 Installation

Deployment via GitHub Actions

Note: This plugin is designed for deployment via GitHub Actions to WP Engine. Dependencies are automatically installed during the CI/CD process.

Production Deployment

This plugin is designed to be deployed via GitHub Actions to WP Engine. Push your changes to the staging branch to trigger automatic deployment:

git push origin staging

The GitHub Actions workflow will:

  1. Install Node.js dependencies
  2. Build production assets
  3. Deploy to WP Engine staging environment
  4. Run post-deployment scripts

Manual Installation (For Development/Testing)

  1. Clone the repository into your WordPress plugins directory:

    cd wp-content/plugins
    git clone https://github.com/samybaxy/simone-ai.git
  2. Install dependencies manually:

    cd simone-ai
    composer install --no-dev --optimize-autoloader
    npm install
    npm run build
  3. Activate the plugin through the WordPress admin panel

For Development

  1. Clone the repository:

    git clone https://github.com/samybaxy/simone-ai.git
    cd simone-ai
  2. Install dependencies:

    composer install
    npm install
  3. Start the development server:

    npm start
  4. (Optional) Use wp-env for local development:

    npm run wp-env start

🏗️ Architecture

Plugin Structure

simone-ai/
├── includes/              # PHP classes
│   ├── class-simone-ai.php       # Main plugin class
│   ├── class-auth.php            # Authentication handler
│   ├── class-database.php        # Database operations
│   ├── class-rest-api.php        # REST API endpoints
│   └── class-graphql-client.php  # GraphQL client (coming soon)
├── src/                   # JavaScript source files
│   ├── blocks/           # Gutenberg blocks
│   ├── components/       # React components
│   ├── hooks/           # Custom React hooks
│   ├── utils/           # Utility functions
│   └── styles/          # SCSS styles
├── build/               # Compiled assets (gitignored)
└── languages/           # Translation files

Database Schema

Chat Sessions Table (wp_simone_ai_chat_sessions):

  • id: Session identifier
  • user_id: WordPress user ID
  • session_token: Unique session token
  • title: Session title
  • status: active, archived, or deleted
  • created_at, updated_at: Timestamps

Chat Messages Table (wp_simone_ai_chat_messages):

  • id: Message identifier
  • session_id: Related session
  • message_type: user, assistant, or system
  • content: Message content
  • metadata: Additional message data (JSON)
  • created_at: Timestamp

🔌 API Reference

Authentication Endpoints

Login

POST /wp-json/simone-ai/v1/auth/login
Content-Type: application/json

{
  "username": "user@example.com",
  "password": "password123"
}

Social Login

POST /wp-json/simone-ai/v1/auth/social
Content-Type: application/json

{
  "provider": "google",
  "token": "google-auth-token"
}

Verify Authentication

GET /wp-json/simone-ai/v1/auth/verify

Chat Endpoints

Create Session

POST /wp-json/simone-ai/v1/chat/sessions

Send Message

POST /wp-json/simone-ai/v1/chat/messages
Content-Type: application/json

{
  "session_id": 123,
  "message": "Hello, how can you help me?"
}

🛠️ Development

Available Scripts

  • npm start - Start development server with hot reload
  • npm run build - Build production assets
  • npm run lint:js - Lint JavaScript files
  • npm run lint:css - Lint SCSS files
  • npm run format - Format code with Prettier
  • composer lint - Lint PHP files
  • composer lint:fix - Fix PHP coding standards

Coding Standards

This project follows:

  • WordPress Coding Standards for PHP
  • WordPress ESLint config for JavaScript
  • WordPress Prettier config for formatting
  • SCSS for styling with BEM methodology

Testing

# PHP Unit Tests
composer test

# JavaScript Tests
npm test

# E2E Tests
npm run test:e2e

🤝 Contributing

We welcome contributions! Please see our Contributing Guidelines for details.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

This project is licensed under the GPL v2 or later - see the LICENSE file for details.

🙏 Credits

Developed by the Simulation One Team

Third-party Libraries

🚀 Deployment

GitHub Actions Workflow

The plugin uses GitHub Actions for automated deployment to WP Engine:

  • Trigger: Push to staging branch
  • Build Process: Node.js dependencies → Build assets → Deploy
  • Target Environment: WP Engine staging (biolimitlesstg)
  • Post-deployment: Composer install (production only)

Manual Deployment Steps

  1. Push changes to staging branch
  2. GitHub Actions automatically builds and deploys
  3. Verify deployment on staging environment
  4. Promote to production when ready

📞 Support

  • Documentation: [Coming Soon]
  • Issues: GitHub Issues
  • Email: support@simulationone.com

Made with ❤️ by Simulation One Team