AutomationMart
Home/Browse/AI content creation and auto WordPress publishing with Pexels API image workflow
n8n

AI content creation and auto WordPress publishing with Pexels API image workflow

n8nn8n24 modulesv1.0
Google SheetsWordPressGemini

AI powered content creation and WordPress publishing workflow Summary This workflow automates the entire process of blog content creation, from idea generation and article writing using Google Gemini, to sourcing images from Pexels and publishing directly to your WordPress site. It uses Google Sheets as a central hub for managing content ideas and tracking their status, all orchestrated through interactive n8n forms. Key features AI driven content: Leverages Google Gemini

At a glance

AI content creation and auto WordPress publishing with Pexels API image workflow is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Google Sheets, WordPress, Gemini. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Google Sheets, WordPress, Gemini
Modules
24
Price
Free
Version
v1.0
AI content creation and auto WordPress publishing with Pexels API image workflow workflow diagram

About this workflow

AI powered content creation and WordPress publishing workflow Summary This workflow automates the entire process of blog content creation, from idea generation and article writing using Google Gemini, to sourcing images from Pexels and publishing directly to your WordPress site. It uses Google Sheets as a central hub for managing content ideas and tracking their status, all orchestrated through interactive n8n forms. Key features AI driven content: Leverages Google Gemini for generating: Full blog articles based on prompts. Relevant keywords for image searching. New blog topic ideas. Automated image sourcing: Searches Pexels for suitable images based on AI generated keywords and downloads them. WordPress integration: Creates new posts with AI generated title and content. Uploads sourced images to the WordPress media library. Sets the uploaded image as the featured image for the post. Google Sheets management: Fetches content ideas (prompts) marked as "not generated". Updates the sheet after a post is generated with the post ID, title, and generation date. Adds newly AI generated blog topic ideas to the sheet. Interactive forms: Main trigger form to choose between generating content or adding new ideas. Forms to input topics for idea generation. Confirmation forms at the end of processes. Structured output parsing: Ensures AI responses for topic generation are correctly formatted as JSON. How it works The workflow is initiated via an n8n Form Trigger: Select Action, allowing the user to choose one of two main paths: 1. Generate content path: Fetch idea: The Fetch unprocessed ideas (Google Sheets) node retrieves a row from your sheet where the "Generated" column is "no". Set prompt: The Set prompt node prepares the topic from the sheet for the AI. Generate article: The Generate article AI (Langchain Agent with Google Gemini) node takes the prompt and writes a full article. Generate image keyword: The Generate image keyword AI (Langchain Agent with Google Gemini) node creates a concise search term based on the article topic. Search image: The Search Pexels image (HTTP Request) node uses the generated keyword to find a relevant image via the Pexels API. Create WordPress post: The Create WordPress post node publishes the AI generated article and initial image metadata to your WordPress site. Download and upload image: The Download Pexels image (HTTP Request) node fetches the actual image file, and the Upload image (HTTP Request) node uploads it to your WordPress media library. Set featured image: The Set featured image (HTTP Request) node links the uploaded image as the featured image for the newly created post. Update sheet: The Update Google Sheet node marks the idea as "yes" in your Google Sheet and adds the WordPress post ID and title. Confirmation: A Form: End post generation node displays a completion message. 2. Add ideas path: Input topic: The Form: Enter topic for ideas node prompts the user to enter a general subject. Generate topics: The Generate blog topics AI (Langchain Agent with Google Gemini and Structured Output Parser) node generates five SEO friendly blog topic ideas based on the user's input, formatted as JSON. Process topics: The Split topics node separates the generated list of topics into individual items. Add to sheet: For each topic, the Add ideas to sheet (Google Sheets) node appends it as a new row, marked with "Generated: no". Loop or end: The Form: Add more topics? node asks the user if they want to generate more ideas or end the process. If "NEXT", it loops back to the Form: Enter topic for ideas. If "END", a Form: End idea generation node displays a completion message with the list of added topics. Nodes used Form Trigger If Google Sheets Set Langchain Agent (with Google Gemini Chat Model) Structured Output Parser (Langchain) HTTP Request (for Pexels API and WordPress Media/Post updates) WordPress Split Out Form (for user interaction and completion messages) Sticky Note (for instructions within the workflow) Setup instructions 1. Credentials: Google Sheets: Configure your Google Sheets OAuth2 credentials in the Fetch unprocessed ideas, Update Google Sheet, and Add ideas to sheet nodes. WordPress: Configure your WordPress API credentials in the Create WordPress post, Upload image, and Set featured image nodes. Google Gemini: Configure your Google Gemini (PaLM) API key in the Gemini model for article, Gemini model for image keyword, and Gemini model for topics nodes. 2. API keys and URLs: Pexels: In the Search Pexels image node, replace <YOURPEXELSAPIKEY> in the Authorization header with your actual Pexels API key. WordPress URL: In the Upload image and Set featured image nodes, replace <YOURWORDPRESSURL> in the URL field with your WordPress site's domain (e.g., yourblog.com). 3. Google Sheet configuration: Ensure your Google Sheet (specified by Document ID in Google Sheets nodes) has a sheet named Sheet1 (or update the Sheet Name parameter). The sheet should have at least the following columns: Prompt (for the blog idea/topic), Generated (to track status, e.g., "no" or "yes"), rownumber (automatically populated by n8n when reading), Date, Title (for the final WordPress post title), Post ID. 4. Activate the workflow. The Form Trigger: Select Action will provide a webhook URL to initiate the process. Customization ideas Modify the AI prompts in the Langchain Agent nodes for different tones, styles, or content structures. Change the Google Gemini models used for different cost/performance balances. Integrate other image sources instead of or in addition to Pexels. Add steps for social media sharing after a post is published. Extend the Google Sheet to track more metrics like word count or target keywords. Implement more sophisticated error handling. Use cases Automating blog content generation for personal or company blogs. Streamlining content marketing efforts. Quickly populating new websites with initial content. Assisting SEO agencies in creating draft content for clients. Helping solo bloggers maintain a consistent publishing schedule.

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Calculate Bonusly monthly points in Google Sheets

