Automate Video Quote Creation with n8n and PiAPI Flux

This n8n workflow automates creating cinematic video quotes by generating images, videos, and sounds from Google Sheets data using PiAPI Flux and ElevenLabs. It saves hours of manual content creation, delivering polished video quotes ready for YouTube upload.
manualTrigger
httpRequest
googleSheets
+5
Workflow Identifier: 1260
NODES in Use: Manual Trigger, HTTP Request, Wait, Google Sheets, Google Drive, Read/Write File, Code, Execute Command
Automate video quotes with n8n and PiAPI Flux

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What This Workflow Does ⚙️

This workflow takes a quote from Google Sheets and turns it into a video automatically.
It solves the problem of making videos by hand that waste many hours.
The outcome is a polished video with image, sound, and text ready to post on YouTube.

The workflow first reads quote and background text from Google Sheets.
Then it uses the PiAPI Flux service to create a realistic nature image based on the prompts.

Next, it makes a short animated video from that image.
Using ElevenLabs AI, it generates matching ambient sound for the video mood.

It merges video, sound, and quote text into a final clip with FFmpeg.
Then it uploads the video to YouTube with metadata from the quote.

Finally, it updates the Google Sheet with the new media URLs and video links.


Tools and Services Used

  • Google Sheets: Stores quotes and background prompt data.
  • PiAPI Flux: AI model generating photorealistic images and animated videos.
  • ElevenLabs: Creates ambient soundscape audio files.
  • Google Drive: Stores the generated sound files.
  • YouTube API: Uploads final videos.
  • FFmpeg: Combines video, audio, and overlays text.
  • n8n: Orchestrates the complete automation.

Inputs and Outputs

Inputs

  • Quote text and author from Google Sheets row.
  • Background description and prompt for image from Google Sheets.
  • API Keys for PiAPI, ElevenLabs, Google, and YouTube.

Processing Steps

  • Send prompt to PiAPI to create an image.
  • Wait and download generated image URL.
  • Update Google Sheets with image URL.
  • Create a video from the image with animation.
  • Wait and download video URL.
  • Save video file locally.
  • Generate ambient sound with ElevenLabs.
  • Upload sound to Google Drive and get link.
  • Update Google Sheets with sound URL.
  • Save audio file locally.
  • Create text overlay filters with JavaScript.
  • Run FFmpeg command to merge video, sound, text overlay.
  • Upload final video to YouTube.
  • Update Google Sheets with YouTube link and status.

Outputs

  • Generated image URL stored in sheet.
  • Generated video URL stored in sheet.
  • Uploaded sound file URL in Google Drive and sheet.
  • Final published video link on YouTube.

Beginner Step-by-Step: How to Use this Workflow in n8n

1. Importing the Workflow

  1. In the n8n editor, click on the top-right menu and select “Import from File”.
  2. Download the workflow file from this page first using the Download button.
  3. Choose the downloaded file to import.

2. Configure Credentials

  1. Open the imported workflow and locate nodes using API calls like HTTP Request and Google Sheets.
  2. Add your API Key credentials for PiAPI Flux and ElevenLabs in node settings.
  3. Make sure Google Sheets OAuth2 credentials are added.
  4. Connect Google Drive with correct account.
  5. Set YouTube OAuth2 credentials in the upload nodes.

3. Update IDs and Parameters

  1. Change Google Sheets Sheet ID to match your sheet.
  2. If needed update folder IDs or email fields for Google Drive and YouTube upload.
  3. Double-check prompts or text inside HTTP Request nodes to match your content.

4. Run a Test

  1. Click the Manual Trigger node’s “Execute Node” button.
  2. Watch the workflow run through all steps.
  3. Check updated links and video upload in Google Sheets.

5. Activate Workflow

  1. Once testing works, enable the trigger node for scheduled or webhook execution.
  2. Use the self-host n8n link if you want to run this outside the cloud and manage better control.

Why This Workflow Exists

People spend a lot of time making inspirational quote videos by hand.
That takes many hours every week and can cause mistakes.

This workflow helps save about 8 to 10 hours per week by automating the whole process.
It stops manual copy-paste and syncing errors.

Users get quick polished videos with matching music and text automatically.
The workflow does many technical steps so users don’t have to.


Edge Cases and Troubleshooting

  • Image generation stops or errors occur.
    Check if PiAPI API Key is correct.
  • YouTube upload fails with 403 Forbidden error.
    Refresh or reauthenticate YouTube OAuth2 credentials.
  • FFmpeg drawtext fails with font error.
    Make sure the font file “Kanit-Italic.ttf” is present on the server running n8n.

Customization Ideas ✏️

  • Change the image style by editing the “prompt” field in the Generate Image node JSON body.
  • Adjust zoom or motion parameters in the Image-to-Video node for different video effects.
  • Swap ElevenLabs voice or sound model ID to change the background audio tone.
  • Edit local file names or paths in Read/Write File nodes to organize output.

Sample Prompt for Image Generation

This prompt is sent in the Generate Image HTTP Request body.
Replace content in {{ }} with Google Sheets fields.

{
  "prompt": "Ultra-realistic vertical nature landscape, {{ $json['Background (EN)'] }}, featuring {{ $json['Prompt (EN)'] }}, high detail, soft atmospheric lighting..."
}

Sample JavaScript Code For Text Overlay

This code runs inside the Prepare Overlay Text (Quote & Author)1 node.
It organizes Thai quote text to fit video width and generates complex FFmpeg drawtext filters.

const quoteFont = "Kanit-Italic.ttf";
const quoteFontSize = 70;
// ... [code truncated for brevity but includes all logic for line breaks and drawtext commands]

Summary

✓ Saves many hours by automating quote video making.
✓ Automatically generates images, video, sound, and text.
✓ Uploads finished videos directly to YouTube.
✓ Updates Google Sheets with all new media links.
✓ Easy to use after importing and configuring in n8n.

→ Users get quality, consistent inspirational quote videos faster.
→ Workflow handles complex tasks with simple inputs.


Automate video quotes with n8n and PiAPI Flux

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

The workflow reads the quote and prompts from Google Sheets, creates an image and video using PiAPI Flux, generates sound with ElevenLabs, merges them with text overlay, then uploads the finished video to YouTube.
Add API Keys for PiAPI Flux and ElevenLabs, connect Google Sheets and Drive with OAuth2, set YouTube OAuth2 credentials, and update sheet IDs or folder IDs if needed.
The likely cause is invalid or expired YouTube OAuth2 authentication. The user needs to refresh or reauthenticate YouTube credentials inside n8n.
The workflow handles one quote per run. To process many quotes, users can loop through Google Sheets rows or run multiple workflow executions.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.