AI-powered editor assistant for WordPress sites. This module integrates an intelligent AI agent directly into the WordPress site editor, enabling users to update pages and control styles through natural language conversations.
- AI Chat Interface: Provides a conversational AI assistant accessible from the WordPress site editor
- Content Generation: Enables users to create, edit, and update page content using natural language prompts
- Style Control: Allows AI-powered manipulation of colors, typography, spacing, and other design elements
- Real-time Editing: Integrates seamlessly with the WordPress block editor for live content updates
- Design Suggestions: Offers intelligent recommendations for improving page design and user experience
- Template Assistance: Helps users create and customize page templates with AI guidance
- Multi-language Support: Provides AI assistance in multiple languages for global users
- Generate page content from simple prompts
- Rewrite and optimize existing content
- Create compelling headlines and call-to-action text
- Generate product descriptions and marketing copy
- Color Management: Change color schemes, palettes, and individual element colors
- Typography Control: Adjust fonts, sizes, weights, and text styling
- Layout Optimization: Modify spacing, alignment, and responsive behavior
- Visual Enhancement: Apply filters, effects, and design improvements
- Conversational AI that understands context and intent
- Contextual suggestions based on current page content
- Real-time preview of AI-suggested changes
- Undo/redo functionality for AI modifications
- Batch operations for multiple elements
-
Content Creation Flow
User opens AI Chat → Describes desired content → AI generates blocks → User reviews/edits → Content applied to page -
Style Modification Flow
User selects elements → Describes style changes → AI applies modifications → User previews results → Changes saved -
Template Design Flow
User requests template → AI analyzes requirements → Generates template structure → User customizes → Template saved
- Add the Newfold Satis to your
composer.json.
composer config repositories.newfold composer https://newfold-labs.github.io/satis- Require the
newfold-labs/wp-module-editor-chatpackage.
composer require newfold-labs/wp-module-editor-chat- Node.js >= 18.0.0
- npm >= 9.0.0
- WordPress >= 6.0
- Gutenberg plugin (latest version recommended)
Add GitHub Auth Token to .npmrc for private repo access.
-
Generate a GitHub personal access token if you haven't:
GitHub Token Settings. -
Locate the
.npmrcfile in your project. -
Add your GitHub token in
.npmrc:@newfold-labs:registry=https://npm.pkg.github.com/ //npm.pkg.github.com/:_authToken=YOUR_GITHUB_TOKEN_HERE -
Save the file.
npm run start# Install dependencies
npm install
# Start development server
npm run start
# Build for production
npm run build
# Run linting
npm run lint:js
npm run lint:js:fix
# Run tests
npm run test
# Format code
npm run formatTo ensure a smooth and error-free release, follow these detailed instructions closely.
Run the Newfold Prep Release github action to automatically bump the version (either patch, minor or major version), and update build and language files all at once. It will create a PR with changed files for manual review. Using this workflow, we can skip all the manual steps below.
-
Checkout a new branch for the release using the format
release/<new_version>. -
Run
npm installto install necessary npm packages. -
Execute
composer installto install PHP dependencies.
It is essential to verify that the version has been appropriately incremented in both the PHP and JavaScript components. Specifically, ensure that:
- PHP constant
NFD_AI_EDITOR_CHAT_VERSIONhas been updated to the intended release version on line 18 of the file/bootstrap.php. This PHP constant dictates the expected location of build files for the module. For example:
define( 'NFD_AI_EDITOR_CHAT_VERSION', '1.0.0' );- JavaScript release version aligns with the desired release by checking line 3 in the
package.jsonfile. For example:
"version": "1.0.0",Manually prepare the release:
-
Run
npm run lint:jsto ensure JavaScript code quality. -
Delete the old build files from the
/builddirectory. -
Execute
npm run buildto build the most recent set of build files. -
Run
composer run i18nto update language files. -
Run
composer run cleanto ensure that PHP code standards are met.
Ensure that these files are committed to the repository, as they are essential components to be incorporated into the upcoming release.
-
Commit all changes and push them to the repository.
-
Create a Pull Request (PR) to the main branch for peer approval. Teammates can check out this branch to verify everything is in order.
-
After approval, merge the PR into the main branch.
-
Go to New Release.
-
Ensure the tag number matches the updated version.
-
Set the title as
Version <new_version>. -
Generate release notes and publish the release.
-
Confirm that
<new_version>exists on both GitHub Tags and Satis.
- Follow WordPress coding standards
- Write comprehensive tests for new features
- Document all API changes
- Ensure accessibility compliance
- Test across multiple browsers and devices
- Use ESLint for JavaScript linting
- Follow PSR-12 for PHP code
- Use Prettier for code formatting
- Write meaningful commit messages
For support and questions:
- Documentation: Module Documentation
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Email: support@newfold.com