# Generate riddle shorts & post on YouTube with Pinecone: n8n workflow

> Started by a clock, and works across Gmail, Google Sheets and Pinecone. It puts Claude and OpenAI behind a retrieval step, so answers are drawn from...

Source: https://millionrounds.com/workflow/generate-riddle-shorts-and-post-on-youtube-with-pinecone (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)

# Generate riddle shorts & post on YouTube with Pinecone

Started by a clock, and works across Gmail, Google Sheets and Pinecone. It puts Claude and OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 27 steps, 1 branch, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: Claude, OpenAI Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fgenerate-riddle-shorts-and-post-on-youtube-with-pinecone)

**27 steps** Large: read it before trusting it with anything live

**1** Branch: places the flow splits

**1** Loop or waits

**3** Services it connects to

## The flow

Starts it 1 Model 9 Logic 5 Service 12

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

- 1 **Schedule Trigger** Schedule trigger *Starts it*
- 2 **Anthropic Chat Model** Lm Chat Anthropic *Model*
- 3 **Embeddings OpenAI** Embeddings Open Ai *Model*
- 4 **Recursive Character Text Splitter** Text Splitter Recursive Character Text Splitter *Model*
- 5 **Embeddings OpenAI1** Embeddings Open Ai *Model*
- 6 **Structured Output Parser** Output Parser Structured *Model*
- 7 **Riddle generation AI Agent** Agent *Model*
- 8 **Vector Store to Find Previous Riddles** Vector Store Pinecone *Model*
- 9 **Default Data Loader** Document Default Data Loader *Model*
- 10 **Insert Riddles to Vector Store** Vector Store Pinecone *Model*
- 11 **Fetch Audio From Sheet (Ensuring Rotation)** Google Sheets *Service*
- 12 **Convert Riddles JSON to 1 Text item for Vector Insertion** Code *Logic*
- 13 **Fetch Current Shorts Title (Numbered)** Google Sheets *Service*
- 14 **Merge** Merge *Logic*
- 15 **Calculate Next Shorts Title Number (To update at the end)** Code *Logic*
- 16 **Render Youtube Short** Http Request *Service*
- 17 **Wait** Wait *Logic*
- 18 **Youtube Upload HTTP request Setup** Http Request *Service*
- 19 **Get Binary for Rendered Short** Http Request *Service*
- 20 **Upload Binary to Youtube HTTP** Http Request *Service*
- 21 **Send Notification with YouTube link** Gmail *Service*
- 22 **Update Audio Used Status** Google Sheets *Service*
- 23 **Update Next Shorts title** Google Sheets *Service*
- 24 **Check if all audio tracks have been used** Google Sheets *Service*
- 25 **If** If *Logic*
- 26 **get all track rows** Google Sheets *Service*
- 27 **update all track rows back to unused** Google Sheets *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 27, with 1 branch, 1 loop or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail, Google Sheets, Pinecone
- **Model:** Claude, 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 Gmail, Google Sheets and Pinecone accounts, and a key for Claude 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 Claude 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?

Take your time. At 27 steps it is large: read it before trusting it with anything live.

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 27 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%2Fgenerate-riddle-shorts-and-post-on-youtube-with-pinecone)
- **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.

[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[Pinecone](https://millionrounds.com/workflows?service=Pinecone#library)

## Workflows like it

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

- [**Convert RSS feeds into LinkedIn & X posts with OpenAI** 27 steps · calls a model · Gmail, LinkedIn](https://millionrounds.com/workflow/convert-rss-feeds-into-linkedin-and-x-posts-with-openai)
- [**Create & track LinkedIn posts with Google Sheets and OpenAI** 27 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/create-and-track-linkedin-posts-with-google-sheets-and-opena)
- [**Create content from form inputs and save it to Google Drive** 27 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/create-content-from-form-inputs-and-save-it-to-google-drive)
- [**Create hours-long wave music videos with Suno and YouTube** 27 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/create-hours-long-wave-music-videos-with-suno-and-youtube)
- [**Generate quality-checked YouTube thumbnails with OpenAI** 27 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/generate-quality-checked-youtube-thumbnails-with-openai)
- [**Mine YouTube competitor content ideas with Gemini** 27 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/mine-youtube-competitor-content-ideas-with-gemini)
