How to Use My YouTube Automation with n8n

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

  1. Go to https://platform.openai.com/account/api-keys
  2. Sign up or log in.
  3. 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.

  1. Go to https://replicate.com/account
  2. Sign up with GitHub or email.
  3. 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:

  1. Log in to your n8n account (local or cloud).
  2. On the top menu, click ➕ and select Import workflow.
  3. Upload the JSON file or paste the JSON content.
  4. It will create a new workflow in your n8n.

3️⃣ Add Your API Keys to n8n

🔥 OpenAI

  1. In n8n, go to Credentials (left side menu).
  2. Click New credential → OpenAI API.
  3. Enter your OpenAI API key and save.

🔥 Replicate (for Flux Dev & Kling AI)

  1. Similarly, go to Credentials.
  2. Click New credential → HTTP Basic Auth (or use generic HTTP if your nodes use headers directly).
  3. 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

  1. Open your imported workflow in n8n.
  2. Click on each node (like OpenAI, HTTP Request to Replicate, etc).
  3. Make sure under Credentials, your saved API keys are selected.
  4. 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.

Leave a Comment