สอนฟรี สร้าง n8n ทำระบบ YouTube Shorts AI Automation
3 min read
6 days ago
Published on Aug 31, 2025
This response is partially generated with the help of AI. It may contain inaccuracies.
Table of Contents
Introduction
This tutorial guides you through creating an automated system for YouTube Shorts using n8n. As short video content becomes increasingly popular, automating the production and publishing process allows you to save time and focus on creativity. n8n is an open-source workflow automation platform that makes this automation possible.
Step 1: Set Up n8n
- Install n8n: Follow the official documentation to install n8n on your local machine or server.
- Create an Account: Once installed, create an account to access the n8n interface.
- Familiarize Yourself: Spend some time exploring the dashboard and available integrations.
Step 2: Connect Google Drive
- Add Google Drive Node: In your workflow, add a Google Drive node to monitor for new video files.
- Set Trigger: Configure the node to trigger when a new file is added to a specific folder.
- Test Connection: Ensure that n8n can access your Google Drive by running a test.
Step 3: Create Background Music with Comfy API
- Obtain Comfy API Key: Sign up for Comfy API and get your API key for music generation.
- Add HTTP Request Node: In your workflow, add an HTTP Request node to call the Comfy API.
- Configure Request: Set up the request with necessary parameters (like genre, mood) to generate background music.
- Test the API Call: Run the node to check if it's successfully generating music.
Step 4: Combine Video and Background Music
- Add Video Processing Node: Use a video processing node (such as FFmpeg) to merge your original video with the generated background music.
- Set Parameters: Specify the input files (original video and music) and the desired output format.
- Run the Merge: Test this step to ensure that the video and music are correctly combined.
Step 5: Upload the Final Video to YouTube
- Add YouTube Node: Insert a YouTube node in your workflow to handle uploads.
- Configure Upload Settings:
- Input the title and description for your video.
- Specify the video file location (where the merged video is stored).
- Set Temporary Storage: If necessary, use a service like S3 for temporary storage before uploading.
- Test Upload: Run the upload workflow to ensure the video is published correctly on your YouTube channel.
Conclusion
By following these steps, you can create a fully automated system for producing and publishing YouTube Shorts using n8n. Start with these basic functionalities and gradually expand your workflow as you become more comfortable with the platform. This automation not only saves time but also enhances your creative process, allowing you to focus on producing engaging content for your audience.