Automation library · Content

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.

LargeCalls a model: Claude, OpenAIRetrieval

27 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
1Loop or waits
3Services it connects to

The flow

Starts it 1Model 9Logic 5Service 12

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

  1. 1Schedule TriggerSchedule triggerStarts it
  2. 2Anthropic Chat ModelLm Chat AnthropicModel
  3. 3Embeddings OpenAIEmbeddings Open AiModel
  4. 4Recursive Character Text SplitterText Splitter Recursive Character Text SplitterModel
  5. 5Embeddings OpenAI1Embeddings Open AiModel
  6. 6Structured Output ParserOutput Parser StructuredModel
  7. 7Riddle generation AI AgentAgentModel
  8. 8Vector Store to Find Previous RiddlesVector Store PineconeModel
  9. 9Default Data LoaderDocument Default Data LoaderModel
  10. 10Insert Riddles to Vector StoreVector Store PineconeModel
  11. 11Fetch Audio From Sheet (Ensuring Rotation)Google SheetsService
  12. 12Convert Riddles JSON to 1 Text item for Vector InsertionCodeLogic
  13. 13Fetch Current Shorts Title (Numbered)Google SheetsService
  14. 14MergeMergeLogic
  15. 15Calculate Next Shorts Title Number (To update at the end)CodeLogic
  16. 16Render Youtube ShortHttp RequestService
  17. 17WaitWaitLogic
  18. 18Youtube Upload HTTP request SetupHttp RequestService
  19. 19Get Binary for Rendered ShortHttp RequestService
  20. 20Upload Binary to Youtube HTTPHttp RequestService
  21. 21Send Notification with YouTube linkGmailService
  22. 22Update Audio Used StatusGoogle SheetsService
  23. 23Update Next Shorts titleGoogle SheetsService
  24. 24Check if all audio tracks have been usedGoogle SheetsService
  25. 25IfIfLogic
  26. 26get all track rowsGoogle SheetsService
  27. 27update all track rows back to unusedGoogle SheetsService

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.