Make will list all Bonusly users and count their number of bonuses for a given time interval. Then, the result is saved in Google Sheets. The template uses this [example spreadsheet](https://docs.google.com/spreadsheets/d/1GaTXiFveA5IwgJfotRKaZkM3fOywYAU4AndzTECZ7ME/edit?usp=sharing).

Free

Batch archive TikTok videos from links in Google Sheets to Google Drive

This template helps you archive TikTok videos from a Google Sheets list into Google Drive in an organized way. How it works Reads rows from the Tasks sheet where status = PENDING and tiktok_url is not empty. Calls the Apify Actor liul/tiktok-video-audio-downloader to fetch video metadata and a downloadable video URL. Downloads the video and uploads it to Google Drive into a daily subfolder named YYYY-MM-DD under your chosen parent folder. Generates a shareable link for the uploaded file. U

Free

Get Traffic Stats for GoHighLevel leads with DataForSEO

Leverage DataForSEO Organic Traffic Stats in GoHighLevel. Gain critical insights into lead's potential based on their website visitor volume, and improve your sales workflows. To get started, check our [Setup Guide for First Use](https://docs.google.com/document/d/1fsEo5fIAbH0cyVstJN2pE4KblDrWPHXKTK4czVo1-bY/edit?usp=sharing).

Free

Add new Inoreader articles to Google Sheets as rows

Stay organized and never miss important updates by automatically tracking articles from Inoreader and logging them into Google Sheets. With this template, every time a new article is published in your Inoreader feed, Make will seamlessly add a new row in your Google Sheets, allowing you to maintain a comprehensive archive of articles for easy reference and analysis. Perfect for researchers, content curators, or anyone looking to streamline their reading list!

Free

Generate content in Google Docs using data from Google Sheets range values and ChatGPT

Get your Google docs generated on autopilot using data from Google Sheets range values and ChatGPT. Streamline document creation by integrating AI-driven insights with spreadsheet data.

Free

BrowserAct Flipboard News Scraper & Google Sheets Sync

This template provides a fully automated workflow for collecting news from Flipboard and saving it into Google Sheets. The process starts with BrowserAct, which opens the Flipboard page, scrolls through the content, and extracts each article’s title, summary, reference link, and image. The raw output is then parsed through a JSON module to convert the data into a clean, structured format. Next, the workflow creates a new sheet named with the completion timestamp, ensuring each run is organized a

Free

Auto-generate product comparison pages with OpenAI & Google Sheets

Auto-generate product comparison pages that help users buy faster This workflow creates detailed "X vs Y" product comparison pages designed to help readers make faster, more confident purchase decisions — all with zero manual writing. --- How it works - Triggered manually or via Google Sheets row - Takes two product names as input (e.g. “Notion vs Evernote”) - Uses AI to generate: - ✅ A compelling title and meta description - 📝 Clear feature-by-feature comparison - 🤝 Use-case-ba

Free

Bulk delete Slack messages with smart filtering and confirmations

Jedi Cleaner for Slack ❌ Slack's Limitation Slack lacks a native bulk delete feature. Users must delete messages manually, which is time-consuming and inefficient for large volumes. ✅ Our Solution Jedi Cleaner automates Slack message deletion using smart filters, safety confirmations, and enterprise-grade reliability. --- 🚀 Key Features & Capabilities ⚡ Lightning-Fast Bulk Operations Delete hundreds of messages in minutes Intelligent rate limiting prevents API throttling Auto-retry on failure

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free