Back to Blog

Automate AI Video Creation and Social Media Posting

N8nPort
Automate AI Video Creation and Social Media Posting

Activate this automation on N8nPort with one click

We have completed the workflow installation, node configuration, and setup for you, so the automation is ready to activate without a manual import or node-by-node configuration.

Activate on N8nPort

Quick answers

What does this n8n workflow do?

This n8n workflow automates the entire process of generating AI-powered video concepts, creating those videos using Veo3, and then publishing them to various social media platforms through Blotato.

Which social media platforms can this workflow post to?

The workflow is configured to post videos to Instagram, YouTube, TikTok, Facebook, Threads, Twitter, LinkedIn, Bluesky, and Pinterest, offering broad social media reach.

What AI tools are used for content generation?

The workflow uses an AI Agent with an LLM (specifically GPT-4.1) to generate video ideas, captions, and environmental prompts, and then formats these for video creation with Veo3.

How does the workflow manage video content and status?

It uses Google Sheets to save initial script ideas, log the final video output URL from Veo3, and update the status of each video once it has been published to social media.

This workflow helps you automate the process of generating AI video concepts, creating short videos with Veo3, and then posting them across multiple social media platforms using Blotato. It's designed to assist with content creation and distribution, from initial idea generation to final publication.

Key Questions About This Workflow

What does this n8n workflow do?

This n8n workflow automates the entire process of generating AI-powered video concepts, creating those videos using Veo3, and then publishing them to various social media platforms through Blotato.

Which social media platforms can this workflow post to?

The workflow is configured to post videos to Instagram, YouTube, TikTok, Facebook, Threads, Twitter, LinkedIn, Bluesky, and Pinterest, offering broad social media reach.

What AI tools are used for content generation?

The workflow uses an AI Agent with an LLM (specifically GPT-4.1) to generate video ideas, captions, and environmental prompts, and then formats these for video creation with Veo3.

How does the workflow manage video content and status?

It uses Google Sheets to save initial script ideas, log the final video output URL from Veo3, and update the status of each video once it has been published to social media.

Quick Overview

This n8n workflow provides a structured way to create and distribute video content. It starts by using AI to brainstorm video concepts and generate descriptive prompts. These prompts then feed into Veo3, an AI video generation service, to produce short video clips. Once a video is ready, the workflow handles its upload to Blotato, a social media publishing tool, which then distributes the video to a selection of popular social media platforms. Google Sheets acts as a central hub for tracking content ideas and publication status throughout the process.

What This Workflow Does

The workflow automates several key steps in the video content pipeline:

  • AI Script and Prompt Generation: It uses an AI Agent to develop creative video ideas, write engaging captions, and describe the visual environment for the video.

  • Video Creation with Veo3: The generated prompts are sent to the Veo3 API to produce a video based on the AI's specifications.

  • Social Media Publishing: After video creation, the workflow uploads the video to Blotato, which then posts it to multiple social media channels.

  • Content Tracking: Google Sheets is used to store video ideas, track the generated video URLs, and update the publication status.

How It Works

This workflow operates in a series of interconnected steps:

Trigger and Idea Generation

The workflow begins with a Schedule Trigger, set to run daily. This initiates the content generation process.

An AI Agent: Generate Video Concept node takes a user-defined topic (e.g., "a Yeti speaking to a camera and doing a Vlog through his selfie stick") and, using an LLM: Generate Idea & Caption (GPT-4.1) and a Tool: Inject Creativity, generates a unique video idea, a caption with relevant hashtags, and an environment description. A Parser: Extract JSON from Idea then structures this output.

Saving and Prompt Formatting

The generated idea, caption, and environment prompt are saved into a designated Google Sheets: Save Script Idea spreadsheet.

Next, an AI Agent: Create Veo3-Compatible Prompt node, utilizing another LLM: Format Prompt for Veo3 (GPT-4.1) and a Tool: Build Prompt Structure, refines the environment and idea into a detailed, cinematic prompt specifically tailored for the Veo3 API.

