Skip to main content

Ai-powered chart generation from web data with GPT-4o and WordPress upload

Workflow preview

Workflow preview
100%
Ai-powered chart generation from web data with GPT-4o and WordPress upload preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

AI Powered Chart Generation from Web Data This n8n workflow automates the process of: 1. Scraping real time data from the web using GPT 4o with browsing capability 2. Converting markdown tables int...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.executeworkflowtrigger, @n8n/n8n-nodes-langchain.outputparserstructured, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.httprequest, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.manualtrigger, @n8n/n8n-nodes-langchain.openai, @n8n/n8n-nodes-langchain.toolthink

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Jay Emp0.

Original n8n.io source

1.1 Workflow description

Title
Ai-powered chart generation from web data with GPT-4o and WordPress upload
Workflow name
Ai-powered chart generation from web data with GPT-4o and WordPress upload

AI-Powered Chart Generation from Web Data

This n8n workflow automates the process of:

  1. Scraping real-time data from the web using GPT-4o with browsing capability
  2. Converting markdown tables into Chart.js-compatible JSON
  3. Rendering the chart using QuickChart.io
  4. Uploading the resulting image directly to your WordPress media library

🚀 Use Case

Ideal for content creators, analysts, or automation engineers who need to:

  • Automate generation of visual reports
  • Create marketing-ready charts from live data
  • Streamline research-to-publish workflows

🧠 How It Works

1. Prompt Input

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


2. Web Search + Table Extraction

The Message a model node uses GPT-4o with search to:

  • Perform a real-time query
  • Extract data into a markdown table
  • Return the raw table + citation URLs

3. Chart Generation via AI Agent

The Generate Chart AI Agent:

  • Interprets the table
  • Picks an appropriate chart type (bar, line, doughnut, etc.)
  • Outputs valid Chart.js JSON using a strict schema

4. QuickChart API Integration

The Create QuickChart node:

  • Sends the Chart.js config to QuickChart.io
  • Renders the chart into a PNG image

5. WordPress Image Upload

The Upload image node:

  • Uploads the PNG to your WordPress media library using REST API
  • Uses proper headers for filename and content-type
  • Returns the media GUID and full image URL

🧩 Nodes Used

  • Manual Trigger or Execute Workflow Trigger
  • OpenAI Chat Model (GPT-4o)
  • LangChain Agent (Chart Generator)
  • LangChain OutputParserStructured
  • HTTP Request (QuickChart API + WordPress Upload)
  • Code (Final result formatting)

🗂 Output Format

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"
}

⚙️ Requirements

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

📌 Notes

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.

🖼 Sample Output

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When Executed by Another Workflow

Type / Role
n8n-nodes-base.executeWorkflowTrigger - executeWorkflowTrigger
Config choices
Version 1.1

Block 2 - QuickChart Object Schema

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.2

Block 3 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 4 - Upload image2

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 5 - Generate Chart AI agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.7

Block 6 - When clicking ‘Execute workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 7 - Message a model

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 8 - Think1

Type / Role
@n8n/n8n-nodes-langchain.toolThink - toolThink
Config choices
Version 1

Block 9 - Create QuickChart

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 10 - Code

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 11 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Ai-powered chart generation from web data with GPT-4o and WordPress upload
Complexity advanced
Nodes 15
Categories Content Creation, Multimodal AI
Author Jay Emp0
Published 24 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6361/6361.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Ai-powered chart generation from web data with GPT-4o and WordPress upload do?

AI Powered Chart Generation from Web Data This n8n workflow automates the process of: 1. Scraping real time data from the web using GPT 4o with browsing capability 2. Converting markdown tables int...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.