From f5a59cb26a743b78bb2ece64d657260e114c1e66 Mon Sep 17 00:00:00 2001 From: Yury Kossakovsky Date: Mon, 23 Jun 2025 10:25:57 -0600 Subject: [PATCH] Add new workflow for generating and auto-posting AI videos to social media - Introduced a comprehensive workflow that automates the generation of video content using Veo3 and posts it across multiple social media platforms including Instagram, YouTube, TikTok, Facebook, Threads, Twitter, LinkedIn, Bluesky, and Pinterest. - Integrated Google Sheets for managing video ideas and tracking statuses. - Implemented a scheduling trigger to run the script daily, enhancing content production efficiency. --- ...to_Social_Media_with_Veo3_and_Blotato.json | 1078 +++++++++++++++++ 1 file changed, 1078 insertions(+) create mode 100644 n8n/backup/workflows/Generate___Auto_post_AI_Videos_to_Social_Media_with_Veo3_and_Blotato.json diff --git a/n8n/backup/workflows/Generate___Auto_post_AI_Videos_to_Social_Media_with_Veo3_and_Blotato.json b/n8n/backup/workflows/Generate___Auto_post_AI_Videos_to_Social_Media_with_Veo3_and_Blotato.json new file mode 100644 index 0000000..74dc06c --- /dev/null +++ b/n8n/backup/workflows/Generate___Auto_post_AI_Videos_to_Social_Media_with_Veo3_and_Blotato.json @@ -0,0 +1,1078 @@ +{ + "name": "Generate & Auto-post AI Videos to Social Media with Veo3 and Blotato", + "nodes": [ + { + "parameters": { + "content": "# ✅ STEP 1 — Generate Script & Prompt with AI", + "height": 500, + "width": 1200 + }, + "id": "9ee54260-b010-4fce-9e00-20be89d93754", + "name": "Sticky Note", + "type": "n8n-nodes-base.stickyNote", + "position": [ + 220, + -40 + ], + "typeVersion": 1 + }, + { + "parameters": { + "content": "# ✅ STEP 2 — Create Video Using Veo3\n\n", + "height": 280, + "width": 1200, + "color": 3 + }, + "id": "9e486f6c-6fec-435e-bedd-648a3056cf17", + "name": "Sticky Note1", + "type": "n8n-nodes-base.stickyNote", + "position": [ + 220, + 500 + ], + "typeVersion": 1 + }, + { + "parameters": { + "mode": "raw", + "jsonOutput": "{\n \"instagram_id\": \"1111\",\n \"youtube_id\": \"1111\",\n \"threads_id\": \"1111\",\n \"tiktok_id\": \"1111\",\n \"facebook_id\": \"1111\",\n \"facebook_page_id\": \"1111\",\n \"twitter_id\": \"1111\",\n \"linkedin_id\": \"1111\",\n \"pinterest_id\": \"1111\",\n \"pinterest_board_id\": \"1111\",\n \"bluesky_id\": \"1111\"\n}\n", + "options": {} + }, + "id": "bc739995-08a9-4267-b5be-34964cd0e634", + "name": "Assign Social Media IDs", + "type": "n8n-nodes-base.set", + "position": [ + 300, + 1160 + ], + "typeVersion": 3.4 + }, + { + "parameters": { + "documentId": { + "__rl": true, + "mode": "id", + "value": "=" + }, + "sheetName": { + "__rl": true, + "mode": "id", + "value": "=" + }, + "options": {} + }, + "id": "84e8794e-eac7-41fa-a75c-2501741894bd", + "name": "Get my video", + "type": "n8n-nodes-base.googleSheets", + "position": [ + 400, + 920 + ], + "typeVersion": 4.5 + }, + { + "parameters": { + "method": "POST", + "url": "https://backend.blotato.com/v2/media", + "sendHeaders": true, + "headerParameters": { + "parameters": [ + { + "name": "blotato-api-key", + "value": "YOUR_API_HERE" + } + ] + }, + "sendBody": true, + "bodyParameters": { + "parameters": [ + { + "name": "url", + "value": "={{ $('Get my video').item.json['final_output'] }}" + } + ] + }, + "options": {} + }, + "id": "da649573-fc9e-44e2-8837-645a9019eeb4", + "name": "Upload Video to Blotato", + "type": "n8n-nodes-base.httpRequest", + "position": [ + 520, + 1160 + ], + "typeVersion": 4.2 + }, + { + "parameters": { + "method": "POST", + "url": "https://backend.blotato.com/v2/posts", + "sendHeaders": true, + "headerParameters": { + "parameters": [ + { + "name": "blotato-api-key", + "value": "YOUR_API_HERE" + } + ] + }, + "sendBody": true, + "specifyBody": "json", + "jsonBody": "={\n \"post\": {\n \"accountId\": \"{{ $('Assign Social Media IDs').item.json.instagram_id }}\",\n \"target\": {\n \"targetType\": \"instagram\"\n },\n \"content\": {\n \"text\": \"{{ $('Get my video').item.json.DESCRIPTION }}\",\n \"platform\": \"instagram\",\n \"mediaUrls\": [\n \"{{ $json.url }}\"\n ]\n }\n }\n}\n\n", + "options": {} + }, + "id": "624b9f0d-e11c-45bd-9dc6-08ece353cc03", + "name": "INSTAGRAM", + "type": "n8n-nodes-base.httpRequest", + "position": [ + 800, + 920 + ], + "typeVersion": 4.2 + }, + { + "parameters": { + "method": "POST", + "url": "https://backend.blotato.com/v2/posts", + "sendHeaders": true, + "headerParameters": { + "parameters": [ + { + "name": "blotato-api-key", + "value": "YOUR_API_HERE" + } + ] + }, + "sendBody": true, + "specifyBody": "json", + "jsonBody": "={\n \"post\": {\n \"accountId\": \"{{ $('Assign Social Media IDs').item.json.youtube_id }}\",\n \"target\": {\n \"targetType\": \"youtube\",\n \"title\": \"{{ $('Get my video').item.json.Titre }}\",\n \"privacyStatus\": \"unlisted\",\n \"shouldNotifySubscribers\": \"false\"\n },\n \"content\": {\n \"text\": \"{{ $('Get my video').item.json.DESCRIPTION }}\",\n \"platform\": \"youtube\",\n \"mediaUrls\": [\n \"{{ $json.url }}\"\n ]\n }\n }\n}\n", + "options": {} + }, + "id": "2937b0e2-587f-485c-b9c8-4304bce78d6c", + "name": "YOUTUBE", + "type": "n8n-nodes-base.httpRequest", + "position": [ + 1020, + 920 + ], + "typeVersion": 4.2 + }, + { + "parameters": { + "method": "POST", + "url": "https://backend.blotato.com/v2/posts", + "sendHeaders": true, + "headerParameters": { + "parameters": [ + { + "name": "blotato-api-key", + "value": "=YOUR_API_HERE" + } + ] + }, + "sendBody": true, + "specifyBody": "json", + "jsonBody": "={\n \"post\": {\n \"accountId\": \"{{ $('Assign Social Media IDs').item.json.tiktok_id }}\",\n \"target\": {\n \"targetType\": \"tiktok\",\n \"isYourBrand\": \"false\", \n \"disabledDuet\": \"false\",\n \"privacyLevel\": \"PUBLIC_TO_EVERYONE\",\n \"isAiGenerated\": \"true\",\n \"disabledStitch\": \"false\",\n \"disabledComments\": \"false\",\n \"isBrandedContent\": \"false\"\n \n },\n \"content\": {\n \"text\": \"{{ $('Get my video').item.json.DESCRIPTION }}\",\n \"platform\": \"tiktok\",\n \"mediaUrls\": [\n \"{{ $json.url }}\"\n ]\n }\n }\n}\n", + "options": {} + }, + "id": "1a1a1f76-e64d-465d-890b-47e8c32c90f8", + "name": "TIKTOK", + "type": "n8n-nodes-base.httpRequest", + "position": [ + 1220, + 920 + ], + "typeVersion": 4.2 + }, + { + "parameters": { + "method": "POST", + "url": "https://backend.blotato.com/v2/posts", + "sendHeaders": true, + "headerParameters": { + "parameters": [ + { + "name": "blotato-api-key", + "value": "=YOUR_API_HERE" + } + ] + }, + "sendBody": true, + "specifyBody": "json", + "jsonBody": "={\n \"post\": {\n \"accountId\": \"{{ $('Assign Social Media IDs').item.json.facebook_id }}\",\n \"target\": {\n \"targetType\": \"facebook\",\n \"pageId\": \"{{ $('Assign Social Media IDs').item.json.facebook_page_id }}\"\n\n \n },\n \"content\": {\n \"text\": \"{{ $('Get my video').item.json.DESCRIPTION }}\",\n \"platform\": \"facebook\",\n \"mediaUrls\": [\n \"{{ $json.url }}\"\n ]\n }\n }\n}", + "options": {} + }, + "id": "225792e6-6f31-4688-b257-a81a7ec57b96", + "name": "FACEBOOK", + "type": "n8n-nodes-base.httpRequest", + "position": [ + 800, + 1160 + ], + "typeVersion": 4.2 + }, + { + "parameters": { + "method": "POST", + "url": "https://backend.blotato.com/v2/posts", + "sendHeaders": true, + "headerParameters": { + "parameters": [ + { + "name": "blotato-api-key", + "value": "YOUR_API_HERE" + } + ] + }, + "sendBody": true, + "specifyBody": "json", + "jsonBody": "={\n \"post\": {\n \"accountId\": \"{{ $('Assign Social Media IDs').item.json.threads_id }}\",\n \"target\": {\n \"targetType\": \"threads\"\n \n },\n \"content\": {\n \"text\": \"{{ $('Get my video').item.json.DESCRIPTION }}\",\n \"platform\": \"threads\",\n \"mediaUrls\": [\n \"{{ $json.url }}\"\n ]\n }\n }\n}\n", + "options": {} + }, + "id": "1f8097ff-ff35-4d85-8f29-c4ea91678515", + "name": "THREADS", + "type": "n8n-nodes-base.httpRequest", + "position": [ + 1020, + 1160 + ], + "typeVersion": 4.2 + }, + { + "parameters": { + "method": "POST", + "url": "https://backend.blotato.com/v2/posts", + "sendHeaders": true, + "headerParameters": { + "parameters": [ + { + "name": "blotato-api-key", + "value": "YOUR_API_HERE" + } + ] + }, + "sendBody": true, + "specifyBody": "json", + "jsonBody": "={\n \"post\": {\n \"accountId\": \"{{ $('Assign Social Media IDs').item.json.twitter_id }}\",\n \"target\": {\n \"targetType\": \"twitter\"\n \n },\n \"content\": {\n \"text\": \"{{ $('Get my video').item.json.DESCRIPTION }}\",\n \"platform\": \"twitter\",\n \"mediaUrls\": [\n \"{{ $json.url }}\"\n ]\n }\n }\n}\n", + "options": {} + }, + "id": "27ef84cc-a187-449c-bf02-d33b1bb6f085", + "name": "TWETTER", + "type": "n8n-nodes-base.httpRequest", + "position": [ + 1220, + 1160 + ], + "typeVersion": 4.2 + }, + { + "parameters": { + "method": "POST", + "url": "https://backend.blotato.com/v2/posts", + "sendHeaders": true, + "headerParameters": { + "parameters": [ + { + "name": "blotato-api-key", + "value": "YOUR_API_HERE" + } + ] + }, + "sendBody": true, + "specifyBody": "json", + "jsonBody": "={\n \"post\": {\n \"accountId\": \"{{ $('Assign Social Media IDs').item.json.linkedin_id }}\",\n \"target\": {\n \"targetType\": \"linkedin\"\n \n },\n \"content\": {\n \"text\": \"{{ $('Get my video').item.json.DESCRIPTION }}\",\n \"platform\": \"linkedin\",\n \"mediaUrls\": [\n \"{{ $json.url }}\"\n ]\n }\n }\n}\n", + "options": {} + }, + "id": "4216d808-a941-4e63-8a01-f709db362e76", + "name": "LINKEDIN", + "type": "n8n-nodes-base.httpRequest", + "position": [ + 800, + 1400 + ], + "typeVersion": 4.2 + }, + { + "parameters": { + "method": "POST", + "url": "https://backend.blotato.com/v2/posts", + "sendHeaders": true, + "headerParameters": { + "parameters": [ + { + "name": "blotato-api-key", + "value": "YOUR_API_HERE" + } + ] + }, + "sendBody": true, + "specifyBody": "json", + "jsonBody": "= {\n \"post\": {\n \"accountId\": \"{{ $('Assign Social Media IDs').item.json.bluesky_id }}\",\n \"target\": {\n \"targetType\": \"bluesky\"\n \n },\n \"content\": {\n \"text\": \"{{ $('Get my video').item.json.DESCRIPTION }}\",\n \"platform\": \"bluesky\",\n \"mediaUrls\": [\n \"https://pbs.twimg.com/media/GE8MgIiWEAAfsK3.jpg\"\n ]\n }\n }\n}\n", + "options": {} + }, + "id": "53f725cc-60e5-422d-b755-49c50227fdfa", + "name": "BLUESKY", + "type": "n8n-nodes-base.httpRequest", + "position": [ + 1020, + 1400 + ], + "typeVersion": 4.2 + }, + { + "parameters": { + "method": "POST", + "url": "https://backend.blotato.com/v2/posts", + "sendHeaders": true, + "headerParameters": { + "parameters": [ + { + "name": "blotato-api-key", + "value": "YOUR_API_HERE" + } + ] + }, + "sendBody": true, + "specifyBody": "json", + "jsonBody": "={\n \"post\": {\n \"accountId\": \"{{ $('Assign Social Media IDs').item.json.pinterest_id }}\",\n \"target\": {\n \"targetType\": \"pinterest\",\n \"boardId\": \"{{ $('Assign Social Media IDs').item.json.pinterest_board_id }}\" \n },\n \"content\": {\n \"text\": \"{{ $('Get my video').item.json.DESCRIPTION }}\",\n \"platform\": \"pinterest\",\n \"mediaUrls\": [\n \"https://pbs.twimg.com/media/GE8MgIiWEAAfsK3.jpg\"\n ]\n }\n }\n}\n\n", + "options": {} + }, + "id": "251b3209-a45c-4f1c-9580-6aa20cc7b97b", + "name": "PINTEREST", + "type": "n8n-nodes-base.httpRequest", + "position": [ + 1220, + 1400 + ], + "typeVersion": 4.2 + }, + { + "parameters": { + "operation": "update", + "documentId": { + "__rl": true, + "mode": "id", + "value": "=" + }, + "sheetName": { + "__rl": true, + "mode": "id", + "value": "=" + }, + "columns": { + "value": { + "STATUS": "Publish", + "row_number": "={{ $('Get my video').item.json.row_number }}" + }, + "schema": [ + { + "id": "PROMPT", + "type": "string", + "display": true, + "required": false, + "displayName": "PROMPT", + "defaultMatch": false, + "canBeUsedToMatch": true + }, + { + "id": "DESCRIPTION", + "type": "string", + "display": true, + "required": false, + "displayName": "DESCRIPTION", + "defaultMatch": false, + "canBeUsedToMatch": true + }, + { + "id": "URL VIDEO", + "type": "string", + "display": true, + "required": false, + "displayName": "URL VIDEO", + "defaultMatch": false, + "canBeUsedToMatch": true + }, + { + "id": "Titre", + "type": "string", + "display": true, + "required": false, + "displayName": "Titre", + "defaultMatch": false, + "canBeUsedToMatch": true + }, + { + "id": "STATUS", + "type": "string", + "display": true, + "required": false, + "displayName": "STATUS", + "defaultMatch": false, + "canBeUsedToMatch": true + }, + { + "id": "row_number", + "type": "string", + "display": true, + "removed": false, + "readOnly": true, + "required": false, + "displayName": "row_number", + "defaultMatch": false, + "canBeUsedToMatch": true + } + ], + "mappingMode": "defineBelow", + "matchingColumns": [ + "row_number" + ], + "attemptToConvertTypes": false, + "convertFieldsToString": false + }, + "options": {} + }, + "id": "982466c8-59de-4de9-a267-8cbd25bef1d9", + "name": "Google Sheets", + "type": "n8n-nodes-base.googleSheets", + "position": [ + 520, + 1400 + ], + "typeVersion": 4.5 + }, + { + "parameters": { + "content": "# ✅ STEP 3 — Publish Video to Social Media\n", + "height": 760, + "width": 1200, + "color": 4 + }, + "id": "0d96cf97-7ceb-4154-8796-a3912658a582", + "name": "Sticky Note2", + "type": "n8n-nodes-base.stickyNote", + "position": [ + 220, + 820 + ], + "typeVersion": 1 + }, + { + "parameters": { + "rule": { + "interval": [ + {} + ] + } + }, + "id": "0ea94dd7-857f-4a6d-8799-547f306455ae", + "name": "Trigger: Run Daily Script Generator", + "type": "n8n-nodes-base.scheduleTrigger", + "position": [ + 380, + 40 + ], + "typeVersion": 1.2 + }, + { + "parameters": { + "promptType": "define", + "text": "Give me an idea about [a Yeti speaking to a camera and doing a Vlog through his selfie stick]. ", + "hasOutputParser": true, + "options": { + "systemMessage": "=You are an AI designed to generate 1 immersive, realistic idea based on a user-provided topic. Your output must be formatted as a JSON array (single line) and follow all the rules below exactly.\n\nRULES:\n\nOnly return 1 idea at a time.\n\nThe user will provide a key topic (e.g. “urban farming,” “arctic survival,” “street food in Vietnam”).\n\nThe Idea must:\n\nBe under 13 words.\n\nDescribe an interesting and viral-worthy moment, action, or event related to the provided topic.\n\nCan be as surreal as you can get, doesn't have to be real-world!\n\nInvolves a character.\n\nThe Caption must be:\n\nShort, punchy, and viral-friendly.\n\nInclude one relevant emoji.\n\nInclude exactly 12 hashtags in this order:\n** 4 topic-relevant hashtags\n** 4 all-time most popular hashtags\n** 4 currently trending hashtags (based on live research)\n\nAll hashtags must be lowercase.\n\nSet Status to \"for production\" (always).\n\nThe Environment must:\n\nBe under 20 words.\n\nMatch the action in the Idea exactly.\n\nClearly describe:\n\nWhere the event is happening (e.g. rooftop, jungle trail, city alley, frozen lake)\n\nKey visuals or background details (e.g. smoke rising, neon lights, fog, birds overhead)\n\nMain participants (e.g. farmer, cook, mechanic, rescue team, animal)\n\nStyle of scene (e.g. cinematic realism, handheld docu-style, aerial tracking shot, macro close-up)\n\nOk with fictional settings\n\nOUTPUT FORMAT (single-line JSON array):\n\n\n[\n {\n \"Caption\": \"Short viral title with emoji #4_topic_hashtags #4_all_time_popular_hashtags #4_trending_hashtags\",\n \"Idea\": \"Short idea under 13 words\",\n \"Environment\": \"Brief vivid setting under 20 words matching the action\",\n \"Status\": \"for production\"\n }\n]\n" + } + }, + "id": "33cf64d0-60b7-430c-b77b-4521265177c2", + "name": "AI Agent: Generate Video Concept", + "type": "@n8n/n8n-nodes-langchain.agent", + "position": [ + 540, + 40 + ], + "typeVersion": 1.9 + }, + { + "parameters": {}, + "id": "6800aded-ebaa-4dec-bec7-043631b888ca", + "name": "Tool: Inject Creativity", + "type": "@n8n/n8n-nodes-langchain.toolThink", + "position": [ + 620, + 300 + ], + "typeVersion": 1 + }, + { + "parameters": { + "model": { + "__rl": true, + "mode": "list", + "value": "gpt-4.1", + "cachedResultName": "gpt-4.1" + }, + "options": {} + }, + "id": "654b4e78-621f-4679-a7ed-271d6cf31e83", + "name": "LLM: Generate Idea & Caption (GPT-4.1)", + "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi", + "position": [ + 460, + 300 + ], + "typeVersion": 1.2 + }, + { + "parameters": { + "jsonSchemaExample": "[\n {\n \"Caption\": \"Diver Removes Nets Off Whale 🐋 #whalerescue #marinelife #oceanrescue #seahelpers #love #nature #instagood #explore #viral #savenature #oceanguardians #cleanoceans\",\n \"Idea\": \"Diver carefully cuts tangled net from distressed whale in open sea\",\n \"Environment\": \"Open ocean, sunlight beams through water, diver and whale, cinematic realism\",\n \"Status\": \"for production\"\n }\n]\n" + }, + "id": "37fae559-8f2c-4825-9ffa-9cc640f36071", + "name": "Parser: Extract JSON from Idea", + "type": "@n8n/n8n-nodes-langchain.outputParserStructured", + "position": [ + 780, + 300 + ], + "typeVersion": 1.2 + }, + { + "parameters": { + "operation": "append", + "documentId": { + "__rl": true, + "mode": "id", + "value": "=" + }, + "sheetName": { + "__rl": true, + "mode": "id", + "value": "=" + }, + "columns": { + "value": { + "id": "==ROW()-1", + "idea": "={{ $json.output[0].Idea }}", + "caption": "={{ $json.output[0].Caption }}", + "production": "={{ $json.output[0].Status }}", + "environment_prompt": "={{ $json.output[0].Environment }}" + }, + "schema": [ + { + "id": "id", + "type": "string", + "display": true, + "removed": false, + "required": false, + "displayName": "id", + "defaultMatch": true, + "canBeUsedToMatch": true + }, + { + "id": "idea", + "type": "string", + "display": true, + "required": false, + "displayName": "idea", + "defaultMatch": false, + "canBeUsedToMatch": true + }, + { + "id": "caption", + "type": "string", + "display": true, + "required": false, + "displayName": "caption", + "defaultMatch": false, + "canBeUsedToMatch": true + }, + { + "id": "production", + "type": "string", + "display": true, + "required": false, + "displayName": "production", + "defaultMatch": false, + "canBeUsedToMatch": true + }, + { + "id": "environment_prompt", + "type": "string", + "display": true, + "required": false, + "displayName": "environment_prompt", + "defaultMatch": false, + "canBeUsedToMatch": true + }, + { + "id": "final_output", + "type": "string", + "display": true, + "required": false, + "displayName": "final_output", + "defaultMatch": false, + "canBeUsedToMatch": true + } + ], + "mappingMode": "defineBelow", + "matchingColumns": [ + "id" + ], + "attemptToConvertTypes": false, + "convertFieldsToString": false + }, + "options": {} + }, + "id": "93008309-755d-4422-8644-9e6e0d9ff8de", + "name": "Google Sheets: Save Script Idea", + "type": "n8n-nodes-base.googleSheets", + "position": [ + 900, + 40 + ], + "typeVersion": 4.5 + }, + { + "parameters": { + "promptType": "define", + "text": "=Give me a Veo3 prompt for this idea:\n{{ $json.idea }}\n\nThis is the environment:\n{{ $json.environment_prompt }}\n\n", + "hasOutputParser": true, + "options": { + "systemMessage": "=SYSTEM PROMPT FOR GOOGLE VEO3 PROMPT AGENT\n\nYou are an AI agent that writes hyper-realistic, cinematic video prompts for Google VEO3. Each prompt should describe a short, vivid selfie-style video clip featuring one unnamed character speaking or acting in a specific moment. The final video should look like found footage or documentary-style film — grounded, realistic, and immersive.\n\nREQUIRED STRUCTURE (FILL IN THE BRACKETS BELOW):\n\n[Scene paragraph prompt here]\n\nMain character: [description of character]\nThey say: [insert one line of dialogue, fits the scene and mood].\nThey [describe a physical action or subtle camera movement, e.g. pans the camera, shifts position, glances around].\nTime of Day: [day / night / dusk / etc.]\nLens: [describe lens]\nAudio: (implied) [ambient sounds, e.g. lion growls, wind, distant traffic, birdsong]\nBackground: [brief restatement of what is visible behind them]\n\nRULES FOR PROMPT GENERATION\n\nSingle paragraph only, 750–1500 characters. No line breaks or headings.\n\nOnly one human character. Never give them a name.\n\nInclude one spoken line of dialogue and describe how it’s delivered.\n\nCharacter must do something physical, even if subtle (e.g. glance, smirk, pan camera).\n\nUse selfie-style framing. Always describe the lens, stock, and camera behavior.\n\nScene must feel real and cinematic — like a short clip someone might record on a stylized camera.\n\nAlways include the five key technical elements: Time of Day, Lens, Film Stock, Audio, and Background.\n\nDO NOT DO THIS:\n\nDon’t name the character.\n\nDon’t include more than one character.\n\nDon’t describe subtitles or on-screen text.\n\nDon’t break the paragraph or use formatting.\n\nDon’t write vague or abstract scenes — always keep them grounded in physical detail." + } + }, + "id": "ec7c9bea-5c9d-423b-b328-d63a983f05ca", + "name": "AI Agent: Create Veo3-Compatible Prompt", + "type": "@n8n/n8n-nodes-langchain.agent", + "position": [ + 1060, + 40 + ], + "typeVersion": 1.9 + }, + { + "parameters": {}, + "id": "df15bd3e-d531-44ac-8666-1e6df3e805b9", + "name": "Tool: Build Prompt Structure", + "type": "@n8n/n8n-nodes-langchain.toolThink", + "position": [ + 1260, + 300 + ], + "typeVersion": 1 + }, + { + "parameters": { + "model": { + "__rl": true, + "mode": "list", + "value": "gpt-4.1", + "cachedResultName": "gpt-4.1" + }, + "options": {} + }, + "id": "b18753c6-d40b-4cd4-bbe6-65c38c7eade0", + "name": "LLM: Format Prompt for Veo3 (GPT-4.1)", + "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi", + "position": [ + 1080, + 300 + ], + "typeVersion": 1.2 + }, + { + "parameters": { + "method": "POST", + "url": "https://queue.fal.run/fal-ai/veo3", + "authentication": "genericCredentialType", + "genericAuthType": "httpHeaderAuth", + "sendBody": true, + "contentType": "raw", + "rawContentType": "application/json", + "body": "={ \"prompt\": \"{{ $json.output }}\" }\n", + "options": { + "batching": { + "batch": { + "batchSize": 1, + "batchInterval": 2000 + } + } + } + }, + "id": "7b8c7798-e4ba-4f62-9934-3cc1b231d3d4", + "name": "Call Veo3 API to Generate Video", + "type": "n8n-nodes-base.httpRequest", + "position": [ + 400, + 580 + ], + "typeVersion": 4.2 + }, + { + "parameters": {}, + "id": "54016e2e-285e-4006-adb2-50cc7548497d", + "name": "Wait for Veo3 Processing (5 mins)", + "type": "n8n-nodes-base.wait", + "position": [ + 620, + 580 + ], + "webhookId": "861e2761-369b-407b-9e88-1b176e617cd8", + "typeVersion": 1.1 + }, + { + "parameters": { + "url": "=https://queue.fal.run/fal-ai/veo3/requests/{{ $json.request_id }}", + "authentication": "genericCredentialType", + "genericAuthType": "httpHeaderAuth", + "options": {} + }, + "id": "5778a8ff-132a-44f0-aff9-76612f9ddb40", + "name": "Retrieve Final Video URL from Veo3", + "type": "n8n-nodes-base.httpRequest", + "position": [ + 900, + 580 + ], + "typeVersion": 4.2 + }, + { + "parameters": { + "operation": "update", + "documentId": { + "__rl": true, + "mode": "id", + "value": "=" + }, + "sheetName": { + "__rl": true, + "mode": "id", + "value": "=" + }, + "columns": { + "value": { + "idea": "={{ $('Google Sheets: Save Script Idea').first().json.idea }}", + "production": "done", + "final_output": "={{ $json.video.url }}" + }, + "schema": [ + { + "id": "id", + "type": "string", + "display": true, + "removed": false, + "required": false, + "displayName": "id", + "defaultMatch": true, + "canBeUsedToMatch": true + }, + { + "id": "idea", + "type": "string", + "display": true, + "removed": false, + "required": false, + "displayName": "idea", + "defaultMatch": false, + "canBeUsedToMatch": true + }, + { + "id": "caption", + "type": "string", + "display": true, + "required": false, + "displayName": "caption", + "defaultMatch": false, + "canBeUsedToMatch": true + }, + { + "id": "production", + "type": "string", + "display": true, + "required": false, + "displayName": "production", + "defaultMatch": false, + "canBeUsedToMatch": true + }, + { + "id": "environment_prompt", + "type": "string", + "display": true, + "required": false, + "displayName": "environment_prompt", + "defaultMatch": false, + "canBeUsedToMatch": true + }, + { + "id": "final_output", + "type": "string", + "display": true, + "required": false, + "displayName": "final_output", + "defaultMatch": false, + "canBeUsedToMatch": true + }, + { + "id": "row_number", + "type": "string", + "display": true, + "removed": true, + "readOnly": true, + "required": false, + "displayName": "row_number", + "defaultMatch": false, + "canBeUsedToMatch": true + } + ], + "mappingMode": "defineBelow", + "matchingColumns": [ + "idea" + ], + "attemptToConvertTypes": false, + "convertFieldsToString": false + }, + "options": {} + }, + "id": "dfc58e7b-7409-44f3-99e2-45160d8b9434", + "name": "Google Sheets: Log Final Video Output", + "type": "n8n-nodes-base.googleSheets", + "position": [ + 1220, + 580 + ], + "typeVersion": 4.5 + } + ], + "pinData": {}, + "connections": { + "Get my video": { + "main": [ + [ + { + "node": "Assign Social Media IDs", + "type": "main", + "index": 0 + } + ] + ] + }, + "Assign Social Media IDs": { + "main": [ + [ + { + "node": "Upload Video to Blotato", + "type": "main", + "index": 0 + } + ] + ] + }, + "Tool: Inject Creativity": { + "ai_tool": [ + [ + { + "node": "AI Agent: Generate Video Concept", + "type": "ai_tool", + "index": 0 + } + ] + ] + }, + "Upload Video to Blotato": { + "main": [ + [ + { + "node": "INSTAGRAM", + "type": "main", + "index": 0 + }, + { + "node": "YOUTUBE", + "type": "main", + "index": 0 + }, + { + "node": "TIKTOK", + "type": "main", + "index": 0 + }, + { + "node": "FACEBOOK", + "type": "main", + "index": 0 + }, + { + "node": "THREADS", + "type": "main", + "index": 0 + }, + { + "node": "TWETTER", + "type": "main", + "index": 0 + }, + { + "node": "LINKEDIN", + "type": "main", + "index": 0 + }, + { + "node": "BLUESKY", + "type": "main", + "index": 0 + }, + { + "node": "PINTEREST", + "type": "main", + "index": 0 + }, + { + "node": "Google Sheets", + "type": "main", + "index": 0 + } + ] + ] + }, + "Tool: Build Prompt Structure": { + "ai_tool": [ + [ + { + "node": "AI Agent: Create Veo3-Compatible Prompt", + "type": "ai_tool", + "index": 0 + } + ] + ] + }, + "Parser: Extract JSON from Idea": { + "ai_outputParser": [ + [ + { + "node": "AI Agent: Generate Video Concept", + "type": "ai_outputParser", + "index": 0 + } + ] + ] + }, + "Call Veo3 API to Generate Video": { + "main": [ + [ + { + "node": "Wait for Veo3 Processing (5 mins)", + "type": "main", + "index": 0 + } + ] + ] + }, + "Google Sheets: Save Script Idea": { + "main": [ + [ + { + "node": "AI Agent: Create Veo3-Compatible Prompt", + "type": "main", + "index": 0 + } + ] + ] + }, + "AI Agent: Generate Video Concept": { + "main": [ + [ + { + "node": "Google Sheets: Save Script Idea", + "type": "main", + "index": 0 + } + ] + ] + }, + "Wait for Veo3 Processing (5 mins)": { + "main": [ + [ + { + "node": "Retrieve Final Video URL from Veo3", + "type": "main", + "index": 0 + } + ] + ] + }, + "Retrieve Final Video URL from Veo3": { + "main": [ + [ + { + "node": "Google Sheets: Log Final Video Output", + "type": "main", + "index": 0 + } + ] + ] + }, + "Trigger: Run Daily Script Generator": { + "main": [ + [ + { + "node": "AI Agent: Generate Video Concept", + "type": "main", + "index": 0 + } + ] + ] + }, + "Google Sheets: Log Final Video Output": { + "main": [ + [ + { + "node": "Get my video", + "type": "main", + "index": 0 + } + ] + ] + }, + "LLM: Format Prompt for Veo3 (GPT-4.1)": { + "ai_languageModel": [ + [ + { + "node": "AI Agent: Create Veo3-Compatible Prompt", + "type": "ai_languageModel", + "index": 0 + } + ] + ] + }, + "LLM: Generate Idea & Caption (GPT-4.1)": { + "ai_languageModel": [ + [ + { + "node": "AI Agent: Generate Video Concept", + "type": "ai_languageModel", + "index": 0 + } + ] + ] + }, + "AI Agent: Create Veo3-Compatible Prompt": { + "main": [ + [ + { + "node": "Call Veo3 API to Generate Video", + "type": "main", + "index": 0 + } + ] + ] + } + }, + "active": false, + "settings": { + "executionOrder": "v1" + }, + "versionId": "dc4b4a8a-0ab5-4fba-9b35-d49b7a4fc12d", + "meta": { + "instanceId": "42b0940f1c52280edb0c4b91f62aa1195e341bb0de84f73f0779167d1c9755a9" + }, + "id": "PWdTpJZ70Hi5vbck", + "tags": [] +} \ No newline at end of file