Generate research-backed infographics with GPT-4, kie.ai, and Gmail
Ready for 3.0What this workflow does
This AI workflow has 13 nodes and runs when someone submits an n8n form (“Infographics Maker”). Along the way it connects Gmail and OpenAI Chat Model. It also calls api.kie.ai over HTTP.
How it runs
Trigger: When someone submits an n8n form (“Infographics Maker”).
- Build Image Prompt (AI Agent): runs an AI agent, with model: Researcher
- Generate Infographic (HTTP Request): calls api.kie.ai (POST)
- Polling Delay (15s) (Wait): waits 15 seconds
- Prepare Error Email (Code): runs custom JavaScript code
- Check Job Status (HTTP Request): calls api.kie.ai
- Send Error Email (Gmail): uses Gmail
- Route by Job Status (Switch): routes items into 3 branches
- Download Generated Image (HTTP Request): calls an HTTP API
- Increment Retry (Code): runs custom JavaScript code
- Email Image to User (Gmail): uses Gmail
…plus 1 more step. See the full node list below.
Services it uses
HTTP calls to: api.kie.ai
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (9)
- AI Agent
@n8n/n8n-nodes-langchain.agent - n8n Form Trigger
n8n-nodes-base.formTrigger - HTTP Request
n8n-nodes-base.httpRequest - Switch
n8n-nodes-base.switch - Gmail
n8n-nodes-base.gmail - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Wait
n8n-nodes-base.wait - Code
n8n-nodes-base.code - If
n8n-nodes-base.if
From the author
How it works - A web form collects your infographic parameters: headline, topic, art style, layout, color palette, aspect ratio, resolution, etc. - An AI Agent (GPT-4 with live web search) researches your topic and writes an optimized prompt for the image…