Category: Automations › Social Media & Content · Best for: Creators repurposing content · Platform: n8n · Steps: 8
What it does
Give it a YouTube video, and the AI writes an SEO blog post from it.
- YouTube Video URL: The YouTube video you want to convert into a SEO Blog Post
Works with: Dumpling AI, OpenAI, Gmail
What you get
- The n8n workflow file (
workflow.json), ready to import - This setup guide
- The list of fields to change for your own accounts (see Install below)
- Email support if you get stuck
Before you start
-
An n8n account. Easiest: n8n Cloud (free trial). Self-host for free with Docker:
docker run -it --rm -p 5678:5678 -v n8n_data:/home/node/.n8n docker.n8n.io/n8nio/n8n, then open http://localhost:5678. -
Accounts and API keys for these services:
- httpBearerAuth: how to connect (used by Get YouTube Transcript, Generate AI Image)
- API key sent as an HTTP header (see the node for which service): how to connect (used by Get YouTube Transcript, Generate AI Image)
- OpenAI API key: how to connect (used by Generate Blog Post)
- Google (Sheets, Gmail, Drive, Calendar, Docs): how to connect (used by Gmail)
Install
- In n8n, click Create workflow (top right).
- Click the ⋯ menu → Import from file and choose
workflow.json. Or open the file, copy everything and paste it onto the empty canvas with Ctrl/Cmd + V. - Open each node with a red warning triangle and pick or create the matching credential from the list above.
- Point these fields at your own sheets, chats and accounts:
- Set Variables →
Recipient Email Address: replace the placeholder with your own - Gmail →
sendTo: choose your own
- Set Variables →
- Click Save.
Test it
- Click Test workflow (or Execute workflow). When clicking ‘Test workflow’ starts it. Trigger it once with real sample data.
- Click each node to check its output. A green tick means the step worked.
- Fix any red node: it's almost always a credential or a field that still points at a sheet or chat that isn't yours.
Go live
Toggle Active (top right). From now on it runs on its own. Check Executions in the left sidebar to see every run.
How it works, step by step
- When clicking ‘Test workflow’ starts the workflow (Manual).
- Set Variables reshapes the data for the next step.
- Get YouTube Transcript calls an external API (https://app.dumplingai.com/api/v1/get-youtube-transcript).
- Generate Blog Post uses AI (OpenAI).
- Generate AI Image calls an external API (https://app.dumplingai.com/api/v1/generate-ai-image).
- Markdown uses Markdown.
- Download Image calls an external API (={{ $('Generate AI Image').item.json.images[0].url }}).
- Gmail uses Gmail.
Extra setup notes
These notes are also on the canvas as yellow sticky notes:
Set Variables
Set your variables here, such as:
- YouTube Video URL: The YouTube video you want to convert into a SEO Blog Post
- Recipient Email Address: This is the email we send all generated content to at the end of the workflow.
Get YouTube Transcript
This step gets the transcript of the YouTube video with Dumpling AI. The target video must have captions or subtitles enabled. You can modify this to specify a language.
Generate Blog Post
Here we get GPT-4o (or a model of your choice) to generate a detailed SEO blog post. We ask for:
- title
- description
- blogImagePrompt
- content
To improve this step, you can consider generating section by section or replacing this with an AI Agent with research capabilities
Generate Blog Image
Here we use the FLUX.1-dev model via Dumpling AI to generate a image for the blog post. Feel free to use the image model you prefer. You may need to update to a more powerful (expensive) model if you want text in your images.
Convert Markdown to HTML
OpenAI LLMs tend to output markdown. We need to convert to HTML for formatting in the the Gmail node.
Download Image for Attachment
The image URL is a temporary URL, so we need to download the image and attach it to the email being sent.
Send blog post via email for next steps
We send all generated content to your email address so you have a record of all generations and can get it ready for publication
Troubleshooting
- "Credentials not found": open the node and select your credential again.
- Google "access blocked": in Google Cloud, add your email as a test user on the OAuth consent screen.
- Webhook not firing: copy the node's Production URL (not Test URL) into the other app, and make sure the workflow is Active.
- AI node errors: check your API key has billing enabled and the model name exists on your plan.
- Nothing happens on schedule: the workflow must be Active, and self-hosted n8n must stay running.
Need help?
Reply to your Morning Method order email and we'll help you get it running.
© Morning Method