How to Use My YouTube Automation with n8n
How to Use My YouTube Automation with n8n
DOWNLOAD YOUTUBE MACHINE FROM HERE: Click here to download
(JUST ENTER NAME AND EMAIL TO GET YT AUTOMATION)
I’ve created a powerful YouTube automation workflow using n8n, which leverages:
✅ OpenAI API
✅ Flux Dev API via Replicate
✅ Kling AI API via Replicate
This guide will show you:
- How to get your own API keys (OpenAI & Replicate)
- How to import my n8n workflow JSON
- How to configure it with your own API keys
- And start running your own automated YouTube script + video creation pipeline!
1️⃣ Get Your API Keys
🔑 OpenAI API Key
- Go to https://platform.openai.com/account/api-keys
- Sign up or log in.
- Click Create new secret key, copy it, and store it safely.
🔑 Replicate API Key
Replicate lets you use AI models like Flux Dev & Kling AI.
- Go to https://replicate.com/account
- Sign up with GitHub or email.
- Under API tokens, click Create token. Copy your key.
You will use this same Replicate key for both Flux Dev & Kling AI models.
2️⃣ Import the n8n Workflow JSON
I’ve provided a JSON file of my n8n workflow.
How to import it:
- Log in to your n8n account (local or cloud).
- On the top menu, click ➕ and select Import workflow.
- Upload the JSON file or paste the JSON content.
- It will create a new workflow in your n8n.
3️⃣ Add Your API Keys to n8n
🔥 OpenAI
- In n8n, go to Credentials (left side menu).
- Click New credential → OpenAI API.
- Enter your OpenAI API key and save.
🔥 Replicate (for Flux Dev & Kling AI)
- Similarly, go to Credentials.
- Click New credential → HTTP Basic Auth (or use generic HTTP if your nodes use headers directly).
- Add your Replicate key as bearer token in headers if your nodes are HTTP Request nodes.
- For example, Authorization: Token YOUR_REPLICATE_API_KEY
(If your workflow uses environment variables instead, update your .env file.)
4️⃣ Connect Credentials to Workflow Nodes
- Open your imported workflow in n8n.
- Click on each node (like OpenAI, HTTP Request to Replicate, etc).
- Make sure under Credentials, your saved API keys are selected.
- If not, click Select credential and pick the one you created.
5️⃣ Start the Automation 🎬
- Click Execute Workflow (for a single run) or activate it to run on a schedule.
- It will automatically:
- Generate script using OpenAI
- Generate video content via Flux Dev / Kling AI on Replicate
- (Optionally) upload or process as needed.
✅ Summary Checklist
- Got OpenAI API key
- Got Replicate API key
- Imported JSON into n8n
- Added credentials & connected them to nodes
- Ran the workflow successfully 🚀
⭐ Small Bonus: How to get a free OpenAI or Replicate key
- OpenAI sometimes gives free credits on new accounts.
- Replicate gives some free usage credits to test.