WordPress integration for AxCrew agents, enabling automated content management and site administration.
First ensure you have the Basic Auth plugin installed on your WordPress site. Then install the package:
npm install @ax-crew/tools-wordpress
import { WordPressPost, WordPressConfig } from '@ax-crew/tools-wordpress';
// Configure WordPress credentials
const config: WordPressConfig = {
credentials: {
url: 'your_wordpress_url',
username: 'your_username',
password: 'your_application_password'
}
};
// Create WordPress instance
const wordPressPost = new WordPressPost(config);
// Register with AxCrew
const customFunctions = {
WordPressPost: wordPressPost.toFunction()
};
const crew = new AxCrew(AxCrewConfig, customFunctions);