Video Creation and Retrieval

The formatted prompt is sent to the Call Veo3 API to Generate Video node via an HTTP Request. This initiates the video generation process with Veo3.

A Wait for Veo3 Processing (5 mins) node pauses the workflow, allowing time for Veo3 to create the video.

After the wait, a Retrieve Final Video URL from Veo3 HTTP Request node fetches the completed video's URL.

The workflow then updates the Google Sheet using Google Sheets: Log Final Video Output, recording the final video URL and marking the idea as "done" for production.

Social Media Posting

The workflow retrieves video details, including the final output URL, title, and description, from the Google Sheet using a Get my video node.

A Set node, named Assign Social Media IDs, is used to define the account IDs for various social media platforms. These IDs are placeholders and need to be replaced with your actual account IDs.

The video is then uploaded to Blotato via the Upload Video to Blotato HTTP Request node.

Finally, a series of HTTP Request nodes (INSTAGRAM, YOUTUBE, TIKTOK, FACEBOOK, THREADS, TWETTER, LINKEDIN, BLUESKY, PINTEREST) send the video and its description to the respective social media platforms through the Blotato API. Each platform's node is configured with specific settings, such as privacy levels for YouTube or AI-generated content flags for TikTok.

A final Google Sheets node updates the status of the video in your spreadsheet to "Publish" once the posting process is complete.

Prerequisites

To use this workflow, you'll need accounts and API access for the following services:

  • Google Account: For Google Sheets to store and manage your video ideas and statuses.

  • OpenAI Account: To use the GPT-4.1 language model for generating video concepts and prompts.

  • Veo3 API Access: For generating the AI-powered videos. This typically involves an API key or similar authentication for the Fal.run service.

  • Blotato Account: To manage and distribute your videos to various social media platforms. You'll need a Blotato API key.

  • Social Media Accounts: Accounts on Instagram, YouTube, TikTok, Facebook, Threads, Twitter, LinkedIn, Bluesky, and Pinterest where you intend to post videos. You'll need the account IDs for these platforms.

How Do You Set It Up?

Setting up this workflow involves configuring credentials and specific node parameters:

Google Sheets Credentials

Set up a Google Sheets OAuth2 credential. This allows n8n to read from and write to your Google Sheets. You'll need to grant appropriate permissions during the OAuth process.

Prepare a Google Sheet with columns for 'id', 'idea', 'caption', 'production', 'environment_prompt', 'final_output', 'DESCRIPTION', 'Titre', and 'STATUS'. Make sure to replace the placeholder document and sheet IDs in the Google Sheets: Save Script Idea, Google Sheets: Log Final Video Output, Get my video, and the final Google Sheets (update status) nodes with your actual Google Sheet's ID and sheet name.

OpenAI Credentials

Configure an OpenAI API credential. This typically involves providing your OpenAI API key. This key will be used by the LLM nodes for AI content generation.

Veo3 (Fal.run) Credentials

Set up an HTTP Header Auth credential for the Veo3 API calls. This will likely involve providing an API key or token that Fal.run expects in the request headers.

Blotato Credentials

For all HTTP Request nodes interacting with Blotato (Upload Video to Blotato and all social media posting nodes), you'll need to replace YOUR_API_HERE with your actual Blotato API key in the blotato-api-key header parameter.

Social Media Account IDs

In the Assign Social Media IDs node, replace the placeholder "1111" values with your actual account IDs for Instagram, YouTube, TikTok, Facebook, Threads, Twitter, LinkedIn, Bluesky, and Pinterest. For Facebook, you'll also need your Facebook Page ID if you're posting to a page.

AI Agent Configuration

Review the prompt in the AI Agent: Generate Video Concept node. You can modify the initial text, such as "Give me an idea about [a Yeti speaking to a camera and doing a Vlog through his selfie stick].", to guide the AI toward specific topics or styles for your video content.

Ready to automate?

