The WP AI Client enables WordPress to communicate with generative AI models of varying capabilities via a uniform APIAPI An API or Application Programming Interface is a software intermediary that allows programs to interact with each other and share data in limited, clearly defined ways..
The WP AI Client is built on top of the PHP AI Client, and specifically adapted for the WordPress ecosystem.
Features
Client-side JavaScriptJavaScript JavaScript or JS is an object-oriented computer programming language commonly used to create interactive effects within web browsers. WordPress makes extensive use of JS for a better user experience. While PHP is executed on the server, JS executes within a user’s browser. https://www.javascript.com API: A JavaScript API with a similar prompt builder, using REST endpoints under the hood to connect to the server-side infrastructure.
WordPress-native Prompt Builder: Fluent API for building and configuring AI prompts, built directly on top of the PHPPHP PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML. https://www.php.net/manual/en/preface.php AI Client while following WordPress Coding StandardsWordPress Coding Standards The Accessibility, PHP, JavaScript, CSS, HTML, etc. coding standards as published in the WordPress Coding Standards Handbook. May also refer to The collection of PHP_CodeSniffer rules (sniffs) used to format and validate PHP code developed for WordPress according to the PHP coding standards. and best practices.
Admin Settings Screen: Integrated settings screen in WP Admin to provision AI providerProvider An AI service offering models for generation, embeddings, or other capabilities (e.g., Anthropic, Google, OpenAI). API credentials.
Automatic Credential Wiring: Automatic wiring up of AI provider API credentials based on storage in a WordPress database option.
PSR-compliant HTTPHTTP HTTP is an acronym for Hyper Text Transfer Protocol. HTTP is the underlying protocol used by the World Wide Web and this protocol defines how messages are formatted and transmitted, and what actions Web servers and browsers should take in response to various commands. Client: HTTP client implementation using the WordPress HTTP API, fully compatible with PSR standards.