Templates / Generate blog posts and social media content with GPT-4.1 and Pexels images

Generate blog posts and social media content with GPT-4.1 and Pexels images

Ready for 3.0

by Wan Dinie ✓ · 668 views · created 2025-12-25 · Content Creation, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What 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”).

  1. Create Content with AI (AI Agent): runs an AI agent, with model: OpenAI 4.1 mini
  2. Find suitable content keyword (OpenAI): uses OpenAI
  3. Pexels Image Search (HTTP Request): calls api.pexels.com
  4. Create Suitable Content Including Image (AI Agent): runs an AI agent, with model: OpenAi 4.1 Mini
  5. View the Result (HTML): parses or builds HTML
  6. Create Content and Find Suitable Image (AI Agent): runs an AI agent, with model: OpenAI 4.1 mini for Content and Image
  7. Extract Content and Image Keyword (Code): runs custom JavaScript code

Services it uses

OpenAIOpenAI Chat Model

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)

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…

Excerpt from Wan Dinie's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.