The complete installation and configuration are already prepared for your workspace. Activate the preconfigured workflow on N8nPort with one click.

Activate the workflow

Customization Ideas

This workflow offers several points for customization to fit your specific content needs:

  • AI Prompt Tuning: Adjust the initial prompt in the AI Agent: Generate Video Concept node to focus on different themes, characters, or video styles. You can also refine the system messages in both AI Agent nodes to control the output's tone, length, and format.

  • Social Media Selection: Enable or disable specific social media posting nodes based on which platforms you actively use. You might also add more HTTP Request nodes if Blotato supports other platforms you wish to target.

  • Scheduling: Modify the Schedule Trigger to run the workflow at different intervals (e.g., weekly, multiple times a day) depending on your content publishing frequency.

  • Google Sheet Structure: Adapt your Google Sheet to include additional metadata for your videos, such as categories, keywords, or specific publishing dates, and then map these fields within the Google Sheets nodes.

  • Video Generation Parameters: If Veo3 or Fal.run offers more parameters for video generation, you could explore adding these to the Call Veo3 API to Generate Video node's body to influence video style, length, or other characteristics.

Limitations and Troubleshooting

When working with this workflow, consider the following:

  • API Key Validity: Ensure all your API keys (OpenAI, Blotato, Veo3/Fal.run) are correct and active. Expired or incorrect keys are a common source of errors.

  • Google Sheet Configuration: Double-check that your Google Sheet IDs, sheet names, and column headers match exactly what's configured in the Google Sheets nodes. Mismatches can prevent data from being saved or retrieved correctly.

  • Social Media Account IDs: Verify that the social media account IDs in the Assign Social Media IDs node are accurate for your accounts. Incorrect IDs will lead to posting failures.

  • AI Output Quality: The quality of AI-generated ideas and prompts depends on the input and the AI model. You might need to refine the initial prompts or the AI Agent's system messages to achieve desired results.

  • Rate Limits: Be aware of potential rate limits imposed by the various APIs (OpenAI, Veo3, Blotato, social media platforms). Running the workflow too frequently might hit these limits, causing temporary failures.

  • Video Processing Time: Veo3 video generation can take time. The Wait for Veo3 Processing (5 mins) node is a fixed duration; if videos consistently take longer, you might need to adjust this wait time.

Frequently Asked Questions

Can I use a different AI model for script generation?

The workflow is configured to use GPT-4.1 via the OpenAI API. If you wish to use a different model, you would need to adjust the LLM: Generate Idea & Caption (GPT-4.1) and LLM: Format Prompt for Veo3 (GPT-4.1) nodes to connect to your preferred language model.

How do I add more social media platforms?

If Blotato supports additional platforms, you can add more HTTP Request nodes, similar to the existing social media nodes. You'll need to configure the new node with the correct Blotato API endpoint and payload for that specific platform.

What if my video generation takes longer than 5 minutes?

The Wait for Veo3 Processing (5 mins) node has a fixed duration. If your videos consistently take longer, you can adjust the wait time in that node's settings to prevent the workflow from trying to retrieve the video before it's ready.

How can I review videos before they are posted?

To implement a review step, you could add a manual approval node or a notification step after the Google Sheets: Log Final Video Output node. This would allow you to check the video URL before the social media posting sequence begins, potentially by pausing the workflow or requiring a manual trigger for the posting phase.

Is it possible to schedule posts for specific times?

The current workflow posts immediately after video generation. To schedule posts, you would need to explore Blotato's scheduling features or integrate a separate scheduling tool within n8n that can hold posts until a specified time before triggering the Blotato posting nodes.

Source and Next Steps

This workflow was originally shared by the n8n community. You can find the original workflow and more details at: https://n8n.io/workflows/5035

To get started, import this workflow into your n8n instance, configure your credentials, and customize the AI prompts and social media IDs to match your content strategy.

Activate this workflow on N8nPort

Choose your workspace and activate the fully prepared automation with one click.

Activate on N8nPort