Auto-Generate Social Posts from YouTube via Dumpling AI

🧠 Automate Social Media Content Creation from YouTube Videos

This powerful workflow automatically generates platform-specific social media posts (Instagram, Facebook, LinkedIn) from YouTube videos. It takes a topic from a Google Sheet, searches for relevant YouTube videos using Dumpling AI, selects the best match with GPT-4o, fetches the transcript, and creates tailored posts with matching AI-generated images β€” all saved back to your Google Sheet. Perfect for content creators, social media managers, and marketers who want to repurpose YouTube content efficiently.

The workflow runs on a schedule, processes one topic at a time, and marks topics as completed to avoid duplication. It combines the power of Dumpling AI for YouTube search and image generation, OpenAI's GPT-4o for intelligent content selection and copywriting, and Google Sheets for data management.

πŸ“‹ Node-by-Node Breakdown

  1. Trigger Search Schedule (Schedule Trigger) β€” No auth required. Runs the workflow on a configurable interval (default: every hour). You can adjust the schedule in the node settings.

  2. Get Unsearched Topic from Google Sheet (Google Sheets) β€” OAuth2 (Google Sheets). Reads the first unsearched topic from the "YouTube Topics" sheet. Uses a filter to find rows where "Searched?" column is empty, and returns only the first match.

  3. Search YouTube via Dumpling AI (HTTP Request) β€” Header Auth (Dumpling AI API key). Sends a POST request to Dumpling AI's YouTube search endpoint with the topic as query. Returns video results matching the search term.

  4. Filter + Sort YouTube Videos (Code) β€” No auth. Custom JavaScript that extracts video data from the API response, filters for video type, sorts by published date (newest first), and returns the 3 most recent videos.

  5. Prepare Video List for AI (Aggregate) β€” No auth. Combines all video items into a single array for processing by the AI node.

  6. Select Best Video with GPT-4o (OpenAI) β€” API Key auth (OpenAI). Uses GPT-4o to analyze the search results and select the most relevant video based on the original topic and current date. Returns the best match in structured JSON format.

  7. Get Transcript (Dumpling AI) (HTTP Request) β€” Header Auth (Dumpling AI API key). Fetches the YouTube transcript for the selected video using Dumpling AI's transcript endpoint.

  8. Generate Posts with GPT-4o (OpenAI) β€” API Key auth (OpenAI). Takes the transcript and generates three platform-specific posts (Instagram, Facebook, LinkedIn) with matching image prompts. Each post is tailored to the platform's style and audience.

  9. Generate Instagram Image (Dumpling AI) (HTTP Request) β€” Header Auth (Dumpling AI API key). Creates an AI-generated image for the Instagram post using FLUX.1-pro model.

  10. Generate Facebook Image (Dumpling AI) (HTTP Request) β€” Header Auth (Dumpling AI API key). Creates an AI-generated image for the Facebook post.

  11. Generate LinkedIn Image (Dumpling AI) (HTTP Request) β€” Header Auth (Dumpling AI API key). Creates an AI-generated image for the LinkedIn post.

  12. Format Instagram Post (Set) β€” No auth. Structures the Instagram post data with platform name, content text, and image URL.

  13. Format Facebook Post (Set) β€” No auth. Structures the Facebook post data similarly.

  14. Format LinkedIn Post (Set) β€” No auth. Structures the LinkedIn post data similarly.

  15. Save Instagram Post to Sheet (Google Sheets) β€” OAuth2 (Google Sheets). Appends the formatted Instagram post to the "Social Media Post" sheet.

  16. Save Facebook Post to Sheet (Google Sheets) β€” OAuth2 (Google Sheets). Appends the formatted Facebook post to the same sheet.

  17. Save LinkedIn Post to Sheet (Google Sheets) β€” OAuth2 (Google Sheets). Appends the formatted LinkedIn post to the same sheet.

  18. Merge Post Results (Merge) β€” No auth. Combines the three post results into a single output for the final update step.

  19. Update Topic Status in Sheet (Google Sheets) β€” OAuth2 (Google Sheets). Marks the original topic as "Searched?" = "Yes" in the YouTube Topics sheet to prevent reprocessing.

πŸ”§ Setup Instructions

Required Accounts & Credentials:

  1. Google Account β€” For Google Sheets access. Create OAuth2 credentials in n8n for Google Sheets.
  2. Dumpling AI Account β€” Sign up at app.dumplingai.com and get your API key. Add as Header Auth credential in n8n.
  3. OpenAI Account β€” Get your API key from platform.openai.com. Add as API Key credential in n8n.

Required Google Sheets:

  • YouTube Topics sheet with columns: Youtube Topics, Searched?
  • Social Media Post sheet with columns: platform, Content, Image

πŸ’‘ Use Cases & Variations

Primary Use Cases:

  • Content repurposing for social media managers
  • Automated content calendar creation
  • YouTube-to-social-media content pipeline
  • Brand consistency across platforms

Adaptation Ideas:

  • Add more platforms (Twitter/X, TikTok, Pinterest)
  • Schedule posts directly to social media using n8n integrations
  • Add human review step before posting
  • Use different AI models for image generation
  • Add email newsletter content generation
  • Include video thumbnail generation
  • Add analytics tracking for post performance
20 nodesschedule triggerMarketing
Google SheetsHTTP RequestCodeAggregateOpen AISetMergeSticky Note

Workflow JSON

{
  "id": "ddQrW7UAltdowiEB",
  "meta": {
    "instanceId": "a1ae5c8dc6c65e674f9c3947d083abcc749ef2546dff9f4ff01de4d6a36ebfe6",
    "templateCredsSetupCompleted": true
  },
  "name": "Auto-Generate Platform-Specific Posts from YouTube Videos with Dumpling AI",
  "tags": [],
  "nodes": [
    {
      "id": "42d0234f-be8d-4df3-9f02-ff5ee574bea3",
      "name": "Trigger Search Schedule",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -784,
        32
      ],
      "parameters": {
        "rule": {
          "interval": [
            {}
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "4e72498d-e44d-4611-904b-83538f2cb352",
      "name": "Get Unsearched Topic from Google Sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -560,
        32
      ],
      "parameters": {
        "options": {
          "returnFirstMatch": true
        },
        "filtersUI": {
          "values": [
            {
              "lookupColumn": "Searched?"
            }
          ]
        },
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": "gid=0",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1Jq2UpzUq8lBMNJxezZLErnlqH4z7tKI2h2jONNA3lEc/edit#gid=0",
// ... truncated (copy to see full JSON)

How to Import This Workflow

  1. 1Copy the workflow JSON above using the Copy Workflow JSON button.
  2. 2Open your n8n instance and go to Workflows.
  3. 3Click Import from JSON and paste the copied workflow.

Don't have an n8n instance? Start your free trial at n8nautomation.cloud

Related Templates

AI LinkedIn Content Creator with Perplexity Research & Auto-Posting

AI-Powered LinkedIn Content Automation Workflow Overview This workflow automates the entire LinkedIn content lifecycle β€” from research and ideation to image generation and scheduled posting. It uses Perplexity AI for topic research, an Anthropic Claude model as the content strategist, and OpenAI's image generation model to create branded visuals. The workflow runs on two separate schedules: one for content creation (daily) and one for publishing (twice weekly). It stores all posts in a Google Sheet for review before they go live, giving you full control over what gets published. This is ideal for founders, marketers, and content creators who want to maintain a consistent LinkedIn presence without spending hours writing, designing, and scheduling posts manually. The system learns from past content stored in Google Sheets and uses AI to generate fresh, on-brand posts that resonate with your target audience. Node-by-Node Breakdown Content Creation Pipeline (Runs Daily at 5 AM) Schedule () β€” No auth. Triggers the content creation workflow daily at 5:00 AM. This is the starting point for generating new post ideas. Get Past Ideas () β€” OAuth2. Reads all rows from the "LinkedIn Posts" sheet in the Google Sheet "AI Content Database". This provides the AI with context about previously generated posts to avoid repetition. Join Ideas () β€” No auth. A JavaScript code node that concatenates all past post ideas into a single text string, making it easy for the AI to reference them. LinkedIn Creator Agent () β€” No auth (uses connected models). This is the core AI agent that generates LinkedIn post content. It uses: - Anthropic Chat Model () β€” API Key auth. Uses Claude 3.7 Sonnet as the language model for content generation. - Perplexity Research () β€” API Key auth. A sub-workflow that uses Perplexity AI to research current topics and trends. - Structured Output Parser () β€” No auth. Ensures the AI output follows a structured JSON format with fields: , , and . Image Style () β€” OAuth2. Downloads a reference image from Google Drive that serves as the style guide for generating new images. OpenAI Image1 () β€” Header Auth (HTTP Header Auth). Sends a POST request to OpenAI's image generation API (gpt-image-1 model) with the reference image and a prompt describing the desired image for the LinkedIn post. Convert to File () β€” No auth. Converts the base64 image data from OpenAI's response into a binary file for saving to Google Drive. Save Image () β€” OAuth2. Uploads the generated image to a specific folder ("LinkedIn AI Posts") in Google Drive, naming it after the post title. Save Post () β€” OAuth2. Appends a new row to the "LinkedIn Posts" sheet with the post text, description, image URL, and status set to "review". Publishing Pipeline (Runs Every 3 Days at 2 PM) Schedule 2 () β€” No auth. Triggers the publishing workflow every 3 days at 2:00 PM. Get Ready Posts () β€” OAuth2. Filters the Google Sheet for rows where the status column equals "ready", retrieving posts that have been approved for publishing. Pick One () β€” No auth. Limits the output to a single post (first row) from the filtered results. Download Image () β€” OAuth2. Downloads the image associated with the selected post from Google Drive using the image URL stored in the sheet. Publish Post () β€” OAuth2. Publishes the post to LinkedIn with the text content and attached image, set to public visibility. Update Status () β€” OAuth2. Updates the status of the published post from "ready" to "posted" in the Google Sheet, matching by the "about" column. Setup Instructions Required Accounts & Services Google Account β€” For Google Sheets and Google Drive access. You'll need to create a Google Cloud Project and enable the Sheets and Drive APIs, then create OAuth2 credentials. Anthropic Account β€” Sign up at console.anthropic.com to get an API key for Claude 3.7 Sonnet. Perplexity AI Account β€” Sign up at perplexity.ai and obtain an API key for research capabilities. OpenAI Account β€” Sign up at platform.openai.com and get an API key for image generation. LinkedIn Account β€” You'll need a LinkedIn profile or company page to post to. Connect via n8n's LinkedIn OAuth integration. Configuration Steps Create a Google Sheet named "AI Content Database" with a sheet called "LinkedIn Posts" containing columns: , , , . Upload a reference image to Google Drive that represents your brand's visual style. Update the Google Sheet ID and folder IDs in the nodes to match your own. Configure all credential connections in n8n for each service. Adjust the cron schedules to match your desired posting frequency. Customize the AI system prompt in the LinkedIn Creator Agent to match your brand voice. Use Cases & Variations Primary Use Cases Personal Brand Building: Automate daily LinkedIn content for thought leaders and consultants. Agency Content Management: Manage multiple client content calendars from a single workflow. Content Repurposing: Adapt the workflow to generate content for Twitter, Instagram, or newsletters. Possible Variations Platform Swap: Replace the LinkedIn node with Twitter, Facebook, or Slack nodes. Research Source: Swap Perplexity for a Google Search API or RSS feed reader. Image Model: Use DALL-E 3 or Stable Diffusion instead of gpt-image-1. Review Workflow: Add a Slack notification node to alert you when posts are ready for review. Multi-Platform Publishing: Duplicate the publishing pipeline for different social networks. Content Calendar: Add a calendar node to schedule posts for specific dates and times.

23 nodes

Cheap and Fast High Quality AI UGC Image Generator

Overview This workflow automates the creation of User-Generated Content (UGC) style marketing images for any product. Simply upload a product photo (preferably with a white background) to a designated Google Drive folder, and the workflow will use AI to generate 50 unique, realistic, and diverse UGC-style images showing the product being used in various real-world scenarios. All generated images are automatically saved back to the same Google Drive folder, ready for use in social media, e-commerce listings, and marketing campaigns. This is an incredibly powerful tool for content creators, e-commerce stores, and marketing teams who need high-quality, authentic-looking product images at scale without expensive photoshoots. The workflow leverages Mistral AI for prompt generation and Fal.ai's Gemini 2.5 Flash Image model for image generation, making it both intelligent and cost-effective at approximately $0.039 per generated image. Workflow Steps Google Drive Trigger (OAuth2) β€” Watches a specific Google Drive folder for new file uploads. When a new product image is detected, the workflow triggers automatically. Configured to poll every minute and trigger on file creation events in the "UGC" folder. Setup (No auth) β€” A simple Set node that stores your Fal.ai API key as a workflow variable. You must replace with your actual Fal.ai API key before running the workflow. Generate Prompts (No auth) β€” An LLM Chain node using Mistral Cloud Chat Model. It takes the product name (extracted from the uploaded file's name) and generates 50 creative, diverse, and realistic UGC-style image prompts. Each prompt describes a different scenario where the product is being used, including environment, human interaction, and product features. Mistral Cloud Chat Model (API Key auth) β€” The language model powering prompt generation. Uses the model to generate high-quality, contextually relevant prompts. Structured Output Parser (No auth) β€” Ensures the AI output is valid JSON matching the expected schema: an array of objects with (integer) and (string) fields. Split Out (No auth) β€” Splits the array of 50 generated prompts into individual items, so each prompt can be processed independently. Loop Over Items (No auth) β€” Iterates over each generated prompt one at a time. For each prompt, it triggers the image generation process. No Operation, do nothing (No auth) β€” A placeholder node on the loop's first output branch (used for flow control, does nothing). Generate Image (Header Auth) β€” An HTTP Request node that calls Fal.ai's Gemini 2.5 Flash Image Edit API. It sends the prompt text along with the original product image URL (from Google Drive) to generate a new UGC-style image. Authentication is via a custom header using the API key from the Setup node. Retrieve Image (No auth) β€” A second HTTP Request node that downloads the generated image from the URL returned by the Fal.ai API. Upload file (OAuth2) β€” Uploads the generated UGC image back to the same Google Drive folder. The filename is constructed from the original product name and the prompt number. Setup Instructions Required Accounts & Credentials Google Drive Account β€” You need a Google account with access to Google Drive. Create a folder (e.g., "UGC") where you'll upload product images and where generated images will be saved. Fal.ai Account β€” Sign up at fal.ai and get an API key. You'll need credits to use the Gemini 2.5 Flash Image Edit model. Mistral AI Account β€” Sign up at Mistral AI and obtain an API key for the chat model. Configuration Steps Google Drive Credentials: In n8n, set up Google Drive OAuth2 credentials following this guide. Mistral AI Credentials: Add your Mistral API key as a credential in n8n. Fal.ai API Key: In the Setup node, replace with your actual Fal.ai API key. Google Drive Folder: Ensure your Google Drive folder and all files within it are publicly accessible (shareable via link). Update the folder ID in both the Google Drive Trigger and Upload file nodes. Product Image: Upload a product image with a white background to the watched Google Drive folder. Use Cases & Customizations Primary Use Cases E-commerce Product Photography: Generate lifestyle images showing products in use for online stores Social Media Content: Create authentic-looking UGC for Instagram, TikTok, and Facebook campaigns Marketing Materials: Produce diverse product images for ads, brochures, and websites A/B Testing: Generate multiple variations of product images to test in marketing campaigns Customization Options Number of Prompts: In the Generate Prompts node, change "Your task is to generate 50" to any number you prefer Prompt Quality: Modify the instructions in the Generate Prompts node to change the style, tone, or focus of generated prompts Multiple Base Images: In the Generate Image node's JSON body, add more to use multiple product images Images Per Prompt: Change in the Generate Image node to generate multiple variations per prompt Output Folder: Change the folder ID in the Upload file node to save images to a different location Image Model: Replace the Fal.ai endpoint URL to use a different image generation model

17 nodes

Auto-Generate Platform-Specific Posts from YouTube Videos with Dumpling AI

Overview This workflow automatically generates platform-specific social media posts (Instagram, Facebook, LinkedIn) from YouTube videos. It reads a topic from a Google Sheet, searches YouTube via Dumpling AI, selects the best matching video using GPT-4o, fetches its transcript, and creates tailored posts with AI-generated images. The final output is saved back to Google Sheets, making it ideal for content creators and marketers who want to repurpose video content across social media platforms efficiently. Workflow Steps Trigger Search Schedule β€” Schedule Trigger (No auth) β€” Runs the workflow on a schedule. Configured to run at regular intervals (default: every hour) but you can customize the cron or interval in the node settings. Get Unsearched Topic from Google Sheet β€” Google Sheets (OAuth2) β€” Reads a topic from the "YouTube Topics" sheet. Uses a filter to find rows where the "Searched?" column is empty, returning the first match. Requires Google Sheets OAuth2 credentials. Search YouTube via Dumpling AI β€” HTTP Request (Header Auth) β€” Sends a POST request to Dumpling AI's YouTube search endpoint. The query is dynamically populated from the Google Sheets topic. Requires a Dumpling AI API key configured as HTTP Header Auth. Filter + Sort YouTube Videos β€” Code (No auth) β€” Custom JavaScript code that extracts video data from the search results, filters for video types, sorts by published time (newest first), and returns the 3 most recent videos. Prepare Video List for AI β€” Aggregate (No auth) β€” Combines all video items into a single array, preparing the data for the AI node to process. Select Best Video with GPT-4o β€” OpenAI (API Key auth) β€” Uses GPT-4.1 to analyze the search results and pick the most relevant video based on the original topic and current date. Returns a JSON structure with the selected video details. Requires an OpenAI API key. Get Transcript (Dumpling AI) β€” HTTP Request (Header Auth) β€” Fetches the YouTube video transcript via Dumpling AI's transcript endpoint. Requires the same Dumpling AI credentials as node 3. Generate Posts with GPT-4o β€” OpenAI (API Key auth) β€” Takes the transcript and generates three platform-specific posts (Instagram, Facebook, LinkedIn) with matching image prompts. Each post is tailored to the platform's tone and format. Uses the same OpenAI credentials as node 6. Generate Instagram Image (Dumpling AI) β€” HTTP Request (Header Auth) β€” Generates an AI image for the Instagram post using FLUX.1-pro model. Prompt comes from the GPT-4o output. Generate Facebook Image (Dumpling AI) β€” HTTP Request (Header Auth) β€” Same as node 9 but for Facebook post image. Generate LinkedIn Image (Dumpling AI) β€” HTTP Request (Header Auth) β€” Same as node 9 but for LinkedIn post image. Format Instagram Post β€” Set (No auth) β€” Combines the Instagram post text, platform name, and image URL into a structured format for saving. Format Facebook Post β€” Set (No auth) β€” Same as node 12 but for Facebook. Format LinkedIn Post β€” Set (No auth) β€” Same as node 12 but for LinkedIn. Save Instagram Post to Sheet β€” Google Sheets (OAuth2) β€” Appends the formatted Instagram post (platform, content, image URL) to the "Social Media Post" sheet. Save Facebook Post to Sheet β€” Google Sheets (OAuth2) β€” Same as node 15 but for Facebook. Save LinkedIn Post to Sheet β€” Google Sheets (OAuth2) β€” Same as node 15 but for LinkedIn. Merge Post Results β€” Merge (No auth) β€” Combines all three saved post results into a single output. Update Topic Status in Sheet β€” Google Sheets (OAuth2) β€” Updates the original topic row in "YouTube Topics" sheet, setting "Searched?" to "Yes" to prevent reprocessing. Setup Instructions Required Accounts & Credentials Google Account β€” For Google Sheets access. Create OAuth2 credentials in n8n for Google Sheets. OpenAI Account β€” For GPT-4.1 access. Create an API key from platform.openai.com. Dumpling AI Account β€” For YouTube search, transcript, and image generation. Sign up at dumplingai.com and get an API key. Google Sheets Setup Create a Google Sheet with two sheets: YouTube Topics (columns: , ) β€” Add your topics with "Searched?" column empty for unprocessed items. Social Media Post (columns: , , ) β€” Will store generated posts. Configuring Credentials In n8n, go to Credentials β†’ Add Credential. Add Google Sheets OAuth2 credentials. Add OpenAI credentials with your API key. Add Header Auth credentials with your Dumpling AI API key. Node Configuration Update the in all Google Sheets nodes to your sheet's ID. Verify the values match your sheet tab names. Adjust the schedule trigger interval as needed. Use Cases & Variations Content Repurposing β€” Automatically turn YouTube videos into social media posts for multiple platforms. Batch Processing β€” Add multiple topics to the sheet; the workflow processes one per run. Custom Platforms β€” Modify GPT-4o prompts to add Twitter, TikTok, or other platforms. Brand Voice Customization β€” Update the system prompt to match your brand's tone. Manual Trigger β€” Replace the schedule trigger with a webhook for on-demand processing. Review Before Posting β€” Add a manual approval step before saving to sheets. This workflow saves hours of manual content creation and ensures consistent, platform-optimized posts.

20 nodes

Ready to automate with n8n?

Get affordable managed n8n hosting with 24/7 support.