Publish weekly family history stories with GPT-4, Pinecone and WordPress

Go to Workflow
0 views
Built by AI Solutions AI Solutions
Created on August 21, 2026

Description

Quick Overview
This workflow runs weekly to generate an AI-written family-history short story using OpenAI with Pinecone document retrieval, then publishes the HTML story to WordPress and creates a Google Gemini featured image that is uploaded and set on the post.

How it works
Runs on a weekly schedule every Wednesday.
Uses OpenAI (GPT-4o) with session memory and a Pinecone-backed retrieval tool to generate a 500–1000 word family-history short story as WordPress-ready HTML.
Extracts the title, derives a URL slug, and prepares the remaining HTML as the post body.
Creates and publishes a WordPress post with the generated story content.
Generates a featured image with Google Gemini based on the WordPress post excerpt.
Uploads the generated image to the WordPress Media Library and sets it as the post’s featured image.

Setup
Add your OpenAI API credentials for the GPT-4o chat model and embeddings used in the workflow.
Add your Pinecone credentials and ensure the target index (for example, "ariail-ms") exists and is populated with your family documents.
Add WordPress API credentials and confirm the site URL, author ID, and any desired categories/status settings match your WordPress configuration.
Add Google Gemini credentials and confirm the selected image model is available in your Gemini account.
If needed, update the WordPress REST endpoints (media and posts URLs) and the schedule timing to match your environment.

Nodes Used (10)

AI Agent
@n8n/n8n-nodes-langchain.agent
Code
n8n-nodes-base.code
Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi
Google Gemini
@n8n/n8n-nodes-langchain.googleGemini
HTTP Request
n8n-nodes-base.httpRequest
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Pinecone Vector Store
@n8n/n8n-nodes-langchain.vectorStorePinecone
Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow
Vector Store Question Answer Tool
@n8n/n8n-nodes-langchain.toolVectorStore
Wordpress
n8n-nodes-base.wordpress