This n8n workflow automates the process of:
Ideal for content creators, analysts, or automation engineers who need to:
Trigger the workflow manually or via another workflow with a prompt string, e.g.:
Generate a graph of apple's market share in the mobile phone market in Q1 2025
The Message a model node uses GPT-4o with search to:
The Generate Chart AI Agent:
The Create QuickChart node:
The Upload image node:
Manual Trigger or Execute Workflow TriggerOpenAI Chat Model (GPT-4o)LangChain Agent (Chart Generator)LangChain OutputParserStructuredHTTP Request (QuickChart API + WordPress Upload)Code (Final result formatting)The final Code node returns:
{
"research": { ...raw markdown table + citations... },
"graph_data": { ...Chart.js JSON... },
"graph_image": { ...WordPress upload metadata... },
"result_image_url": "https://your-wordpress.com/wp-content/uploads/...png"
}
OpenAI credentials (GPT-4o or GPT-4o-mini)
WordPress REST API credentials with media write access
QuickChart.io (free tier works)
n8n v1.25+ recommended
Chart style and format are determined dynamically based on your table structure and AI interpretation.
Make sure your OpenAI and WordPress credentials are connected properly.
Outputs are schema-validated to ensure reliable rendering.
