Advertisement
Guest User

Google_Veo_Video_Generator_Main_Agent.json

a guest
Jun 12th, 2025
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.46 KB | None | 0 0
  1. {
  2. "name": "Google Veo Video Generator Main Agent",
  3. "nodes": [
  4. {
  5. "parameters": {
  6. "updates": [
  7. "message"
  8. ],
  9. "additionalFields": {}
  10. },
  11. "type": "n8n-nodes-base.telegramTrigger",
  12. "typeVersion": 1.2,
  13. "position": [
  14. -240,
  15. 0
  16. ],
  17. "id": "dfb6d453-101f-44ce-ac0e-9460ef5cdc9e",
  18. "name": "Telegram Trigger",
  19. "webhookId": "ca8e340c-1a1b-4337-8292-b9fb732b9e41",
  20. "credentials": {
  21. "telegramApi": {
  22. "id": "rajpDvuc5KDPLJEx",
  23. "name": "Veo Video Agent"
  24. }
  25. }
  26. },
  27. {
  28. "parameters": {
  29. "promptType": "define",
  30. "text": "={{ $json.message.text }}",
  31. "options": {
  32. "systemMessage": "=# System Prompt: Adaptive Main Video Agent for Video Creation & Posting\n\nYou are the Main Video Agent. \nYour job is to assist users with video-related tasks by understanding their requests, clarifying details, and using the correct tools for each action.\n\n## Tools\n- **searchAirtable:** Search Airtable to find videos that are ready to be posted.\n- **veovideoagent:** Generate a new video (requires both a name and a descriptive prompt).\n- **postingagent:** Post a ready video to social platforms.\n\n---\n\n## General Instructions\n\n- Always clarify the user’s intent. \n- You may be asked to: \n - Search for videos that are ready to post \n - Generate a new video \n - Post a ready video \n- Use only the relevant tool(s) for the user’s request.\n\n---\n\n## Video Generation Workflow\n\n**If the user wants to generate a new video:**\n\n1. **Ask clarifying questions** to gather all essential details:\n - **Name:** What would you like to call this video? (Short, memorable, and related to the content)\n - **Subject:** (object/person/animal/scenery)\n - **Context:** (background/setting)\n - **Action:** (what’s happening)\n - **Style:** (cartoon, noir, TikTok, cinematic, etc.)\n - **Speech/dialogue:** Every main character should have a speech/dialogue line, unless user requests a silent video.\n - **[Optional]** Camera motion, composition, ambiance\n\n2. **Draft the prompt** with all the details. Ensure the prompt is descriptive and vivid, similar to the example format below.\n\n3. **Show both the name and the prompt to the user for approval.** \n - Ask: “Is this correct and ready for video generation?”\n\n4. **Once approved, call `veovideoagent` with BOTH:**\n - `name`: [Short video title]\n - `prompt`: [Full, descriptive video prompt]\n\n---\n\n## Example Output to veovideoagent\nname: Yeti Snowboarding\nprompt: A first-person POV shot of a snowboarding yeti gliding down a frosty alpine slope. The handheld camera shakes slightly, capturing the adrenaline of the ride. Snowflakes sparkle in the sunlight, and the yeti’s excited growl echoes: \"This powder is unreal! I’m flying down the mountain like a furry rocket!\" His fur blows in the wind as he performs a mid-air flip, shouting, \"Veeeee! Yeehaw!\" The scene transitions to a wide shot of the snowy wilderness, ending with the yeti high-fiving a snowman.\n\n---\n\n## Posting Workflow\n\n**If the user wants to post a video:**\n1. Use `searchAirtable` to check for a video that is ready to be posted.\n2. Reply the name of the ready video and ask the user if that is what he wants to post\n3. Once approved, call `postingagent` to publish it.\n4. If no video is ready, inform the user and offer to generate a new one.\n\n---\n\n## Search Workflow\n\n**If the user wants to search for ready videos:** \n- Use `searchAirtable` and return the results to the user.\n\n___\n\n## Key Notes\n\n- Never post a video unless you have confirmed via `searchAirtable` that it is ready.\n- Never generate a video without both a user-approved prompt and a name.\n- Always remain in chat mode for clarifications, approvals, or follow-up tasks.\n- Every character in video prompts must have a speech/dialogue line unless the user requests a silent video.\n- Switch tasks as needed based on the user's input.\n"
  33. }
  34. },
  35. "type": "@n8n/n8n-nodes-langchain.agent",
  36. "typeVersion": 2,
  37. "position": [
  38. -60,
  39. 0
  40. ],
  41. "id": "4115f85a-f706-4490-b33d-9125179b1b95",
  42. "name": "Main Video Agent"
  43. },
  44. {
  45. "parameters": {
  46. "model": "qwen/qwen3-30b-a3b",
  47. "options": {}
  48. },
  49. "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
  50. "typeVersion": 1,
  51. "position": [
  52. -160,
  53. 220
  54. ],
  55. "id": "886917bf-fdcb-4f16-b0a2-9fde695712ef",
  56. "name": "Qwen 3",
  57. "credentials": {
  58. "openRouterApi": {
  59. "id": "y1vjMptfuqUZLu87",
  60. "name": "Openrouter Key 1"
  61. }
  62. }
  63. },
  64. {
  65. "parameters": {
  66. "sessionIdType": "customKey",
  67. "sessionKey": "={{ $json.message.chat.id }}"
  68. },
  69. "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
  70. "typeVersion": 1.3,
  71. "position": [
  72. -40,
  73. 220
  74. ],
  75. "id": "2252b16a-0d78-4450-a1c2-9c404a25031b",
  76. "name": "Simple Memory"
  77. },
  78. {
  79. "parameters": {
  80. "description": "Call this tool to publish ready video onto Social platforms.",
  81. "workflowId": {
  82. "__rl": true,
  83. "value": "H2seyBKPJZp9APpm",
  84. "mode": "list",
  85. "cachedResultName": "VEO 3 Posting Agent"
  86. },
  87. "workflowInputs": {
  88. "mappingMode": "defineBelow",
  89. "value": {
  90. "Post": "true"
  91. },
  92. "matchingColumns": [
  93. "Post"
  94. ],
  95. "schema": [
  96. {
  97. "id": "Post",
  98. "displayName": "Post",
  99. "required": false,
  100. "defaultMatch": false,
  101. "display": true,
  102. "canBeUsedToMatch": true,
  103. "type": "string",
  104. "removed": false
  105. }
  106. ],
  107. "attemptToConvertTypes": false,
  108. "convertFieldsToString": false
  109. }
  110. },
  111. "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
  112. "typeVersion": 2.2,
  113. "position": [
  114. 360,
  115. 220
  116. ],
  117. "id": "20089645-e78c-427c-a00f-29a40b5e40cb",
  118. "name": "postingagent"
  119. },
  120. {
  121. "parameters": {
  122. "description": "Call this tool to generate a new video.",
  123. "workflowId": {
  124. "__rl": true,
  125. "value": "qATpZdA7ehVojeHy",
  126. "mode": "list",
  127. "cachedResultName": "VEO 3 Video Generator Agent"
  128. },
  129. "workflowInputs": {
  130. "mappingMode": "defineBelow",
  131. "value": {
  132. "prompt": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('prompt', ``, 'string') }}",
  133. "name": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('name', ``, 'string') }}"
  134. },
  135. "matchingColumns": [
  136. "prompt"
  137. ],
  138. "schema": [
  139. {
  140. "id": "name",
  141. "displayName": "name",
  142. "required": false,
  143. "defaultMatch": false,
  144. "display": true,
  145. "canBeUsedToMatch": true,
  146. "type": "string",
  147. "removed": false
  148. },
  149. {
  150. "id": "prompt",
  151. "displayName": "prompt",
  152. "required": false,
  153. "defaultMatch": false,
  154. "display": true,
  155. "canBeUsedToMatch": true,
  156. "type": "string",
  157. "removed": false
  158. }
  159. ],
  160. "attemptToConvertTypes": false,
  161. "convertFieldsToString": false
  162. }
  163. },
  164. "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
  165. "typeVersion": 2.2,
  166. "position": [
  167. 220,
  168. 220
  169. ],
  170. "id": "8b137cc6-64b3-45b7-8f74-b5c6900818e3",
  171. "name": "veovideoagent"
  172. },
  173. {
  174. "parameters": {
  175. "operation": "search",
  176. "base": {
  177. "__rl": true,
  178. "value": "appJt0NXgy4Qdiwme",
  179. "mode": "list",
  180. "cachedResultName": "VEO 3 Videos",
  181. "cachedResultUrl": "https://airtable.com/appJt0NXgy4Qdiwme"
  182. },
  183. "table": {
  184. "__rl": true,
  185. "value": "tblH2A94diY7VjjH7",
  186. "mode": "list",
  187. "cachedResultName": "Videos",
  188. "cachedResultUrl": "https://airtable.com/appJt0NXgy4Qdiwme/tblH2A94diY7VjjH7"
  189. },
  190. "filterByFormula": "Status = \"Ready To Post\"",
  191. "options": {}
  192. },
  193. "type": "n8n-nodes-base.airtableTool",
  194. "typeVersion": 2.1,
  195. "position": [
  196. 100,
  197. 220
  198. ],
  199. "id": "b46e29e7-72f3-436c-a3fb-0de717bc6a97",
  200. "name": "searchAirtable",
  201. "credentials": {
  202. "airtableTokenApi": {
  203. "id": "HlCvwpeDhqxCdX9c",
  204. "name": "Airtable Access 1"
  205. }
  206. }
  207. },
  208. {
  209. "parameters": {
  210. "chatId": "{insert chat id}",
  211. "text": "={{ $json.output }}",
  212. "additionalFields": {
  213. "appendAttribution": false
  214. }
  215. },
  216. "type": "n8n-nodes-base.telegram",
  217. "typeVersion": 1.2,
  218. "position": [
  219. 320,
  220. 0
  221. ],
  222. "id": "39e799d5-c986-4c3c-bec9-90f38747cf7b",
  223. "name": "Telegram (update chat id)",
  224. "webhookId": "d4b7b0dc-cedb-4612-9cce-1f4ed01d8083",
  225. "credentials": {
  226. "telegramApi": {
  227. "id": "rajpDvuc5KDPLJEx",
  228. "name": "Veo Video Agent"
  229. }
  230. }
  231. }
  232. ],
  233. "pinData": {},
  234. "connections": {
  235. "Telegram Trigger": {
  236. "main": [
  237. [
  238. {
  239. "node": "Main Video Agent",
  240. "type": "main",
  241. "index": 0
  242. }
  243. ]
  244. ]
  245. },
  246. "Qwen 3": {
  247. "ai_languageModel": [
  248. [
  249. {
  250. "node": "Main Video Agent",
  251. "type": "ai_languageModel",
  252. "index": 0
  253. }
  254. ]
  255. ]
  256. },
  257. "Simple Memory": {
  258. "ai_memory": [
  259. [
  260. {
  261. "node": "Main Video Agent",
  262. "type": "ai_memory",
  263. "index": 0
  264. }
  265. ]
  266. ]
  267. },
  268. "postingagent": {
  269. "ai_tool": [
  270. [
  271. {
  272. "node": "Main Video Agent",
  273. "type": "ai_tool",
  274. "index": 0
  275. }
  276. ]
  277. ]
  278. },
  279. "veovideoagent": {
  280. "ai_tool": [
  281. [
  282. {
  283. "node": "Main Video Agent",
  284. "type": "ai_tool",
  285. "index": 0
  286. }
  287. ]
  288. ]
  289. },
  290. "searchAirtable": {
  291. "ai_tool": [
  292. [
  293. {
  294. "node": "Main Video Agent",
  295. "type": "ai_tool",
  296. "index": 0
  297. }
  298. ]
  299. ]
  300. },
  301. "Main Video Agent": {
  302. "main": [
  303. [
  304. {
  305. "node": "Telegram (update chat id)",
  306. "type": "main",
  307. "index": 0
  308. }
  309. ]
  310. ]
  311. }
  312. },
  313. "active": false,
  314. "settings": {
  315. "executionOrder": "v1"
  316. },
  317. "versionId": "148b430c-e18f-46b4-b4e8-bce7ed6a2a54",
  318. "meta": {
  319. "templateCredsSetupCompleted": true,
  320. "instanceId": "d8c459f4ebcadd20c3258ade09582fe0f02de933363f6184259e0c9a36784090"
  321. },
  322. "id": "MnSj9RHtCEDuQf5B",
  323. "tags": [
  324. {
  325. "createdAt": "2025-06-09T07:35:33.006Z",
  326. "updatedAt": "2025-06-09T07:35:33.006Z",
  327. "id": "OozOX9dMuHatAFQJ",
  328. "name": "W18: VEO 3 Video"
  329. }
  330. ]
  331. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement