Auto-Translate & Recreate TikTok Carousels with Gemini Vision & Midjourney
π¨ TikTok Carousel Replicator & Translator
An end-to-end automation system that monitors TikTok accounts for new 3-image carousel posts, extracts text overlays and visual layouts using AI vision analysis, translates content into English, and automatically regenerates brand-new carousel images ready for review and posting.
What It Does
This workflow eliminates the manual process of:
- Daily monitoring for new carousel content
- Screenshot capture and image extraction
- Text transcription and translation
- Layout recreation in design tools
- Manual formatting and brand consistency checks
Instead, it delivers 3 production-ready images to your inbox every morningβcomplete with translated text, matched composition, and side-by-side comparisons for quick approval.
Key Features
- Automated Daily Monitoring - Checks target TikTok accounts on schedule
- AI-Powered Vision Analysis - Extracts text, layout, and composition with Gemini Vision
- Smart Translation - Converts text to natural English while preserving intent
- Intelligent Image Generation - Recreates carousels with Midjourney/DALL-E based on analyzed layouts
- Review Dashboard - Organized Google Sheets with original vs. new comparisons
- Email Notifications - Morning digest with clickable previews
Who It's For
Content creators, social media managers, and marketing teams who need to adapt high-performing carousel content from other languages into Englishβwithout spending hours in Canva every day.
Time Saved
From 3+ hours of manual work β 2 minutes of review per carousel set.
Workflow Breakdown
Monitor β Extract & Analyze β Translate β Generate β Review & Deliver
Each section runs automatically, processing images sequentially and delivering organized results to your review dashboard with email notifications.
π SETUP INSTRUCTIONS
Required Credentials:
- Google Gemini API - For vision analysis
- Midjourney API (or alternative: DALL-E, Stable Diffusion)
- OpenAI API - For prompt generation and translation enhancement
- Google Sheets - For review dashboard
- Gmail - For notifications
Configuration Steps:
- Replace
@USERNAMEin TikTok RSS node with target account - Set your Google Sheet ID in "Save to Review Sheet" node
- Update email addresses in notification node
- Test with a single post before enabling daily schedule
Alternative Approaches:
- Can use TikTok API instead of RSS (if available)
- Can use Canva API instead of Midjourney for generation
- Can integrate with Airtable for more advanced review workflows
- Can add approval workflow with interactive buttons
n8n Auto-Translate & Recreate TikTok Carousels with Gemini Vision & Midjourney
This n8n workflow automates the process of generating translated content and images for TikTok-style carousels, leveraging AI for creative tasks and human-in-the-loop (HITL) for review. It's designed to streamline content creation for multi-language social media campaigns, particularly for visual platforms like TikTok.
What it does
This workflow orchestrates a series of steps to create localized carousel content:
- Triggers on Schedule: The workflow starts on a defined schedule, regularly checking for new content to process.
- Fetches Content from Google Sheets: It reads data from a specified Google Sheet, likely containing original content, image URLs, and translation status.
- Filters for Untranslated Content: It checks if the content has already been processed (translated and images generated). Only items marked as "not translated" proceed.
- Generates Image Descriptions (English): For each untranslated item, it uses an OpenAI model to generate a detailed English description of the original image, suitable for image generation prompts.
- Generates Midjourney Prompts: It then uses another OpenAI model to transform the English image description into a Midjourney-compatible prompt, ensuring high-quality image generation.
- Translates Content to Target Language: The workflow translates the original content into a target language using an OpenAI Chat Model.
- Generates Translated Image Descriptions: It translates the English image description into the target language using an OpenAI Chat Model.
- Generates Translated Midjourney Prompts: It translates the Midjourney prompt into the target language using an OpenAI Chat Model.
- Generates Images with Gemini Vision: It uses Google Gemini to generate new images based on the translated Midjourney prompts.
- Aggregates Generated Content: All the generated translations, prompts, and image URLs are collected.
- Sends for Human Review (Gmail): The aggregated content (original, translated, and generated image links) is sent via Gmail for human review and approval.
- Waits for Approval: The workflow pauses, awaiting a response to the approval email.
- Processes Approval/Rejection: Based on the human review, the workflow either proceeds with approved content or marks rejected content for re-evaluation.
- Updates Google Sheet: Finally, it updates the Google Sheet with the translated content, generated image URLs, and the status (translated/approved).
Prerequisites/Requirements
To use this workflow, you will need:
- n8n Instance: A running n8n instance.
- Google Sheets Account: Configured credentials for Google Sheets to read and write data.
- OpenAI API Key: Credentials for OpenAI to access its language models (for translation and prompt generation).
- Google Gemini API Key: Credentials for Google Gemini to access its vision capabilities for image generation.
- Gmail Account: Configured credentials for Gmail to send approval emails.
- Midjourney Account (Implicit): While not directly integrated for image generation within n8n, the workflow generates prompts for Midjourney, implying you would use Midjourney separately to create the images based on these prompts.
- Understanding of LangChain nodes: Familiarity with how LangChain nodes (AI Agent, OpenAI Chat Model, Google Gemini) function within n8n.
Setup/Usage
- Import the Workflow: Download the provided JSON and import it into your n8n instance.
- Configure Credentials:
- Set up your Google Sheets credentials.
- Set up your OpenAI credentials.
- Set up your Google Gemini credentials.
- Set up your Gmail credentials.
- Configure Google Sheet Node (ID: 18):
- Specify the Spreadsheet ID and Sheet Name where your original content resides.
- Ensure your sheet has columns for original content, image URLs, and a status column (e.g., "Translated Status") that the workflow can update.
- Configure AI Agent (ID: 1119) and OpenAI/Gemini Nodes (IDs: 1153, 1250, 1309):
- Review the prompts and settings within these nodes to ensure they align with your content and desired output.
- Adjust the "Model" and "Temperature" parameters as needed for your specific use case.
- Configure Gmail Node (ID: 356):
- Specify the recipient email address for the human review.
- Customize the email subject and body to provide clear instructions for approval/rejection.
- Configure Wait Node (ID: 514):
- Adjust the waiting period or conditions if necessary.
- Activate the Workflow: Once configured, activate the workflow. It will run according to the schedule defined in the "Schedule Trigger" node (ID: 839).
This workflow provides a robust framework for automating multi-language content creation, significantly reducing manual effort and accelerating content deployment.
Related Templates
Track competitor SEO keywords with Decodo + GPT-4.1-mini + Google Sheets
This workflow automates competitor keyword research using OpenAI LLM and Decodo for intelligent web scraping. Who this is for SEO specialists, content strategists, and growth marketers who want to automate keyword research and competitive intelligence. Marketing analysts managing multiple clients or websites who need consistent SEO tracking without manual data pulls. Agencies or automation engineers using Google Sheets as an SEO data dashboard for keyword monitoring and reporting. What problem this workflow solves Tracking competitor keywords manually is slow and inconsistent. Most SEO tools provide limited API access or lack contextual keyword analysis. This workflow solves that by: Automatically scraping any competitorβs webpage with Decodo. Using OpenAI GPT-4.1-mini to interpret keyword intent, density, and semantic focus. Storing structured keyword insights directly in Google Sheets for ongoing tracking and trend analysis. What this workflow does Trigger β Manually start the workflow or schedule it to run periodically. Input Setup β Define the website URL and target country (e.g., https://dev.to, france). Data Scraping (Decodo) β Fetch competitor web content and metadata. Keyword Analysis (OpenAI GPT-4.1-mini) Extract primary and secondary keywords. Identify focus topics and semantic entities. Generate a keyword density summary and SEO strength score. Recommend optimization and internal linking opportunities. Data Structuring β Clean and convert GPT output into JSON format. Data Storage (Google Sheets) β Append structured keyword data to a Google Sheet for long-term tracking. Setup Prerequisites If you are new to Decode, please signup on this link visit.decodo.com n8n account with workflow editor access Decodo API credentials OpenAI API key Google Sheets account connected via OAuth2 Make sure to install the Decodo Community node. Create a Google Sheet Add columns for: primarykeywords, seostrengthscore, keyworddensity_summary, etc. Share with your n8n Google account. Connect Credentials Add credentials for: Decodo API credentials - You need to register, login and obtain the Basic Authentication Token via Decodo Dashboard OpenAI API (for GPT-4o-mini) Google Sheets OAuth2 Configure Input Fields Edit the βSet Input Fieldsβ node to set your target site and region. Run the Workflow Click Execute Workflow in n8n. View structured results in your connected Google Sheet. How to customize this workflow Track Multiple Competitors β Use a Google Sheet or CSV list of URLs; loop through them using the Split In Batches node. Add Language Detection β Add a Gemini or GPT node before keyword analysis to detect content language and adjust prompts. Enhance the SEO Report β Expand the GPT prompt to include backlink insights, metadata optimization, or readability checks. Integrate Visualization β Connect your Google Sheet to Looker Studio for SEO performance dashboards. Schedule Auto-Runs β Use the Cron Node to run weekly or monthly for competitor keyword refreshes. Summary This workflow automates competitor keyword research using: Decodo for intelligent web scraping OpenAI GPT-4.1-mini for keyword and SEO analysis Google Sheets for live tracking and reporting Itβs a complete AI-powered SEO intelligence pipeline ideal for teams that want actionable insights on keyword gaps, optimization opportunities, and content focus trends, without relying on expensive SEO SaaS tools.
Automate invoice processing with OCR, GPT-4 & Salesforce opportunity creation
PDF Invoice Extractor (AI) End-to-end pipeline: Watch Drive β Download PDF β OCR text β AI normalize to JSON β Upsert Buyer (Account) β Create Opportunity β Map Products β Create OLI via Composite API β Archive to OneDrive. --- Node by node (what it does & key setup) 1) Google Drive Trigger Purpose: Fire when a new file appears in a specific Google Drive folder. Key settings: Event: fileCreated Folder ID: google drive folder id Polling: everyMinute Creds: googleDriveOAuth2Api Output: Metadata { id, name, ... } for the new file. --- 2) Download File From Google Purpose: Get the file binary for processing and archiving. Key settings: Operation: download File ID: ={{ $json.id }} Creds: googleDriveOAuth2Api Output: Binary (default key: data) and original metadata. --- 3) Extract from File Purpose: Extract text from PDF (OCR as needed) for AI parsing. Key settings: Operation: pdf OCR: enable for scanned PDFs (in options) Output: JSON with OCR text at {{ $json.text }}. --- 4) Message a model (AI JSON Extractor) Purpose: Convert OCR text into strict normalized JSON array (invoice schema). Key settings: Node: @n8n/n8n-nodes-langchain.openAi Model: gpt-4.1 (or gpt-4.1-mini) Message role: system (the strict prompt; references {{ $json.text }}) jsonOutput: true Creds: openAiApi Output (per item): $.message.content β the parsed JSON (ensure itβs an array). --- 5) Create or update an account (Salesforce) Purpose: Upsert Buyer as Account using an external ID. Key settings: Resource: account Operation: upsert External Id Field: taxid_c External Id Value: ={{ $json.message.content.buyer.tax_id }} Name: ={{ $json.message.content.buyer.name }} Creds: salesforceOAuth2Api Output: Account record (captures Id) for downstream Opportunity. --- 6) Create an opportunity (Salesforce) Purpose: Create Opportunity linked to the Buyer (Account). Key settings: Resource: opportunity Name: ={{ $('Message a model').item.json.message.content.invoice.code }} Close Date: ={{ $('Message a model').item.json.message.content.invoice.issue_date }} Stage: Closed Won Amount: ={{ $('Message a model').item.json.message.content.summary.grand_total }} AccountId: ={{ $json.id }} (from Upsert Account output) Creds: salesforceOAuth2Api Output: Opportunity Id for OLI creation. --- 7) Build SOQL (Code / JS) Purpose: Collect unique product codes from AI JSON and build a SOQL query for PricebookEntry by Pricebook2Id. Key settings: pricebook2Id (hardcoded in script): e.g., 01sxxxxxxxxxxxxxxx Source lines: $('Message a model').first().json.message.content.products Output: { soql, codes } --- 8) Query PricebookEntries (Salesforce) Purpose: Fetch PricebookEntry.Id for each Product2.ProductCode. Key settings: Resource: search Query: ={{ $json.soql }} Creds: salesforceOAuth2Api Output: Items with Id, Product2.ProductCode (used for mapping). --- 9) Code in JavaScript (Build OLI payloads) Purpose: Join lines with PBE results and Opportunity Id β build OpportunityLineItem payloads. Inputs: OpportunityId: ={{ $('Create an opportunity').first().json.id }} Lines: ={{ $('Message a model').first().json.message.content.products }} PBE rows: from previous node items Output: { body: { allOrNone:false, records:[{ OpportunityLineItem... }] } } Notes: Converts discount_total β per-unit if needed (currently commented for standard pricing). Throws on missing PBE mapping or empty lines. --- 10) Create Opportunity Line Items (HTTP Request) Purpose: Bulk create OLIs via Salesforce Composite API. Key settings: Method: POST URL: https://<your-instance>.my.salesforce.com/services/data/v65.0/composite/sobjects Auth: salesforceOAuth2Api (predefined credential) Body (JSON): ={{ $json.body }} Output: Composite API results (per-record statuses). --- 11) Update File to One Drive Purpose: Archive the original PDF in OneDrive. Key settings: Operation: upload File Name: ={{ $json.name }} Parent Folder ID: onedrive folder id Binary Data: true (from the Download node) Creds: microsoftOneDriveOAuth2Api Output: Uploaded file metadata. --- Data flow (wiring) Google Drive Trigger β Download File From Google Download File From Google β Extract from File β Update File to One Drive Extract from File β Message a model Message a model β Create or update an account Create or update an account β Create an opportunity Create an opportunity β Build SOQL Build SOQL β Query PricebookEntries Query PricebookEntries β Code in JavaScript Code in JavaScript β Create Opportunity Line Items --- Quick setup checklist π Credentials: Connect Google Drive, OneDrive, Salesforce, OpenAI. π IDs: Drive Folder ID (watch) OneDrive Parent Folder ID (archive) Salesforce Pricebook2Id (in the JS SOQL builder) π§ AI Prompt: Use the strict system prompt; jsonOutput = true. π§Ύ Field mappings: Buyer tax id/name β Account upsert fields Invoice code/date/amount β Opportunity fields Product name must equal your Product2.ProductCode in SF. β Test: Drop a sample PDF β verify: AI returns array JSON only Account/Opportunity created OLI records created PDF archived to OneDrive --- Notes & best practices If PDFs are scans, enable OCR in Extract from File. If AI returns non-JSON, keep βReturn only a JSON arrayβ as the last line of the prompt and keep jsonOutput enabled. Consider adding validation on parsing.warnings to gate Salesforce writes. For discounts/taxes in OLI: Standard OLI fields donβt support per-line discount amounts directly; model them in UnitPrice or custom fields. Replace the Composite API URL with your orgβs domain or use the Salesforce nodeβs Bulk Upsert for simplicity.
Automated weekly security audit reports with Gmail delivery
π N8N Security Audit Report - Automated Weekly Email π― What does this workflow do? This workflow automatically generates and emails a comprehensive security audit report for your N8N instance every week. It identifies potential security risks related to: Credentials π : Exposed or insecure credentials Nodes π§© : Sensitive nodes (Code, HTTP Request, SSH, FTP, etc.) Instance settings π’ : Global security configuration Community nodes π¦ : Third-party nodes that may pose risks The report includes direct links to affected workflows, execution statuses, and actionable recommendations. --- β¨ Key Features π Smart Risk Assessment Calculates overall risk level: π© Low / π§ Moderate / π₯ High Tracks unique credentials (not just total occurrences) Provides detailed breakdown by node type π Direct Workflow Links Clickable links to each workflow mentioned Shows last execution status (π’ success / π΄ failed) Displays execution timestamps π Bilingual Support Full support for French and English Switch language with a single variable π§ Beautiful HTML Email Clean, professional formatting Color-coded risk levels Emoji icons for easy scanning --- π Quick Setup (5 minutes) 1οΈβ£ Configure Credentials N8N API: Generate an API key in your N8N settings Gmail OAuth2: Set up OAuth2 for Gmail sending 2οΈβ£ Set Your Variables Edit the "Set Config Variables" node: javascript { "email_to": "your.email@domain.com", "project_name": "My-N8N-Project", "server_url": "https://n8n.yourdomain.com", // NO trailing slash! "Language": "EN" // or "FR" } 3οΈβ£ Test & Activate Click "Execute Workflow" to test Check your email inbox Activate for weekly automation --- π§ Example Report Output Subject: π Audit Report My-Project β Risk π§ Moderate Content: π Summary β’ Credentials involved: 8 (5 unique) β’ Nodes involved: 12 π» code: 4 π httpRequest: 3 π ssh: 2 β’ Community nodes: 1 β’ Overall risk level: π§ Moderate π Credentials Risk Report πΉ Credentials with full access π My AWS Credentials π Database Admin π Workflow: Data Processing Pipeline π’ (25-10-2024 06:15 β 06:16) π» Process Data π API Call π§© Nodes Risk Report [...detailed node analysis...] --- π¨ Customization Options Change Schedule Modify the "Schedule Trigger" node to run: Daily at 8 AM Monthly on the 1st Custom cron expression Add Recipients Add multiple emails in the Gmail node's toList parameter Adjust Risk Thresholds Edit the JavaScript in "Format Audit Report" nodes to customize when risk levels change Use Different Email Service Replace Gmail node with: SMTP Microsoft Outlook SendGrid Any email service N8N supports --- π‘ Use Cases β Compliance Monitoring: Track security posture for audits β Team Awareness: Keep your team informed of security status β Change Detection: Notice when new risky nodes are added β Best Practices: Get recommendations to improve security β Multi-Environment: Run separate instances for dev/staging/prod --- π§ Technical Details Nodes Used: 8 Credentials Required: 2 (N8N API + Gmail OAuth2) External Dependencies: None N8N Version: Compatible with latest N8N versions Execution Time: ~10-20 seconds --- π Requirements N8N instance with API access Gmail account (or other email service) N8N API key with audit permissions Valid SSL certificate for workflow links (recommended) --- π Troubleshooting Empty report? β Check your N8N API key has audit permissions Workflow links don't work? β Verify server_url is correct and has no trailing slash No execution status shown? β Workflows must have been executed at least once Wrong language displayed? β Set Language to exactly "FR" or "EN" (uppercase) --- π Why This Template? Unlike basic monitoring tools, this workflow: β Provides context-aware security analysis β Links directly to affected workflows β Shows real execution data (not just theoretical risks) β Calculates unique credential exposure (not just counts) β Supports bilingual reports β Delivers actionable recommendations --- π€ Feedback & Support Found this helpful? Please rate the template! Have suggestions? Drop a comment below. Pro tip: Combine this with N8N's native alerting for real-time incident response! --- Tags: security audit monitoring compliance automation email reporting credentials governance --- π License MIT - Feel free to modify and share!