Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/gregorytrig/techanum-ai-wp-site-builder/archive/refs/heads/main.zipPrompt To Page Plugin
A WordPress plugin that allows administrators to create new pages through a conversation with an LLM (Large Language Model).
Features
- Create pages from prompts using AI
- Support for OpenRouter LLM provider
- Secure API key handling with encryption
- Admin interface for configuration and chat
- REST API endpoint for programmatic access
Requirements
- WordPress 5.0 or higher
- PHP 7.4 or higher
- cURL extension for making HTTP requests
Installation
- Upload the plugin files to the
/wp-content/plugins/prompt-to-pagedirectory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the 'Plugins' screen in WordPress.
- Navigate to "Prompt To Page" under Settings to configure your API key.
Usage
Configuration
- Go to Settings > Prompt To Page
- Select your LLM provider (currently only OpenRouter is supported)
- Enter your API key from the chosen provider
- Save changes
Creating Pages
After configuration, you can create pages in two ways:
- Admin Settings Page: Use the "Create Page from Prompt" section on the settings page
- Chat Interface: Navigate to Prompt To Page Chat in the admin menu to use a chat interface for page creation
API Key Setup
To use this plugin, you'll need an API key from an LLM provider:
- Visit OpenRouter (recommended)
- Sign up for an account
- Generate an API key
- Enter the key in the plugin settings
Security
The plugin uses WordPress security keys to encrypt your API key before storing it in the database. This ensures that even if someone gains access to your database, they won't be able to retrieve your raw API key.
Development
This plugin is built with extensibility in mind. The architecture supports different LLM connector implementations by implementing the LLM_Connector interface.
License
This project is licensed under the GPL v3 or later.