Image to Blog Generator
Transform educational images into interactive WordPress blog posts
Transform educational images, infographics, and data visualizations into comprehensive, interactive blog posts automatically published to WordPress.
flowchart LR
A["๐ผ๏ธ Image"] --> B["๐ Analyze"]
B --> C["๐ Research"]
C --> D["๐ Write"]
D --> E["๐ค Publish"]
style A fill:#8B0000,color:#fff
style B fill:#189AB4,color:#fff
style C fill:#189AB4,color:#fff
style D fill:#189AB4,color:#fff
style E fill:#8B0000,color:#fffQuick Start
With Image
praisonai recipe run image-to-blog-generator \
--var image_path="/path/to/infographic.png"Auto Topic
praisonai recipe run image-to-blog-generatorWithout an image, generates content about AI/ML fundamentals.
Pipeline Stages
- Image Analysis
Uses GPT-4o vision to extract: – Main topic and context – All components and labels – Data, statistics, percentages – Relationships between elements – Color coding meanings
- Research
Tavily search finds 10 related sources: – Additional context – Expert quotes – Recent developments – Practical applications
- Image Description
Creates a simplified infographic prompt: – Clean, modern design – Blue/teal colour scheme – Key data points highlighted
- Blog Writing
Generates Gutenberg-formatted post: – Tables for data – Lists for key points – Quotes from research – British English
- WordPress Publish
Publishes to WordPress: – Category: AI – Author: praison – Status: publish
Agents
Model: GPT-4o (vision)
Extracts every detail from educational images
ResearcherTool: tavily_search
Finds 10 related sources
Image GeneratorModel: GPT-4o-mini
Creates infographic descriptions
Blog WriterModel: GPT-4o-mini
Writes Gutenberg-formatted posts
Requirements
Environment Variables
export OPENAI_API_KEY="sk-..."
export TAVILY_API_KEY="tvly-..."WordPress Setup
Requires praisonaiwp CLI configured:
pip install praisonaiwp
praisonaiwp config --site mer.vin --user praisonExample Output
| Metric | Value |
|---|---|
| Judge Score | 7.07/10 |
| Agents | 5 |
| Steps | 5 |
| Tokens | ~3000 |