Skip to content

A demo plugin to showcase the integration of the WordPress AI SDK.

Notifications You must be signed in to change notification settings

jonathanbossenger/wp-ai-client-demo

Repository files navigation

WP AI Client Demo

A demonstration plugin showcasing the integration and capabilities of the WordPress AI Client library. This plugin demonstrates how to build AI-powered features in WordPress using both PHP and JavaScript.

Description

WP AI Client Demo provides a practical example of integrating AI capabilities into WordPress. It demonstrates:

  • Text generation using AI
  • Image generation using AI
  • Creating WordPress posts with AI-generated content and featured images
  • Custom WordPress Abilities API integration
  • Admin interface for interacting with AI features

Requirements

  • WordPress 6.0 or higher
  • PHP 8.0 or higher
  • Composer
  • Node.js and npm (for building JavaScript assets)
  • API credentials for an AI provider (configured through the WP AI Client)

Installation

  1. Clone or download this plugin to your WordPress plugins directory:

    cd wp-content/plugins
    git clone [email protected]:jonathanbossenger/wp-ai-client-demo.git
  2. Install PHP dependencies:

    cd wp-ai-client-demo
    composer install
  3. Install JavaScript dependencies and build assets:

    npm install
    npm run build
  4. Activate the plugin through the WordPress admin interface or via WP-CLI:

    wp plugin activate wp-ai-client-demo
  5. Configure your AI provider credentials as required by the WP AI Client library

Usage

Admin Interface

Access the demo tools page from the WordPress admin:

  1. Navigate to Tools > WP AI SDK Demo in your WordPress admin
  2. Use the interface to test AI capabilities

License

GPL-2.0-or-later

Author

Jonathan Bossenger

About

A demo plugin to showcase the integration of the WordPress AI SDK.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published