# Publish weekly family history stories with OpenAI and Pinecone: n8n workflow

> Started by a clock, and works across Pinecone and WordPress. It puts Gemini and OpenAI behind a retrieval step, so answers are drawn from documents you...

Source: https://millionrounds.com/workflow/publish-weekly-family-history-stories-with-openai-and-pineco (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Content](https://millionrounds.com/workflows?category=Content#library)

# Publish weekly family history stories with OpenAI and Pinecone

Started by a clock, and works across Pinecone and WordPress. It puts Gemini and OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 13 steps: a working afternoon to understand properly.

Medium Calls a model: Gemini, OpenAI Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fpublish-weekly-family-history-stories-with-openai-and-pineco)

**13 steps** Medium: a working afternoon

**0** Branches: places the flow splits

**0** Loops or waits

**2** Services it connects to

## The flow

Starts it 1 Model 8 Logic 1 Service 3

The steps in the order they run, from what starts it.

- 1 **OpenAI GPT-4 Story Agent** Lm Chat Open Ai *Model*
- 2 **Manage Session Memory** Memory Buffer Window *Model*
- 3 **OpenAI GPT-4 RAG Retriever** Lm Chat Open Ai *Model*
- 4 **Generate OpenAI Embeddings** Embeddings Open Ai *Model*
- 5 **Trigger on Wednesday Weekly** Schedule trigger *Starts it*
- 6 **AI Story Generation Agent** Agent *Model*
- 7 **Access Family Database Tool** Tool Vector Store *Model*
- 8 **Index Family Docs in Pinecone** Vector Store Pinecone *Model*
- 9 **Parse Story Title and Content** Code *Logic*
- 10 **Post to WordPress** Wordpress *Service*
- 11 **Create Featured Image** Google Gemini *Model*
- 12 **Upload Image to WP Media** Http Request *Service*
- 13 **Assign WP Featured Image** Http Request *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 13
- **Size:** Medium: a working afternoon
- **Connects to:** Pinecone, WordPress
- **Model:** Gemini, OpenAI
- **Retrieval:** Answers are drawn from documents you supply, not from the model alone

## Questions

What does it need to run?

An n8n account, plus your own Pinecone and WordPress accounts, and a key for Gemini and OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

Yes. It calls Gemini and OpenAI. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 13 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 13 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fpublish-weekly-family-history-stories-with-openai-and-pineco)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Pinecone](https://millionrounds.com/workflows?service=Pinecone#library)[WordPress](https://millionrounds.com/workflows?service=WordPress#library)

## Workflows like it

Also content, with the same services where possible, closest in size first.

- [**AI LP Builder: Strategy, Design (HTML/CSS), & Content** 13 steps · calls a model · WordPress](https://millionrounds.com/workflow/ai-lp-builder-strategy-design-html-css-and-content)
- [**Create SEO blog drafts in WordPress from trending topics** 13 steps · calls a model · Google Sheets, WordPress](https://millionrounds.com/workflow/create-seo-blog-drafts-in-wordpress-from-trending-topics)
- [**Generate SEO WordPress blog posts from Google Sheets** 13 steps · calls a model · Google Sheets, WordPress](https://millionrounds.com/workflow/generate-seo-wordpress-blog-posts-from-google-sheets)
- [**Generate blog posts from YouTube videos with OpenAI** 13 steps · calls a model · RSS, Telegram](https://millionrounds.com/workflow/generate-blog-posts-from-youtube-videos-with-openai)
- [**AI-powered SEO content optimization with SERP and Slack** 14 steps · calls a model · Google Sheets, Pinecone](https://millionrounds.com/workflow/ai-powered-seo-content-optimization-with-serp-and-slack)
- [**Analyze & publish GCE O-Level Math predictions** 12 steps · calls a model · Slack, WordPress](https://millionrounds.com/workflow/analyze-and-publish-gce-o-level-math-predictions)
