Skip to main content

Generate riddle shorts & post on YouTube with Sonnet 3.5, Pinecone & Creatomate

Workflow preview

Workflow preview
100%
Generate riddle shorts & post on YouTube with Sonnet 3.5, Pinecone & Creatomate preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This workflow allows you to generate riddle themed vertical videos (9:16), render them using Creatomate, and upload them directly to YouTube — all automatically. It's optimized for low cost operati...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.scheduletrigger, @n8n/n8n-nodes-langchain.lmchatanthropic, @n8n/n8n-nodes-langchain.embeddingsopenai, @n8n/n8n-nodes-langchain.documentdefaultdataloader, @n8n/n8n-nodes-langchain.textsplitterrecursivecharactertextsplitter, n8n-nodes-base.merge, n8n-nodes-base.wait, @n8n/n8n-nodes-langchain.outputparserstructured

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Joseph.

Original n8n.io source

1.1 Workflow description

Title
Generate riddle shorts & post on YouTube with Sonnet 3.5, Pinecone & Creatomate
Workflow name
Generate riddle shorts & post on YouTube with Sonnet 3.5, Pinecone & Creatomate

This workflow allows you to generate riddle-themed vertical videos (9:16), render them using Creatomate, and upload them directly to YouTube — all automatically. It's optimized for low-cost operation while still integrating AI and automation at key stages.

Here is a sample: https://youtube.com/shorts/svhgti9L6Fw?feature=share


🔄 Workflow Overview

This is a schedule-triggered workflow that:

  1. Generates riddles with answers using an AI agent.
  2. Checks Pinecone vector store to avoid repeating riddles.
  3. Inserts new riddles into Pinecone under a namespace structured by month/year for easier indexing.
  4. Fetches an unused music track URL for video background.
  5. Generates a video using Creatomate with the riddles and audio.
  6. Uploads the video to YouTube via a custom HTTP request with OAuth.
  7. Updates the worksheet and riddle numbering, and notifies via email.

🔗 Integration Guide

🔎 Pinecone Setup
  • You need an active Pinecone account with an index created.
  • The vector index should be accessible from n8n.
  • Follow [n8n's Pinecone Node Documentation] for help setting up credentials and connecting.
📝 Google Sheet Setup
  1. Open the sheets template provided in the Gumroad documentation pdf.
  2. Make a copy to your Google Drive.
  3. Set up the required credentials in n8n and link the Google Sheets node to your new copy.
🎧 Audio Tracks
🎞️ Background Videos (Optional)
  • For optional background visuals, use free stock videos from Pexels.

💡 Creatomate Setup

  1. Create a Creatomate account at [creatomate.com].
  2. Create a 9:16 aspect ratio template.
  3. Press F12 to open the source editor.
  4. Download the Creatomate JSON file from the Gumroad page and paste its contents into the source editor.
  5. Refresh the page and click "Use Template" > API Integration.
  6. Copy the cURL.
  7. From the cURL, extract your Bearer Token and Template ID.
  8. Paste them in the respective fields in the Creatomate Render Node inside n8n.

📉 YouTube Upload Configuration

  1. Inside n8n, set up a YouTube OAuth credential.

  2. Search for "YouTube" in the credentials list and select the OAuth type.

  3. Use the Custom HTTP Request node with multipart/form-data to upload the video using:


🔄 Workflow Logic Detail

  1. Riddle Generation

    • Checks Pinecone vector store for existing riddles (to avoid duplicates).
    • Generates 4 new riddles with answers.
    • Stores them in Pinecone under month/year namespace.
    • Extracts a numbered title for current riddle post (e.g., Riddles4U #001).
    • Prepares next riddle title counter (but only updates after YouTube post succeeds).
  2. Track URL Fetching

    • Pulls the first unused track from Google Sheets.
  3. Render & Upload

    • Sends the riddles + track to Creatomate for rendering.
    • Fetches binary video and uploads it directly to YouTube via HTTP.
    • Note: For video source url, I downloaded a video, uploaded it to drive and used that video drive link. You can add a new sheet and rotate videos too, although youtube likes consistency in shorts so I think it is best to have one very beautiful and calm background video then change to a new one after some months or when you generate like 50 shorts.
  4. Post Actions

    • Sends email with YouTube video link.
    • Marks used audio row as "used".
    • Updates to next riddle title.
    • If all tracks have been used, resets them to "unused".

🚀 Customization Ideas

  • Add AI-generated voiceover to the riddles.
  • Replace riddles with trivia, quotes, or jokes.
  • Integrate TikTok or Instagram upload APIs for multichannel publishing.

✉️ Support

Refer to the comprehensive setup guide included in the Gumroad download folder to configure your template, credentials, and API keys correctly.

This is a beginner-friendly, low-cost automation you can build on for more advanced content pipelines. Happy building!

You can find me on twitter and via email incase you need any custom n8n workflows or wanna chat.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Schedule Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 2 - Anthropic Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatAnthropic - lmChatAnthropic
Config choices
Version 1.3

Block 3 - Embeddings OpenAI

Type / Role
@n8n/n8n-nodes-langchain.embeddingsOpenAi - embeddingsOpenAi
Config choices
Version 1.2

Block 4 - Default Data Loader

Type / Role
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - documentDefaultDataLoader
Config choices
Version 1

Block 5 - Recursive Character Text Splitter

Type / Role
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter - textSplitterRecursiveCharacterTextSplitter
Config choices
Version 1

Block 6 - Embeddings OpenAI1

Type / Role
@n8n/n8n-nodes-langchain.embeddingsOpenAi - embeddingsOpenAi
Config choices
Version 1.2

Block 7 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.1

Block 8 - Wait

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 9 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.2

Block 10 - If

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 11 - Riddle generation AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.9

Block 12 - Vector Store to Find Previous Riddles

Type / Role
@n8n/n8n-nodes-langchain.vectorStorePinecone - vectorStorePinecone
Config choices
Version 1.1

Block 13 - Fetch Audio From Sheet (Ensuring Rotation)

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 14 - Insert Riddles to Vector Store

Type / Role
@n8n/n8n-nodes-langchain.vectorStorePinecone - vectorStorePinecone
Config choices
Version 1.1

Block 15 - Convert Riddles JSON to 1 Text item for Vector Insertion

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 16 - Fetch Current Shorts Title (Numbered)

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 17 - Calculate Next Shorts Title Number (To update at the end)

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 18 - Render Youtube Short

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 19 - Youtube Upload HTTP request Setup

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.1

Block 20 - Get Binary for Rendered Short

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 21 - Upload Binary to Youtube HTTP

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.1

Block 22 - Send Notification with YouTube link

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 23 - Update Audio Used Status

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 24 - Update Next Shorts title

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Showing the first 24 of 32 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Generate riddle shorts & post on YouTube with Sonnet 3.5, Pinecone & Creatomate
Complexity advanced
Nodes 32
Categories Content Creation, Multimodal AI
Author Joseph
Published 06 May 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3907/3907.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate riddle shorts & post on YouTube with Sonnet 3.5, Pinecone & Creatomate do?

This workflow allows you to generate riddle themed vertical videos (9:16), render them using Creatomate, and upload them directly to YouTube — all automatically. It's optimized for low cost operati...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.