A visualised workflow for WordPress in neon colours on very dark back ground.

Create Workflow with n8n, Gemini and WordPress

The YouTube video “NEW 1-Click Google AI Agents are INSANE!” by Julian Goldie SEO demonstrates how to automate content creation and publishing for WordPress using the n8n framework for building automation workflows, and Google Gemini 2.0 as the chatbot powering the AI agent. To use this workflow, you will need to obtain a Gemini API key from Google AI Studio, as a Gemini Advanced subscription does not automatically provide API access.

Example Workflow using n8n and Google Gemini

Please watch the video to clearly understand the following:

  1. Keyword Input (n8n Trigger Node): A keyword (e.g., “benefits of AI in marketing”) is provided as input to the n8n workflow, potentially through a trigger node like a webhook or scheduled trigger in n8n.
  2. AI Content Generation (Google Gemini & n8n Function Node): The AI agent, leveraging Google Gemini 2.0within the n8n framework, generates a comprehensive, SEO-optimized article based on the input keyword. This is typically handled using a function node or an HTTP request node in n8n to interact with the Google Gemini API.
  3. WordPress Post Creation (n8n WordPress Node): The n8n framework, using its dedicated WordPress node, automatically triggers the creation of a new post in WordPress.
  4. Content Population (n8n WordPress Node): The article generated by Google Gemini is automatically published to WordPress as the content of the new post, with the keyword serving as the title, all orchestrated through the WordPress node in n8n.
  5. Obtaining a Gemini API Key from Google AI Studio
  6. To use the Google Gemini API in your n8n workflow, you need to obtain an API key from Google AI Studio. A Gemini Advanced subscription does not grant API access. Here’s how to get your API key:
  7. Go to Google AI Studio: Navigate to Google AI Studio.
  8. Get API Key: Click on “Get API key in Google AI Studio”.
  9. Terms of Service: Agree to the Google AI Studio Terms of Service.
  10. Create API Key: Choose to create your API key in a new project or an existing one.
  11. Securely Store Your Key: Once generated, make sure to copy and securely store your API key. You will use this key to authenticate your requests to the Gemini API within your n8n workflow.
  12. Google AI Studio offers a free tier for the Gemini API, which includes a limited number of free requests per day.
  13. With your Gemini API key from Google AI Studio and the n8n framework, you can then build the automated WordPress content creation workflow as described in the video.

If you’re interested in AI-agent workflows, read our post about this fascinating project with more than 20 agents.

Note: This post “Create Workflow with n8n, Gemini and WordPress” was made with the new features of Gemini 2.0 Flash Thinking Experimental with Apps, which allows the user to import and chat with a YouTube-video directly in Flash’s chat window. I had to create the image with another Gemini 2.0 Flash model.


Posted

in

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *