AI services and tools for PRC Platform.
PRC Copilot is a WordPress plugin that provides AI services and tools for the PRC Platform. It integrates with the ai-services
plugin and provides specialized AI capabilities focused on table data manipulation and generation.
- This plugin is an active work in progress.
- To create a Tier 0 "mcp tool", utilize the php api https://felixarntz.github.io/ai-services/Documentation.html
- WordPress 6.7+
- PHP 8.2+
- Required Plugins:
- prc-platform-core
- ai-services
The plugin provides three main AI features for table manipulation:
- Feature ID:
get-table-caption
- Takes a markdown table as input
- Generates multiple caption options
- Returns results as a JSON array of strings
- Best option is placed as the first element
- Follows Pew Research Center style and voice
- Will return error message for non-tabular data
- Feature ID:
get-table-title
- Takes a markdown table as input
- Highlights the most important data points
- Specially handles population and percentage data
- Returns multiple title options as a JSON array
- Best option is placed as the first element
- Follows Pew Research Center style and voice
- Will return error message for non-tabular data
- Feature ID:
get-table-data
- Generates markdown tables from descriptions
- Sources data exclusively from Pew Research Center
- Focuses on:
- Reports
- Short reads
- Fact sheets
- Handles temporal data requirements:
- Specific years
- Year ranges
- Returns only the markdown table
- Includes validation and error handling
- Will return detailed error message if data cannot be found
- Actively disables Jetpack's AI Assistant to prevent conflicts
- Filters out 'ai-assistant' and 'ai-assistant-support' extensions
This project is licensed under the GPL-2.0+ License - see the LICENSE file for details.