Automate Blog Creation & Publishing with AI
Ghostwriter-WP is an AI-powered WordPress automation bot that generates and publishes blog posts effortlessly. Powered by GPT-4o-mini (configurable to any model), this script streamlines content creation, making blogging faster and easier.
- β Generate multiple articles at once from a list of topics
- β Automatically publish to WordPress
- β Configurable AI model for content generation
- β Open-source & community-driven
Ensure you have Python installed, then install the required packages:
pip install openai requests python-dotenv
Create a .env
file and add your credentials:
OPENAI_API_KEY=your_openai_api_key
WORDPRESS_URL=https://yourwebsite.com
WORDPRESS_USERNAME=your_wp_username
WORDPRESS_PASSWORD=your_wp_password
Execute the bot with:
python ai_wordpress_bot.py
- Enter topics (comma-separated)
Enter topics (comma-separated): AI trends, Future of Robotics, HealthTech Advancements
- The script will:
- Generate an article for each topic π
- Publish them directly to WordPress π
[β] Generating article for: AI Trends
[β] Publishing to WordPress...
[β] Successfully posted: "The Future of AI Trends in 2025"
- Modify the AI model in
ai_wordpress_bot.py
- Adjust the formatting, categories, or tags before publishing
- Add SEO enhancements for better ranking
Feel free to fork, improve, and submit PRs. Letβs build the ultimate AI blogging tool together! π‘
MIT License β Free to use and modify.