Generate blog posts and social media content with GPT-4.1 and Pexels images
Ready for 3.0What this workflow does
This AI workflow has 11 nodes and runs when someone submits an n8n form (“AI Content Generator”). Along the way it connects OpenAI and OpenAI Chat Model. It also calls api.pexels.com over HTTP.
How it runs
Trigger: When someone submits an n8n form (“AI Content Generator”).
- Create Content with AI (AI Agent): runs an AI agent, with model: OpenAI 4.1 mini
- Find suitable content keyword (OpenAI): uses OpenAI
- Pexels Image Search (HTTP Request): calls api.pexels.com
- Create Suitable Content Including Image (AI Agent): runs an AI agent, with model: OpenAi 4.1 Mini
- View the Result (HTML): parses or builds HTML
- Create Content and Find Suitable Image (AI Agent): runs an AI agent, with model: OpenAI 4.1 mini for Content and Image
- Extract Content and Image Keyword (Code): runs custom JavaScript code
Services it uses
HTTP calls to: api.pexels.com
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 (7)
- HTTP Request
n8n-nodes-base.httpRequest - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI
@n8n/n8n-nodes-langchain.openAi - Code
n8n-nodes-base.code - HTML
n8n-nodes-base.html - n8n Form Trigger
n8n-nodes-base.formTrigger - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
From the author
AI Content Generator with Auto Pexels Image Matching This n8n template demonstrates how to use AI to generate engaging content and automatically find matching royalty-free images based on the content context. Use cases are many: Try creating blog posts with…