vibrante-node 2.5.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (487) hide show
  1. src/core/__init__.py +0 -0
  2. src/core/engine.py +484 -0
  3. src/core/events.py +32 -0
  4. src/core/graph.py +74 -0
  5. src/core/integrity.py +925 -0
  6. src/core/loader.py +56 -0
  7. src/core/manifest.py +910 -0
  8. src/core/models.py +59 -0
  9. src/core/persistence.py +27 -0
  10. src/core/python_to_workflow.py +182 -0
  11. src/core/registry.py +314 -0
  12. src/core/workflow_to_python.py +801 -0
  13. src/main.py +188 -0
  14. src/models/__init__.py +0 -0
  15. src/nodes/__init__.py +0 -0
  16. src/nodes/ai/__init__.py +1 -0
  17. src/nodes/base.py +174 -0
  18. src/nodes/builtins/__init__.py +0 -0
  19. src/nodes/builtins/group_node.py +210 -0
  20. src/nodes/builtins/nodes.py +452 -0
  21. src/nodes/print.py +19 -0
  22. src/nodes/test.py +19 -0
  23. src/ui/__init__.py +0 -0
  24. src/ui/canvas/__init__.py +0 -0
  25. src/ui/canvas/backdrop.py +223 -0
  26. src/ui/canvas/canvas_search_bar.py +222 -0
  27. src/ui/canvas/edge.py +98 -0
  28. src/ui/canvas/mini_map.py +138 -0
  29. src/ui/canvas/node_search_popup.py +270 -0
  30. src/ui/canvas/scene.py +1149 -0
  31. src/ui/canvas/sticky_note.py +123 -0
  32. src/ui/canvas/view.py +285 -0
  33. src/ui/code_editor.py +435 -0
  34. src/ui/export_python_dialog.py +490 -0
  35. src/ui/gemini_api_dialog.py +41 -0
  36. src/ui/gemini_chat.py +370 -0
  37. src/ui/import_python_dialog.py +122 -0
  38. src/ui/library_panel.py +246 -0
  39. src/ui/log_panel.py +315 -0
  40. src/ui/node_builder.py +841 -0
  41. src/ui/node_widget.py +1009 -0
  42. src/ui/port_widget.py +116 -0
  43. src/ui/script_editor.py +53 -0
  44. src/ui/scripting_console.py +270 -0
  45. src/ui/settings_window.py +575 -0
  46. src/ui/window.py +2012 -0
  47. src/utils/color_manager.py +50 -0
  48. src/utils/config_manager.py +71 -0
  49. src/utils/env_manager.py +232 -0
  50. src/utils/highlighter.py +110 -0
  51. src/utils/paths.py +30 -0
  52. src/utils/prism_config.py +300 -0
  53. src/utils/prism_core.py +80 -0
  54. src/utils/qt_compat.py +159 -0
  55. src/utils/runtime.py +80 -0
  56. vibrante_node/CLA.md +96 -0
  57. vibrante_node/COMMERCIAL_LICENSE.md +170 -0
  58. vibrante_node/LICENSE +178 -0
  59. vibrante_node/LICENSES/AGPL-3.0.txt +661 -0
  60. vibrante_node/LICENSES/CC-BY-4.0-SCOPE.md +53 -0
  61. vibrante_node/LICENSES/CC-BY-4.0.txt +396 -0
  62. vibrante_node/LICENSES/GPL-3.0.txt +674 -0
  63. vibrante_node/LICENSES/LGPL-3.0.txt +165 -0
  64. vibrante_node/LICENSES/README.md +65 -0
  65. vibrante_node/THIRD_PARTY_NOTICES.txt +3277 -0
  66. vibrante_node/__init__.py +2 -0
  67. vibrante_node/app.py +60 -0
  68. vibrante_node/docs/AUTOMATION_API.html +785 -0
  69. vibrante_node/docs/DEVELOPER.html +891 -0
  70. vibrante_node/docs/DOCUMENTATION.html +2761 -0
  71. vibrante_node/docs/LICENSE.txt +35 -0
  72. vibrante_node/docs/NODE_BUILDER_API.html +1155 -0
  73. vibrante_node/docs/RELEASE_v1.0.5.html +140 -0
  74. vibrante_node/docs/RELEASE_v1.1.0.html +163 -0
  75. vibrante_node/docs/RELEASE_v1.1.5.html +286 -0
  76. vibrante_node/docs/RELEASE_v1.2.0.html +175 -0
  77. vibrante_node/docs/RELEASE_v1.3.0.html +168 -0
  78. vibrante_node/docs/RELEASE_v1.4.0.html +160 -0
  79. vibrante_node/docs/RELEASE_v1.5.0.html +432 -0
  80. vibrante_node/docs/RELEASE_v1.6.0.html +293 -0
  81. vibrante_node/docs/RELEASE_v1.6.1.html +171 -0
  82. vibrante_node/docs/RELEASE_v1.7.0.html +270 -0
  83. vibrante_node/docs/RELEASE_v1.8.0.html +201 -0
  84. vibrante_node/docs/RELEASE_v1.8.1.html +124 -0
  85. vibrante_node/docs/RELEASE_v1.8.2.html +119 -0
  86. vibrante_node/docs/RELEASE_v1.8.3.html +125 -0
  87. vibrante_node/docs/RELEASE_v1.8.4.html +210 -0
  88. vibrante_node/docs/RELEASE_v1.8.5.html +223 -0
  89. vibrante_node/docs/RELEASE_v2.0.0.html +284 -0
  90. vibrante_node/docs/RELEASE_v2.1.0.html +259 -0
  91. vibrante_node/docs/RELEASE_v2.1.1.html +156 -0
  92. vibrante_node/docs/RELEASE_v2.2.0.html +369 -0
  93. vibrante_node/docs/RELEASE_v2.2.1.html +168 -0
  94. vibrante_node/docs/RELEASE_v2.3.0.html +185 -0
  95. vibrante_node/docs/RELEASE_v2.4.0.html +446 -0
  96. vibrante_node/docs/RELEASE_v2.5.0.html +478 -0
  97. vibrante_node/docs/RELEASE_v2.5.1.html +190 -0
  98. vibrante_node/docs/USER_GUIDE.html +1407 -0
  99. vibrante_node/docs/index.html +103 -0
  100. vibrante_node/docs/portal/01_introduction.html +1177 -0
  101. vibrante_node/docs/portal/02_getting_started.html +1267 -0
  102. vibrante_node/docs/portal/03_user_guide.html +1736 -0
  103. vibrante_node/docs/portal/04_workflow_tutorials.html +1473 -0
  104. vibrante_node/docs/portal/05_node_development.html +1562 -0
  105. vibrante_node/docs/portal/06_backend_architecture.html +1373 -0
  106. vibrante_node/docs/portal/07_frontend_architecture.html +1588 -0
  107. vibrante_node/docs/portal/08_api_reference.html +2336 -0
  108. vibrante_node/docs/portal/09_advanced_topics.html +1664 -0
  109. vibrante_node/docs/portal/10_contribution_guide.html +1263 -0
  110. vibrante_node/docs/portal/11_troubleshooting.html +1108 -0
  111. vibrante_node/docs/portal/12_examples_library.html +1498 -0
  112. vibrante_node/docs/portal/13_general_purpose_automation.html +1472 -0
  113. vibrante_node/docs/portal/14_custom_nodes_api.html +1960 -0
  114. vibrante_node/docs/portal/index.html +605 -0
  115. vibrante_node/docs/portal/integrations_blender.html +605 -0
  116. vibrante_node/docs/portal/integrations_deadline.html +536 -0
  117. vibrante_node/docs/portal/integrations_houdini.html +787 -0
  118. vibrante_node/docs/portal/integrations_maya.html +675 -0
  119. vibrante_node/docs/portal/integrations_prism.html +628 -0
  120. vibrante_node/docs/portal/search.json +1 -0
  121. vibrante_node/docs/validation.json +333 -0
  122. vibrante_node/examples/arnold_lighting/orchestration_notes.md +45 -0
  123. vibrante_node/examples/arnold_lighting/prompt.md +47 -0
  124. vibrante_node/examples/automation/01_linear_chain.py +10 -0
  125. vibrante_node/examples/automation/02_batch_update_prefix.py +8 -0
  126. vibrante_node/examples/automation/03_reset_scene.py +5 -0
  127. vibrante_node/examples/automation/04_batch_execution.py +9 -0
  128. vibrante_node/examples/automation/05_git_backup.py +6 -0
  129. vibrante_node/examples/automation/06_reset_math_nodes.py +12 -0
  130. vibrante_node/examples/automation/07_stress_test_grid.py +8 -0
  131. vibrante_node/examples/automation/08_scene_summary.py +8 -0
  132. vibrante_node/examples/automation/09_toggle_bools.py +8 -0
  133. vibrante_node/examples/automation/10_session_report.py +7 -0
  134. vibrante_node/examples/automation/11_simple_math_node.py +7 -0
  135. vibrante_node/examples/cinematic_camera/orchestration_notes.md +56 -0
  136. vibrante_node/examples/cinematic_camera/prompt.md +50 -0
  137. vibrante_node/examples/cinematic_explosion/orchestration_notes.md +76 -0
  138. vibrante_node/examples/cinematic_explosion/prompt.md +47 -0
  139. vibrante_node/examples/cinematic_explosion/review.md +75 -0
  140. vibrante_node/examples/dust_wave/orchestration_notes.md +43 -0
  141. vibrante_node/examples/dust_wave/prompt.md +40 -0
  142. vibrante_node/examples/nodes/async_delay.py +21 -0
  143. vibrante_node/examples/nodes/connection_logger.py +25 -0
  144. vibrante_node/examples/nodes/data_filter.py +19 -0
  145. vibrante_node/examples/nodes/dict_merge.py +20 -0
  146. vibrante_node/examples/nodes/dict_summary.py +21 -0
  147. vibrante_node/examples/nodes/dropdown_selector.py +29 -0
  148. vibrante_node/examples/nodes/env_reader.py +18 -0
  149. vibrante_node/examples/nodes/list_item_picker.py +85 -0
  150. vibrante_node/examples/nodes/list_stats.py +27 -0
  151. vibrante_node/examples/nodes/logic_threshold.py +23 -0
  152. vibrante_node/examples/nodes/math_square.py +30 -0
  153. vibrante_node/examples/nodes/random_list.py +18 -0
  154. vibrante_node/examples/nodes/reactive_config.py +24 -0
  155. vibrante_node/examples/nodes/safety_reset.py +31 -0
  156. vibrante_node/examples/nodes/string_reverse.py +16 -0
  157. vibrante_node/icons/210429_DeadlineFreeOn10RenderMachines.jpg +0 -0
  158. vibrante_node/icons/README.md +39 -0
  159. vibrante_node/icons/blender_icon.png +0 -0
  160. vibrante_node/icons/braces.png +0 -0
  161. vibrante_node/icons/braces.svg +1 -0
  162. vibrante_node/icons/builder.png +0 -0
  163. vibrante_node/icons/check.png +0 -0
  164. vibrante_node/icons/check.svg +1 -0
  165. vibrante_node/icons/chevron-right.svg +3 -0
  166. vibrante_node/icons/code.png +0 -0
  167. vibrante_node/icons/code.svg +4 -0
  168. vibrante_node/icons/computer-window.png +0 -0
  169. vibrante_node/icons/data.png +0 -0
  170. vibrante_node/icons/data.svg +5 -0
  171. vibrante_node/icons/database-search.png +0 -0
  172. vibrante_node/icons/database-search.svg +5 -0
  173. vibrante_node/icons/database-zap.png +0 -0
  174. vibrante_node/icons/database-zap.svg +5 -0
  175. vibrante_node/icons/database.png +0 -0
  176. vibrante_node/icons/database.svg +5 -0
  177. vibrante_node/icons/dice.png +0 -0
  178. vibrante_node/icons/dice.svg +1 -0
  179. vibrante_node/icons/divide.svg +5 -0
  180. vibrante_node/icons/file-input.svg +6 -0
  181. vibrante_node/icons/file-plus.png +0 -0
  182. vibrante_node/icons/file-plus.svg +6 -0
  183. vibrante_node/icons/file-text.png +0 -0
  184. vibrante_node/icons/file-text.svg +7 -0
  185. vibrante_node/icons/folder-plus.png +0 -0
  186. vibrante_node/icons/folder-plus.svg +5 -0
  187. vibrante_node/icons/folder.png +0 -0
  188. vibrante_node/icons/folder.svg +3 -0
  189. vibrante_node/icons/gear.png +0 -0
  190. vibrante_node/icons/gear.svg +1 -0
  191. vibrante_node/icons/git-branch.svg +6 -0
  192. vibrante_node/icons/hash.png +0 -0
  193. vibrante_node/icons/hash.svg +1 -0
  194. vibrante_node/icons/houdini.svg +4 -0
  195. vibrante_node/icons/houdini_icon.png +0 -0
  196. vibrante_node/icons/http.png +0 -0
  197. vibrante_node/icons/list-check.png +0 -0
  198. vibrante_node/icons/list-check.svg +7 -0
  199. vibrante_node/icons/list-plus.svg +10 -0
  200. vibrante_node/icons/list.png +0 -0
  201. vibrante_node/icons/list.svg +8 -0
  202. vibrante_node/icons/logic.png +0 -0
  203. vibrante_node/icons/logic.svg +7 -0
  204. vibrante_node/icons/math.png +0 -0
  205. vibrante_node/icons/math.svg +4 -0
  206. vibrante_node/icons/maya_icon.jpg +0 -0
  207. vibrante_node/icons/message.png +0 -0
  208. vibrante_node/icons/message.svg +3 -0
  209. vibrante_node/icons/minus.svg +3 -0
  210. vibrante_node/icons/multiply.png +0 -0
  211. vibrante_node/icons/multiply.svg +1 -0
  212. vibrante_node/icons/online-library.png +0 -0
  213. vibrante_node/icons/percentage.svg +5 -0
  214. vibrante_node/icons/plus.png +0 -0
  215. vibrante_node/icons/plus.svg +1 -0
  216. vibrante_node/icons/print.png +0 -0
  217. vibrante_node/icons/print.svg +5 -0
  218. vibrante_node/icons/prism_icon.png +0 -0
  219. vibrante_node/icons/refresh.svg +6 -0
  220. vibrante_node/icons/repeat.svg +6 -0
  221. vibrante_node/icons/scales.png +0 -0
  222. vibrante_node/icons/scales.svg +1 -0
  223. vibrante_node/icons/shuffle.svg +7 -0
  224. vibrante_node/icons/string.png +0 -0
  225. vibrante_node/icons/string.svg +5 -0
  226. vibrante_node/icons/terminal.png +0 -0
  227. vibrante_node/icons/terminal.svg +1 -0
  228. vibrante_node/icons/timer.png +0 -0
  229. vibrante_node/icons/timer.svg +4 -0
  230. vibrante_node/icons/toggle-switch.svg +5 -0
  231. vibrante_node/icons/uppercase.png +0 -0
  232. vibrante_node/icons/uppercase.svg +1 -0
  233. vibrante_node/icons/variable-get.svg +4 -0
  234. vibrante_node/icons/variable-set.svg +6 -0
  235. vibrante_node/icons/variable.png +0 -0
  236. vibrante_node/icons/variable.svg +5 -0
  237. vibrante_node/icons/vibrante-node-icon.png +0 -0
  238. vibrante_node/icons/vibrante-node-logo.png +0 -0
  239. vibrante_node/icons/vibrante-node-main_logo.png +0 -0
  240. vibrante_node/icons/vibrante-node-resize_main_logo.png +0 -0
  241. vibrante_node/logo.png +0 -0
  242. vibrante_node/mcp_cli.py +36 -0
  243. vibrante_node/node_examples/Split_String.json +35 -0
  244. vibrante_node/node_examples/async_delay.json +32 -0
  245. vibrante_node/node_examples/delay_timer.json +29 -0
  246. vibrante_node/node_examples/file_reader.json +29 -0
  247. vibrante_node/node_examples/fruit_selector.json +37 -0
  248. vibrante_node/node_examples/json_parser.json +29 -0
  249. vibrante_node/node_examples/line_counter.json +29 -0
  250. vibrante_node/node_examples/list_append.json +32 -0
  251. vibrante_node/node_examples/list_images_recursive.json +55 -0
  252. vibrante_node/node_examples/logic_and.json +34 -0
  253. vibrante_node/node_examples/logic_compare.json +36 -0
  254. vibrante_node/node_examples/math_abs.json +29 -0
  255. vibrante_node/node_examples/math_add.json +32 -0
  256. vibrante_node/node_examples/reactive_config.json +28 -0
  257. vibrante_node/node_examples/string_uppercase.json +29 -0
  258. vibrante_node/nodes/Dropdown_Selector.json +27 -0
  259. vibrante_node/nodes/add_integers.json +34 -0
  260. vibrante_node/nodes/blender_action_bake_animation.json +23 -0
  261. vibrante_node/nodes/blender_action_custom.json +21 -0
  262. vibrante_node/nodes/blender_action_export_alembic.json +22 -0
  263. vibrante_node/nodes/blender_action_export_fbx.json +23 -0
  264. vibrante_node/nodes/blender_action_export_gltf.json +21 -0
  265. vibrante_node/nodes/blender_action_export_obj.json +19 -0
  266. vibrante_node/nodes/blender_action_export_usd.json +23 -0
  267. vibrante_node/nodes/blender_action_import_alembic.json +18 -0
  268. vibrante_node/nodes/blender_action_import_fbx.json +18 -0
  269. vibrante_node/nodes/blender_action_import_gltf.json +18 -0
  270. vibrante_node/nodes/blender_action_import_obj.json +18 -0
  271. vibrante_node/nodes/blender_action_new_blend.json +18 -0
  272. vibrante_node/nodes/blender_action_open_blend.json +18 -0
  273. vibrante_node/nodes/blender_action_render.json +23 -0
  274. vibrante_node/nodes/blender_action_save_blend.json +18 -0
  275. vibrante_node/nodes/blender_action_scene_info.json +17 -0
  276. vibrante_node/nodes/blender_action_set_frame_range.json +20 -0
  277. vibrante_node/nodes/blender_action_set_render_settings.json +27 -0
  278. vibrante_node/nodes/blender_get_action_result.json +22 -0
  279. vibrante_node/nodes/blender_headless.json +86 -0
  280. vibrante_node/nodes/compare.json +48 -0
  281. vibrante_node/nodes/console_print.json +29 -0
  282. vibrante_node/nodes/create_dictionary.json +18 -0
  283. vibrante_node/nodes/create_folder.json +17 -0
  284. vibrante_node/nodes/create_list.json +18 -0
  285. vibrante_node/nodes/deadline_blender_submit.json +38 -0
  286. vibrante_node/nodes/deadline_houdini_submit.json +38 -0
  287. vibrante_node/nodes/deadline_job_status.json +28 -0
  288. vibrante_node/nodes/deadline_maya_submit.json +40 -0
  289. vibrante_node/nodes/delay_timer.json +26 -0
  290. vibrante_node/nodes/example_random_float.json +35 -0
  291. vibrante_node/nodes/file_append.json +18 -0
  292. vibrante_node/nodes/file_write.json +18 -0
  293. vibrante_node/nodes/for_loop.json +46 -0
  294. vibrante_node/nodes/get_dict_value.json +19 -0
  295. vibrante_node/nodes/get_list_item.json +19 -0
  296. vibrante_node/nodes/houdini_action_bake_animation.json +20 -0
  297. vibrante_node/nodes/houdini_action_custom.json +20 -0
  298. vibrante_node/nodes/houdini_action_export_alembic.json +20 -0
  299. vibrante_node/nodes/houdini_action_export_camera_alembic.json +20 -0
  300. vibrante_node/nodes/houdini_action_export_fbx.json +18 -0
  301. vibrante_node/nodes/houdini_action_import_alembic.json +18 -0
  302. vibrante_node/nodes/houdini_action_import_camera.json +17 -0
  303. vibrante_node/nodes/houdini_action_import_fbx.json +18 -0
  304. vibrante_node/nodes/houdini_action_import_obj.json +18 -0
  305. vibrante_node/nodes/houdini_action_new_hip.json +16 -0
  306. vibrante_node/nodes/houdini_action_open_hip.json +17 -0
  307. vibrante_node/nodes/houdini_action_save_hip.json +17 -0
  308. vibrante_node/nodes/houdini_action_scene_info.json +16 -0
  309. vibrante_node/nodes/houdini_action_set_frame_range.json +18 -0
  310. vibrante_node/nodes/houdini_get_action_result.json +21 -0
  311. vibrante_node/nodes/houdini_headless.json +85 -0
  312. vibrante_node/nodes/houdini_scene_snapshot.json +41 -0
  313. vibrante_node/nodes/http_request.json +76 -0
  314. vibrante_node/nodes/if_condition.json +45 -0
  315. vibrante_node/nodes/list_directory.json +17 -0
  316. vibrante_node/nodes/list_images_recursive.json +41 -0
  317. vibrante_node/nodes/list_item_picker.json +41 -0
  318. vibrante_node/nodes/list_length.json +17 -0
  319. vibrante_node/nodes/logical_gate.json +45 -0
  320. vibrante_node/nodes/loop_body.json +62 -0
  321. vibrante_node/nodes/math_add.json +17 -0
  322. vibrante_node/nodes/math_divide.json +17 -0
  323. vibrante_node/nodes/math_modulo.json +17 -0
  324. vibrante_node/nodes/math_multiply.json +36 -0
  325. vibrante_node/nodes/math_subtract.json +17 -0
  326. vibrante_node/nodes/maya_action_assign_material.json +18 -0
  327. vibrante_node/nodes/maya_action_bake_animation.json +21 -0
  328. vibrante_node/nodes/maya_action_create_render_layer.json +19 -0
  329. vibrante_node/nodes/maya_action_custom.json +20 -0
  330. vibrante_node/nodes/maya_action_export_alembic.json +22 -0
  331. vibrante_node/nodes/maya_action_export_camera_alembic.json +20 -0
  332. vibrante_node/nodes/maya_action_export_fbx.json +18 -0
  333. vibrante_node/nodes/maya_action_import_alembic.json +17 -0
  334. vibrante_node/nodes/maya_action_import_camera.json +17 -0
  335. vibrante_node/nodes/maya_action_import_fbx.json +17 -0
  336. vibrante_node/nodes/maya_action_import_obj.json +17 -0
  337. vibrante_node/nodes/maya_action_list_references.json +16 -0
  338. vibrante_node/nodes/maya_action_new_scene.json +16 -0
  339. vibrante_node/nodes/maya_action_open_scene.json +18 -0
  340. vibrante_node/nodes/maya_action_playblast.json +22 -0
  341. vibrante_node/nodes/maya_action_reference_alembic.json +18 -0
  342. vibrante_node/nodes/maya_action_reference_scene.json +18 -0
  343. vibrante_node/nodes/maya_action_save_scene.json +18 -0
  344. vibrante_node/nodes/maya_action_scene_info.json +16 -0
  345. vibrante_node/nodes/maya_action_set_aovs.json +18 -0
  346. vibrante_node/nodes/maya_action_set_frame_range.json +18 -0
  347. vibrante_node/nodes/maya_action_set_render_settings.json +23 -0
  348. vibrante_node/nodes/maya_get_action_result.json +21 -0
  349. vibrante_node/nodes/maya_headless.json +27 -0
  350. vibrante_node/nodes/mcp_call_tool.json +19 -0
  351. vibrante_node/nodes/mcp_list_tools.json +18 -0
  352. vibrante_node/nodes/mcp_server_init.json +23 -0
  353. vibrante_node/nodes/message_node.json +32 -0
  354. vibrante_node/nodes/prism_add_integration.json +49 -0
  355. vibrante_node/nodes/prism_build_entity.json +45 -0
  356. vibrante_node/nodes/prism_change_project.json +37 -0
  357. vibrante_node/nodes/prism_core_info.json +37 -0
  358. vibrante_node/nodes/prism_core_init.json +46 -0
  359. vibrante_node/nodes/prism_create_category.json +44 -0
  360. vibrante_node/nodes/prism_create_entity.json +60 -0
  361. vibrante_node/nodes/prism_create_playblast.json +56 -0
  362. vibrante_node/nodes/prism_create_product_version.json +64 -0
  363. vibrante_node/nodes/prism_create_project.json +50 -0
  364. vibrante_node/nodes/prism_create_scene_from_preset.json +59 -0
  365. vibrante_node/nodes/prism_eval.json +42 -0
  366. vibrante_node/nodes/prism_get_aovs.json +29 -0
  367. vibrante_node/nodes/prism_get_asset_by_name.json +69 -0
  368. vibrante_node/nodes/prism_get_asset_type_by_name.json +62 -0
  369. vibrante_node/nodes/prism_get_asset_types_by_project.json +55 -0
  370. vibrante_node/nodes/prism_get_assets_by_project.json +41 -0
  371. vibrante_node/nodes/prism_get_assets_by_type.json +69 -0
  372. vibrante_node/nodes/prism_get_config.json +48 -0
  373. vibrante_node/nodes/prism_get_current_scene.json +37 -0
  374. vibrante_node/nodes/prism_get_departments.json +37 -0
  375. vibrante_node/nodes/prism_get_entity_info.json +69 -0
  376. vibrante_node/nodes/prism_get_entity_path.json +69 -0
  377. vibrante_node/nodes/prism_get_export_path.json +26 -0
  378. vibrante_node/nodes/prism_get_latest_product_path.json +34 -0
  379. vibrante_node/nodes/prism_get_media.json +29 -0
  380. vibrante_node/nodes/prism_get_media_versions.json +33 -0
  381. vibrante_node/nodes/prism_get_plugin.json +35 -0
  382. vibrante_node/nodes/prism_get_preset_scenes.json +35 -0
  383. vibrante_node/nodes/prism_get_product_versions.json +33 -0
  384. vibrante_node/nodes/prism_get_products.json +29 -0
  385. vibrante_node/nodes/prism_get_project_by_name.json +55 -0
  386. vibrante_node/nodes/prism_get_project_config_path.json +26 -0
  387. vibrante_node/nodes/prism_get_scene_files.json +45 -0
  388. vibrante_node/nodes/prism_get_scene_path.json +23 -0
  389. vibrante_node/nodes/prism_get_sequence_by_project.json +48 -0
  390. vibrante_node/nodes/prism_get_sequences_by_project.json +41 -0
  391. vibrante_node/nodes/prism_get_shot_by_name.json +62 -0
  392. vibrante_node/nodes/prism_get_shot_by_sequence.json +55 -0
  393. vibrante_node/nodes/prism_get_shot_info.json +69 -0
  394. vibrante_node/nodes/prism_get_shots.json +29 -0
  395. vibrante_node/nodes/prism_get_shots_by_project_sequence.json +48 -0
  396. vibrante_node/nodes/prism_get_shots_by_sequence.json +48 -0
  397. vibrante_node/nodes/prism_get_tasks.json +39 -0
  398. vibrante_node/nodes/prism_import_product.json +37 -0
  399. vibrante_node/nodes/prism_list_plugins.json +25 -0
  400. vibrante_node/nodes/prism_list_projects.json +25 -0
  401. vibrante_node/nodes/prism_login_token.json +33 -0
  402. vibrante_node/nodes/prism_monkey_patch.json +46 -0
  403. vibrante_node/nodes/prism_open_scene.json +33 -0
  404. vibrante_node/nodes/prism_popup.json +40 -0
  405. vibrante_node/nodes/prism_register_callback.json +58 -0
  406. vibrante_node/nodes/prism_save_scene_version.json +90 -0
  407. vibrante_node/nodes/prism_send_cmd.json +54 -0
  408. vibrante_node/nodes/prism_set_config.json +55 -0
  409. vibrante_node/nodes/prism_studio_assign_project.json +43 -0
  410. vibrante_node/nodes/prism_trigger_callback.json +42 -0
  411. vibrante_node/nodes/prism_usd_department_layer_path.json +35 -0
  412. vibrante_node/nodes/prism_usd_entity_path.json +29 -0
  413. vibrante_node/nodes/prism_usd_sublayer_path.json +41 -0
  414. vibrante_node/nodes/prism_usd_update_department_layer.json +33 -0
  415. vibrante_node/nodes/prism_usd_update_sublayer.json +33 -0
  416. vibrante_node/nodes/python_script.json +17 -0
  417. vibrante_node/nodes/scene_intent_extractor.json +25 -0
  418. vibrante_node/nodes/set_dict_value.json +20 -0
  419. vibrante_node/nodes/string_concat.json +47 -0
  420. vibrante_node/nodes/string_length.json +16 -0
  421. vibrante_node/nodes/string_lowercase.json +16 -0
  422. vibrante_node/nodes/string_replace.json +18 -0
  423. vibrante_node/nodes/string_split.json +17 -0
  424. vibrante_node/nodes/string_uppercase.json +16 -0
  425. vibrante_node/nodes/variable_node.json +42 -0
  426. vibrante_node/nodes/while_loop.json +18 -0
  427. vibrante_node/splash.png +0 -0
  428. vibrante_node/vfx_workflows/01_prism_project_overview.json +492 -0
  429. vibrante_node/vfx_workflows/02_maya_asset_publish.json +776 -0
  430. vibrante_node/vfx_workflows/03_multi_shot_alembic_export.json +856 -0
  431. vibrante_node/vfx_workflows/04_deadline_render_pipeline.json +994 -0
  432. vibrante_node/vfx_workflows/05_houdini_fx_pipeline.json +1056 -0
  433. vibrante_node/vfx_workflows/06_blender_multi_format_export.json +1206 -0
  434. vibrante_node/website_examples/database_query.json +69 -0
  435. vibrante_node/website_examples/email_notification.json +104 -0
  436. vibrante_node/website_examples/file_batch_processor.json +62 -0
  437. vibrante_node/website_examples/folder_monitor.json +55 -0
  438. vibrante_node/website_examples/hou_sop_chain.json +69 -0
  439. vibrante_node/website_examples/http_request.json +90 -0
  440. vibrante_node/website_examples/image_resizer.json +90 -0
  441. vibrante_node/website_examples/llm_text_generation.json +90 -0
  442. vibrante_node/website_examples/prism_multi_asset_publisher.json +76 -0
  443. vibrante_node/website_examples/regex_replace.json +69 -0
  444. vibrante_node/workflows/If_condition.json +134 -0
  445. vibrante_node/workflows/Maya_WorkFlow.json +464 -0
  446. vibrante_node/workflows/asset_intelligence_pipeline.json +259 -0
  447. vibrante_node/workflows/concat_string_with_loop.json +262 -0
  448. vibrante_node/workflows/delay_time.json +74 -0
  449. vibrante_node/workflows/example_workflow_maya_prism_demo.json +503 -0
  450. vibrante_node/workflows/example_workflow_prism_demo.json +276 -0
  451. vibrante_node/workflows/example_workflow_prism_demo_02.json +221 -0
  452. vibrante_node/workflows/extract_FPS_from_maya_scene.json +265 -0
  453. vibrante_node/workflows/for_each.json +260 -0
  454. vibrante_node/workflows/get_list_item.json +151 -0
  455. vibrante_node/workflows/hou_mcp_scene_context_demo.json +67 -0
  456. vibrante_node/workflows/list_recursive_images.json +103 -0
  457. vibrante_node/workflows/logic_if_example.json +262 -0
  458. vibrante_node/workflows/logic_if_with_variables.json +210 -0
  459. vibrante_node/workflows/loop_break_example.json +197 -0
  460. vibrante_node/workflows/loop_operation_example.json +382 -0
  461. vibrante_node/workflows/mcp_list_tools_demo.json +90 -0
  462. vibrante_node/workflows/prism_assets_workflow.json +131 -0
  463. vibrante_node/workflows/python_script_node.json +89 -0
  464. vibrante_node/workflows/run_in_sequence.json +158 -0
  465. vibrante_node/workflows/scene_intent_pipeline.json +134 -0
  466. vibrante_node/workflows/scene_planning_pipeline.json +258 -0
  467. vibrante_node/workflows/semantic_scene_intent.json +96 -0
  468. vibrante_node/workflows/setup_maya_scene.json +352 -0
  469. vibrante_node/workflows/tutorial_maya_headless_prism_pipeline.json +593 -0
  470. vibrante_node/workflows/two_way_switch.json +341 -0
  471. vibrante_node/workflows/while_loop_class_example.json +192 -0
  472. vibrante_node/workflows/while_loop_example.json +184 -0
  473. vibrante_node/workflows/while_loop_retry_example.json +276 -0
  474. vibrante_node-2.5.1.dist-info/METADATA +715 -0
  475. vibrante_node-2.5.1.dist-info/RECORD +487 -0
  476. vibrante_node-2.5.1.dist-info/WHEEL +5 -0
  477. vibrante_node-2.5.1.dist-info/entry_points.txt +3 -0
  478. vibrante_node-2.5.1.dist-info/licenses/CLA.md +96 -0
  479. vibrante_node-2.5.1.dist-info/licenses/COMMERCIAL_LICENSE.md +170 -0
  480. vibrante_node-2.5.1.dist-info/licenses/LICENSE +178 -0
  481. vibrante_node-2.5.1.dist-info/licenses/LICENSES/AGPL-3.0.txt +661 -0
  482. vibrante_node-2.5.1.dist-info/licenses/LICENSES/CC-BY-4.0-SCOPE.md +53 -0
  483. vibrante_node-2.5.1.dist-info/licenses/LICENSES/CC-BY-4.0.txt +396 -0
  484. vibrante_node-2.5.1.dist-info/licenses/LICENSES/GPL-3.0.txt +674 -0
  485. vibrante_node-2.5.1.dist-info/licenses/LICENSES/LGPL-3.0.txt +165 -0
  486. vibrante_node-2.5.1.dist-info/licenses/LICENSES/README.md +65 -0
  487. vibrante_node-2.5.1.dist-info/top_level.txt +2 -0
@@ -0,0 +1,1472 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <meta name="description" content="Vibrante-Node v2.5.1 — General Purpose Automation">
7
+ <title>General Purpose Automation — Vibrante-Node Docs</title>
8
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/highlight.js@11.9.0/styles/atom-one-dark.min.css">
9
+ <style>
10
+ /* ── Reset & Variables ─────────────────────────────────────────────────── */
11
+ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
12
+ :root {
13
+ --bg: #1e1e2e;
14
+ --surface: #181825;
15
+ --surface2: #11111b;
16
+ --border: #313244;
17
+ --text: #cdd6f4;
18
+ --subtext: #a6adc8;
19
+ --muted: #6c7086;
20
+ --lavender: #b4befe;
21
+ --blue: #89b4fa;
22
+ --teal: #94e2d5;
23
+ --green: #a6e3a1;
24
+ --yellow: #f9e2af;
25
+ --peach: #fab387;
26
+ --red: #f38ba8;
27
+ --pink: #f5c2e7;
28
+ --mauve: #cba6f7;
29
+ --sidebar-w: 260px;
30
+ --toc-w: 220px;
31
+ --header-h: 56px;
32
+ --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
33
+ --mono: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
34
+ }
35
+
36
+ /* ── Layout ─────────────────────────────────────────────────────────────── */
37
+ html { scroll-behavior: smooth; }
38
+ body {
39
+ font-family: var(--font);
40
+ background: var(--bg);
41
+ color: var(--text);
42
+ line-height: 1.7;
43
+ min-height: 100vh;
44
+ display: grid;
45
+ grid-template-rows: var(--header-h) 1fr;
46
+ grid-template-columns: var(--sidebar-w) 1fr var(--toc-w);
47
+ grid-template-areas:
48
+ "header header header"
49
+ "sidebar content toc";
50
+ }
51
+
52
+ /* ── Header ─────────────────────────────────────────────────────────────── */
53
+ .header {
54
+ grid-area: header;
55
+ position: sticky; top: 0; z-index: 200;
56
+ background: var(--surface2);
57
+ border-bottom: 1px solid var(--border);
58
+ display: flex; align-items: center; gap: 16px;
59
+ padding: 0 24px;
60
+ }
61
+ .header-logo {
62
+ font-weight: 700; font-size: 1.05em;
63
+ color: var(--mauve);
64
+ text-decoration: none;
65
+ white-space: nowrap;
66
+ }
67
+ .header-version {
68
+ font-size: .78em;
69
+ background: var(--border);
70
+ color: var(--subtext);
71
+ padding: 2px 8px; border-radius: 12px;
72
+ }
73
+ .header-spacer { flex: 1; }
74
+ .search-wrap { position: relative; }
75
+ #search-input {
76
+ background: var(--surface);
77
+ border: 1px solid var(--border);
78
+ border-radius: 8px;
79
+ color: var(--text);
80
+ font-family: var(--font);
81
+ font-size: .9em;
82
+ padding: 6px 14px 6px 36px;
83
+ width: 260px;
84
+ outline: none;
85
+ transition: border-color .15s;
86
+ }
87
+ #search-input:focus { border-color: var(--mauve); }
88
+ .search-icon {
89
+ position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
90
+ color: var(--muted); pointer-events: none; font-size: .9em;
91
+ }
92
+ #search-results {
93
+ position: absolute; top: calc(100% + 8px); right: 0;
94
+ width: 380px; max-height: 420px; overflow-y: auto;
95
+ background: var(--surface);
96
+ border: 1px solid var(--border);
97
+ border-radius: 10px;
98
+ box-shadow: 0 8px 32px rgba(0,0,0,.5);
99
+ display: none; z-index: 300;
100
+ }
101
+ #search-results.visible { display: block; }
102
+ .search-result-item {
103
+ padding: 10px 16px;
104
+ border-bottom: 1px solid var(--border);
105
+ cursor: pointer;
106
+ transition: background .1s;
107
+ }
108
+ .search-result-item:last-child { border-bottom: none; }
109
+ .search-result-item:hover { background: var(--bg); }
110
+ .search-result-title { color: var(--blue); font-weight: 600; font-size: .9em; }
111
+ .search-result-excerpt { color: var(--subtext); font-size: .82em; margin-top: 2px; line-height: 1.4; }
112
+ .search-no-results { padding: 16px; color: var(--muted); text-align: center; font-size: .9em; }
113
+
114
+ /* ── Sidebar ─────────────────────────────────────────────────────────────── */
115
+ .sidebar {
116
+ grid-area: sidebar;
117
+ position: sticky; top: var(--header-h);
118
+ height: calc(100vh - var(--header-h));
119
+ overflow-y: auto;
120
+ background: var(--surface);
121
+ border-right: 1px solid var(--border);
122
+ padding: 20px 0;
123
+ scrollbar-width: thin;
124
+ scrollbar-color: var(--border) transparent;
125
+ }
126
+ .sidebar::-webkit-scrollbar { width: 4px; }
127
+ .sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
128
+
129
+ .sidebar-group { margin-bottom: 4px; }
130
+ .sidebar-group-title {
131
+ font-size: .7em;
132
+ text-transform: uppercase;
133
+ letter-spacing: .1em;
134
+ color: var(--muted);
135
+ padding: 10px 20px 4px;
136
+ font-weight: 600;
137
+ }
138
+ .sidebar-link {
139
+ display: flex; align-items: center; gap: 8px;
140
+ padding: 6px 20px;
141
+ color: var(--subtext);
142
+ text-decoration: none;
143
+ font-size: .88em;
144
+ border-left: 3px solid transparent;
145
+ transition: all .12s;
146
+ line-height: 1.3;
147
+ }
148
+ .sidebar-link:hover { color: var(--text); background: var(--bg); }
149
+ .sidebar-link.active {
150
+ color: var(--mauve);
151
+ border-left-color: var(--mauve);
152
+ background: rgba(180,190,254,.06);
153
+ font-weight: 600;
154
+ }
155
+ .sidebar-num {
156
+ font-size: .7em;
157
+ color: var(--muted);
158
+ background: var(--border);
159
+ border-radius: 4px;
160
+ padding: 1px 5px;
161
+ flex-shrink: 0;
162
+ }
163
+ .sidebar-divider {
164
+ border: none;
165
+ border-top: 1px solid var(--border);
166
+ margin: 12px 16px;
167
+ }
168
+
169
+ /* ── Content ─────────────────────────────────────────────────────────────── */
170
+ .content {
171
+ grid-area: content;
172
+ min-width: 0;
173
+ padding: 40px 48px 80px;
174
+ max-width: 860px;
175
+ }
176
+ .content-inner { max-width: 820px; }
177
+
178
+ /* Breadcrumb */
179
+ .breadcrumb {
180
+ font-size: .8em;
181
+ color: var(--muted);
182
+ margin-bottom: 28px;
183
+ display: flex; align-items: center; gap: 6px;
184
+ }
185
+ .breadcrumb a { color: var(--blue); text-decoration: none; }
186
+ .breadcrumb a:hover { text-decoration: underline; }
187
+ .breadcrumb-sep { color: var(--border); }
188
+
189
+ /* Typography */
190
+ h1 { font-size: 2em; color: var(--mauve); border-bottom: 2px solid var(--border); padding-bottom: 12px; margin: 20px 0 20px; }
191
+ h2 { font-size: 1.45em; color: var(--blue); margin: 40px 0 14px; padding-top: 8px; }
192
+ h3 { font-size: 1.15em; color: var(--teal); margin: 28px 0 10px; }
193
+ h4 { font-size: 1em; color: var(--pink); margin: 20px 0 8px; }
194
+ h5 { font-size: .95em; color: var(--yellow); margin: 16px 0 6px; }
195
+ p { margin-bottom: 16px; color: var(--text); }
196
+ a { color: var(--blue); }
197
+ a:hover { text-decoration: underline; }
198
+ strong { color: var(--peach); }
199
+ em { color: var(--yellow); font-style: italic; }
200
+
201
+ ul, ol { margin: 10px 0 16px 24px; }
202
+ li { margin-bottom: 6px; }
203
+ li > ul, li > ol { margin-top: 4px; margin-bottom: 4px; }
204
+
205
+ blockquote {
206
+ border-left: 4px solid var(--mauve);
207
+ padding: 10px 20px;
208
+ margin: 16px 0;
209
+ background: rgba(180,190,254,.05);
210
+ border-radius: 0 8px 8px 0;
211
+ color: var(--subtext);
212
+ }
213
+ blockquote strong { color: var(--mauve); }
214
+
215
+ hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
216
+
217
+ /* Code */
218
+ code {
219
+ background: var(--surface2);
220
+ color: var(--red);
221
+ padding: 2px 7px; border-radius: 5px;
222
+ font-family: var(--mono); font-size: .87em;
223
+ }
224
+ pre {
225
+ background: var(--surface2) !important;
226
+ border: 1px solid var(--border);
227
+ border-radius: 10px;
228
+ padding: 20px 22px;
229
+ overflow-x: auto;
230
+ margin: 16px 0 22px;
231
+ position: relative;
232
+ }
233
+ pre code {
234
+ background: none !important;
235
+ color: inherit !important;
236
+ padding: 0; font-size: .9em;
237
+ border-radius: 0;
238
+ }
239
+ /* Copy button */
240
+ .copy-btn {
241
+ position: absolute; top: 10px; right: 12px;
242
+ background: var(--border);
243
+ color: var(--subtext);
244
+ border: none; border-radius: 5px;
245
+ padding: 3px 10px; font-size: .75em;
246
+ cursor: pointer; transition: all .12s;
247
+ font-family: var(--font);
248
+ }
249
+ .copy-btn:hover { background: var(--mauve); color: var(--surface2); }
250
+ .copy-btn.copied { background: var(--green); color: var(--surface2); }
251
+
252
+ /* Tables */
253
+ table { border-collapse: collapse; width: 100%; margin: 16px 0 22px; font-size: .9em; }
254
+ th { background: var(--border); color: var(--mauve); padding: 10px 14px; text-align: left; font-weight: 600; }
255
+ td { border-top: 1px solid var(--border); padding: 9px 14px; color: var(--text); }
256
+ tr:nth-child(even) td { background: rgba(17,17,27,.4); }
257
+ td code { font-size: .85em; }
258
+
259
+ /* Callout boxes */
260
+ .callout {
261
+ border-radius: 8px;
262
+ padding: 14px 18px;
263
+ margin: 16px 0 22px;
264
+ border-left: 4px solid;
265
+ }
266
+ .callout-note { background: rgba(137,180,250,.08); border-color: var(--blue); }
267
+ .callout-tip { background: rgba(166,227,161,.08); border-color: var(--green); }
268
+ .callout-warning { background: rgba(249,226,175,.08); border-color: var(--yellow); }
269
+ .callout-danger { background: rgba(243,139,168,.08); border-color: var(--red); }
270
+ .callout-title { font-weight: 700; font-size: .85em; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
271
+ .callout-note .callout-title { color: var(--blue); }
272
+ .callout-tip .callout-title { color: var(--green); }
273
+ .callout-warning .callout-title { color: var(--yellow); }
274
+ .callout-danger .callout-title { color: var(--red); }
275
+
276
+ /* Validation badges */
277
+ .val-badge {
278
+ display: inline-block; font-size: .78em; font-weight: 600;
279
+ padding: 4px 12px; border-radius: 20px; margin-bottom: 18px;
280
+ border: 1px solid transparent; letter-spacing: .02em;
281
+ }
282
+ .val-badge-ok { background: rgba(166,227,161,.12); border-color: var(--green); color: var(--green); }
283
+ .val-badge-warn { background: rgba(249,226,175,.12); border-color: var(--yellow); color: var(--yellow); }
284
+ .val-badge-error { background: rgba(243,139,168,.12); border-color: var(--red); color: var(--red); }
285
+ .val-badge-unknown { background: rgba(108,112,134,.12); border-color: #6c7086; color: #6c7086; }
286
+
287
+ /* Prev/Next navigation */
288
+ .page-nav {
289
+ display: flex; justify-content: space-between;
290
+ margin-top: 60px; padding-top: 24px;
291
+ border-top: 1px solid var(--border);
292
+ gap: 16px;
293
+ }
294
+ .page-nav-link {
295
+ display: flex; flex-direction: column;
296
+ text-decoration: none;
297
+ padding: 14px 20px;
298
+ background: var(--surface);
299
+ border: 1px solid var(--border);
300
+ border-radius: 10px;
301
+ min-width: 200px;
302
+ transition: border-color .15s;
303
+ max-width: 48%;
304
+ }
305
+ .page-nav-link:hover { border-color: var(--mauve); }
306
+ .page-nav-label { font-size: .75em; color: var(--muted); margin-bottom: 4px; }
307
+ .page-nav-title { color: var(--blue); font-weight: 600; font-size: .95em; }
308
+ .page-nav-link.prev .page-nav-label::before { content: '← '; }
309
+ .page-nav-link.next { margin-left: auto; text-align: right; }
310
+ .page-nav-link.next .page-nav-label::after { content: ' →'; }
311
+
312
+ /* ── TOC (right panel) ───────────────────────────────────────────────────── */
313
+ .toc {
314
+ grid-area: toc;
315
+ position: sticky; top: var(--header-h);
316
+ height: calc(100vh - var(--header-h));
317
+ overflow-y: auto;
318
+ padding: 28px 16px 28px 8px;
319
+ scrollbar-width: thin;
320
+ scrollbar-color: var(--border) transparent;
321
+ }
322
+ .toc-title {
323
+ font-size: .72em;
324
+ text-transform: uppercase;
325
+ letter-spacing: .1em;
326
+ color: var(--muted);
327
+ font-weight: 600;
328
+ margin-bottom: 12px;
329
+ padding-left: 8px;
330
+ }
331
+ .toc-link {
332
+ display: block;
333
+ padding: 4px 8px;
334
+ color: var(--subtext);
335
+ text-decoration: none;
336
+ font-size: .82em;
337
+ border-left: 2px solid transparent;
338
+ border-radius: 0 4px 4px 0;
339
+ transition: all .12s;
340
+ line-height: 1.35;
341
+ margin-bottom: 1px;
342
+ }
343
+ .toc-link:hover { color: var(--text); border-left-color: var(--border); }
344
+ .toc-link.active { color: var(--mauve); border-left-color: var(--mauve); background: rgba(180,190,254,.05); }
345
+ .toc-link.toc-h3 { padding-left: 20px; font-size: .79em; }
346
+ .toc-link.toc-h4 { padding-left: 32px; font-size: .76em; color: var(--muted); }
347
+
348
+ /* ── Responsive ──────────────────────────────────────────────────────────── */
349
+ @media (max-width: 1100px) {
350
+ body { grid-template-columns: var(--sidebar-w) 1fr 0; }
351
+ .toc { display: none; }
352
+ }
353
+ @media (max-width: 760px) {
354
+ body { grid-template-columns: 0 1fr 0; grid-template-rows: var(--header-h) 1fr; }
355
+ .sidebar { display: none; }
356
+ .content { padding: 24px 20px 60px; }
357
+ #search-input { width: 180px; }
358
+ }
359
+
360
+ /* ── Index / landing page ────────────────────────────────────────────────── */
361
+ .hero { text-align: center; padding: 60px 0 48px; }
362
+ .hero h1 { border: none; font-size: 2.8em; }
363
+ .hero .tagline { color: var(--subtext); font-size: 1.15em; margin-top: 10px; }
364
+ .hero .version-badge {
365
+ display: inline-block;
366
+ background: var(--border); color: var(--mauve);
367
+ padding: 4px 14px; border-radius: 20px; font-size: .85em;
368
+ margin-top: 14px;
369
+ }
370
+ .group-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 16px 0 36px; }
371
+ .doc-card {
372
+ background: var(--surface);
373
+ border: 1px solid var(--border);
374
+ border-radius: 12px;
375
+ padding: 20px 24px;
376
+ text-decoration: none;
377
+ color: var(--text);
378
+ transition: border-color .15s, background .15s;
379
+ display: block;
380
+ }
381
+ .doc-card:hover { border-color: var(--mauve); background: rgba(180,190,254,.04); }
382
+ .doc-card-num { font-size: .72em; color: var(--muted); margin-bottom: 4px; }
383
+ .doc-card-title { color: var(--blue); font-weight: 700; font-size: 1em; margin-bottom: 6px; }
384
+ .doc-card-desc { color: var(--subtext); font-size: .85em; line-height: 1.5; }
385
+ .group-title { color: var(--teal); font-size: 1.1em; font-weight: 600; margin: 32px 0 10px; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
386
+ </style>
387
+ <span id="portal-base" data-base="" style="display:none"></span>
388
+ </head>
389
+ <body>
390
+
391
+ <!-- ── Header ─────────────────────────────────────────────────────────── -->
392
+ <header class="header">
393
+ <a class="header-logo" href="index.html">Vibrante-Node</a>
394
+ <span class="header-version">v2.5.1</span>
395
+ <div class="header-spacer"></div>
396
+ <div class="search-wrap">
397
+ <span class="search-icon">&#128269;</span>
398
+ <input id="search-input" type="text" placeholder="Search docs… (/)" autocomplete="off" spellcheck="false">
399
+ <div id="search-results"></div>
400
+ </div>
401
+ </header>
402
+
403
+ <!-- ── Sidebar ────────────────────────────────────────────────────────── -->
404
+ <nav class="sidebar">
405
+ <div class="sidebar-group">
406
+ <div class="sidebar-group-title">Overview</div>
407
+ <a class="sidebar-link" href="01_introduction.html"><span class="sidebar-num">01</span>Introduction</a>
408
+ <a class="sidebar-link" href="02_getting_started.html"><span class="sidebar-num">02</span>Getting Started</a>
409
+ </div>
410
+ <div class="sidebar-group">
411
+ <div class="sidebar-group-title">Using the App</div>
412
+ <a class="sidebar-link" href="03_user_guide.html"><span class="sidebar-num">03</span>User Guide</a>
413
+ <a class="sidebar-link" href="04_workflow_tutorials.html"><span class="sidebar-num">04</span>Workflow Tutorials</a>
414
+ </div>
415
+ <div class="sidebar-group">
416
+ <div class="sidebar-group-title">Developing Nodes</div>
417
+ <a class="sidebar-link" href="05_node_development.html"><span class="sidebar-num">05</span>Node Development Guide</a>
418
+ <a class="sidebar-link" href="14_custom_nodes_api.html"><span class="sidebar-num">14</span>Custom Nodes API</a>
419
+ <a class="sidebar-link" href="08_api_reference.html"><span class="sidebar-num">08</span>API Reference</a>
420
+ </div>
421
+ <div class="sidebar-group">
422
+ <div class="sidebar-group-title">Architecture</div>
423
+ <a class="sidebar-link" href="06_backend_architecture.html"><span class="sidebar-num">06</span>Backend Architecture</a>
424
+ <a class="sidebar-link" href="07_frontend_architecture.html"><span class="sidebar-num">07</span>Frontend Architecture</a>
425
+ </div>
426
+ <div class="sidebar-group">
427
+ <div class="sidebar-group-title">Advanced</div>
428
+ <a class="sidebar-link" href="09_advanced_topics.html"><span class="sidebar-num">09</span>Advanced Topics</a>
429
+ <a class="sidebar-link" href="10_contribution_guide.html"><span class="sidebar-num">10</span>Contribution Guide</a>
430
+ </div>
431
+ <div class="sidebar-group">
432
+ <div class="sidebar-group-title">Reference</div>
433
+ <a class="sidebar-link" href="11_troubleshooting.html"><span class="sidebar-num">11</span>Troubleshooting</a>
434
+ <a class="sidebar-link" href="12_examples_library.html"><span class="sidebar-num">12</span>Examples Library</a>
435
+ <a class="sidebar-link active" href="13_general_purpose_automation.html"><span class="sidebar-num">13</span>General Purpose Automation</a>
436
+ </div>
437
+
438
+ </nav>
439
+
440
+ <!-- ── Main content ───────────────────────────────────────────────────── -->
441
+ <main class="content">
442
+ <div class="content-inner">
443
+ <nav class="breadcrumb"><a href="index.html">Docs</a><span class="breadcrumb-sep">›</span><span>General Purpose Automation</span></nav>
444
+ <div class="val-badge val-badge-ok" title="Verified against source code">&#10003; Verified</div>
445
+ <p># General-Purpose Automation with Vibrante-Node</p>
446
+ <p>Vibrante-Node is often introduced through its VFX integrations — Houdini, Maya, Prism. But those integrations are optional plugins that extend a general-purpose automation engine. At its core, Vibrante-Node is a visual, async, node-based Python execution framework that can orchestrate any automation task: file processing, API orchestration, data transformation, AI pipelines, database operations, DevOps workflows, and more.</p>
447
+ <p>This chapter covers twelve practical automation domains, explains why a node-based approach outperforms linear scripts, and teaches you to decompose any problem into nodes.</p>
448
+ <hr />
449
+ <h2 id="why-node-based-logic-beats-linear-scripts">Why Node-Based Logic Beats Linear Scripts</h2>
450
+ <p>A linear Python script does one thing at a time, top to bottom. It is easy to write for simple problems and increasingly painful to maintain as complexity grows.</p>
451
+ <p>Consider a script that: reads a folder, renames files, resizes images, calls an API to log the results, and sends an email on completion. When the resize step fails halfway through, the script has already renamed some files and called the API for none. Recovery requires careful manual state tracking. Adding a new step — say, compressing the output — means editing the script, re-testing the whole thing, and hoping you didn't break the rename step.</p>
452
+ <p>Node-based automation addresses these pain points structurally:</p>
453
+ <p><strong>Visibility.</strong> Each step is a named box on the canvas. You can see the entire pipeline at once, understand what it does before running it, and identify which step failed from the log panel without reading code.</p>
454
+ <p><strong>Modularity.</strong> Nodes are self-contained. Changing the resize node doesn't risk breaking the rename node. You can swap out the email node for a Slack notification node without touching anything else.</p>
455
+ <p><strong>Reusability.</strong> A "normalize filename" subgraph can be collapsed into a GroupNode and dropped into any other workflow. No copy-paste, no diverging implementations.</p>
456
+ <p><strong>Conditional routing.</strong> TwoWaySwitch lets you visually route execution to different branches based on a condition — success vs. failure, above threshold vs. below, file exists vs. missing. In a linear script this is if/else buried in indentation.</p>
457
+ <p><strong>Live debugging.</strong> Hover any wire after a run to see the last value that flowed through it. Insert Console Print nodes between steps without restructuring code. The log panel timestamps every node execution.</p>
458
+ <hr />
459
+ <h2 id="the-async-advantage">The Async Advantage</h2>
460
+ <p>Vibrante-Node's <code>execute()</code> methods are Python coroutines (async functions). This has three practical benefits:</p>
461
+ <p><strong>Non-blocking I/O.</strong> When your HTTP request node awaits a network response, the event loop stays active. Other UI events (like canceling a run) still work. The UI never freezes.</p>
462
+ <p><strong>Concurrent execution.</strong> Nodes that have no data dependency on each other can run concurrently in future engine versions. The dependency graph structure makes parallelism explicit — if two nodes both read from the same source but don't feed into each other, they can run simultaneously.</p>
463
+ <p><strong>Subprocess orchestration.</strong> <code>asyncio.create_subprocess_exec()</code> lets nodes run CLI tools (ffmpeg, git, mayapy) and await their completion without blocking the UI thread.</p>
464
+ <p>The one rule: never call blocking code directly inside <code>execute()</code>. Use <code>asyncio.to_thread()</code> for file I/O, database queries, CPU-bound operations, and any synchronous library call that takes more than a few milliseconds.</p>
465
+ <hr />
466
+ <h2 id="use-case-1-file-processing-and-batch-operations">Use Case 1: File Processing and Batch Operations</h2>
467
+ <h3 id="the-problem">The Problem</h3>
468
+ <p>You have 500 files in a folder that need to be renamed according to a naming convention, copied to a destination, and logged in a CSV file. The naming rule: <code>{project}_{date}_{original_name_lowercase}.ext</code>.</p>
469
+ <h3 id="why-node-based">Why Node-Based</h3>
470
+ <p>A linear script becomes fragile when the naming rule changes (you edit the core loop), when a file fails to copy (exception handling obscures the flow), and when you want to add a new step like compression (rewrite the whole middle section).</p>
471
+ <p>With nodes, you change the rename node's logic independently, the error branch is a separate visual path, and adding compression is a new node dropped between "copy" and "log."</p>
472
+ <h3 id="nodes-to-use">Nodes to Use</h3>
473
+ <pre><code>[File Batch Processor] ← folder_path, pattern=&quot;*&quot;
474
+ ↓ file_list
475
+ [ForEach]
476
+ ↓ current_item (one file path per iteration)
477
+ [Python Script: Build new name]
478
+ ↓ new_name, old_path
479
+ [Python Script: Copy file]
480
+ ↓ copied_path, success
481
+ [TwoWaySwitch on success]
482
+ exec_true → [List Append: results]
483
+ exec_false → [Console Print: &quot;Copy failed: {old_path}&quot;]
484
+ ↓ (both branches)
485
+ [back to ForEach loop_exec_in]
486
+ ↓ (after loop)
487
+ [Python Script: Write CSV log]
488
+ [Console Print: &quot;Batch complete.&quot;]
489
+ </code></pre>
490
+ <h3 id="custom-node-build-new-name">Custom Node: Build New Name</h3>
491
+ <pre><code class="language-python">import os
492
+ from datetime import date
493
+
494
+ async def execute(self, inputs):
495
+ full_path = inputs.get(&quot;current_item&quot;, &quot;&quot;)
496
+ project = inputs.get(&quot;project&quot;, &quot;proj&quot;)
497
+ today = date.today().strftime(&quot;%Y%m%d&quot;)
498
+ original = os.path.basename(full_path)
499
+ name, ext = os.path.splitext(original)
500
+ new_name = f&quot;{project}_{today}_{name.lower()}{ext}&quot;
501
+
502
+ return {&quot;new_name&quot;: new_name, &quot;old_path&quot;: full_path, &quot;exec_out&quot;: True}
503
+ </code></pre>
504
+ <h3 id="custom-node-copy-file">Custom Node: Copy File</h3>
505
+ <pre><code class="language-python">import asyncio
506
+ import os
507
+ import shutil
508
+
509
+ async def execute(self, inputs):
510
+ old_path = inputs.get(&quot;old_path&quot;, &quot;&quot;)
511
+ new_name = inputs.get(&quot;new_name&quot;, &quot;&quot;)
512
+ dest_dir = inputs.get(&quot;dest_dir&quot;, &quot;&quot;)
513
+
514
+ dest_path = os.path.join(dest_dir, new_name)
515
+
516
+ try:
517
+ await asyncio.to_thread(shutil.copy2, old_path, dest_path)
518
+ return {&quot;copied_path&quot;: dest_path, &quot;success&quot;: True, &quot;exec_out&quot;: True}
519
+ except Exception as e:
520
+ self.log_error(f&quot;Copy failed: {e}&quot;)
521
+ return {&quot;copied_path&quot;: &quot;&quot;, &quot;success&quot;: False, &quot;exec_out&quot;: True}
522
+ </code></pre>
523
+ <hr />
524
+ <h2 id="use-case-2-folder-monitoring-system">Use Case 2: Folder Monitoring System</h2>
525
+ <h3 id="the-problem_1">The Problem</h3>
526
+ <p>A render farm drops finished frames into a watch folder. You want to automatically detect new <code>.exr</code> files, validate them (non-zero size), generate a JPEG proxy, and move the frame to a delivery folder.</p>
527
+ <h3 id="pattern-poll-process">Pattern: Poll + Process</h3>
528
+ <p>Since Vibrante-Node runs execution in response to a Run click (not as a daemon by default), the folder monitor pattern uses a polling loop with a configurable dwell time. For continuous monitoring, run the workflow headlessly on a cron schedule.</p>
529
+ <h3 id="using-watchdog-inside-a-node">Using Watchdog Inside a Node</h3>
530
+ <pre><code class="language-python">import asyncio
531
+ import fnmatch
532
+ import os
533
+ import time
534
+ from src.nodes.base import BaseNode
535
+
536
+ try:
537
+ from watchdog.observers import Observer
538
+ from watchdog.events import FileSystemEventHandler
539
+ _WATCHDOG = True
540
+ except ImportError:
541
+ _WATCHDOG = False
542
+
543
+
544
+ class Watch_Folder(BaseNode):
545
+ name = &quot;watch_folder&quot;
546
+
547
+ def __init__(self):
548
+ super().__init__()
549
+ self.add_input(&quot;folder_path&quot;, &quot;string&quot;, widget_type=&quot;text&quot;, default=&quot;&quot;)
550
+ self.add_input(&quot;pattern&quot;, &quot;string&quot;, widget_type=&quot;text&quot;, default=&quot;*.exr&quot;)
551
+ self.add_input(&quot;dwell_secs&quot;, &quot;int&quot;, widget_type=&quot;int&quot;, default=60)
552
+ self.add_output(&quot;new_files&quot;, &quot;list&quot;)
553
+
554
+ async def execute(self, inputs):
555
+ folder = inputs.get(&quot;folder_path&quot;, &quot;&quot;)
556
+ pattern = inputs.get(&quot;pattern&quot;, &quot;*.exr&quot;)
557
+ dwell = int(inputs.get(&quot;dwell_secs&quot;) or 60)
558
+
559
+ new_files = []
560
+
561
+ if _WATCHDOG:
562
+ class Handler(FileSystemEventHandler):
563
+ def on_created(self, event):
564
+ if not event.is_directory and fnmatch.fnmatch(
565
+ os.path.basename(event.src_path), pattern
566
+ ):
567
+ new_files.append(event.src_path)
568
+
569
+ def _watch():
570
+ obs = Observer()
571
+ obs.schedule(Handler(), folder, recursive=False)
572
+ obs.start()
573
+ time.sleep(dwell)
574
+ obs.stop()
575
+ obs.join()
576
+
577
+ await asyncio.to_thread(_watch)
578
+ else:
579
+ # Simple polling fallback
580
+ before = set(os.listdir(folder))
581
+ await asyncio.sleep(dwell)
582
+ after = set(os.listdir(folder))
583
+ new_files = [
584
+ os.path.join(folder, f)
585
+ for f in (after - before)
586
+ if fnmatch.fnmatch(f, pattern)
587
+ ]
588
+
589
+ return {&quot;new_files&quot;: new_files, &quot;exec_out&quot;: True}
590
+ </code></pre>
591
+ <h3 id="looping-pattern-for-continuous-monitoring">Looping Pattern for Continuous Monitoring</h3>
592
+ <p>Use a <strong>WhileLoop</strong> node wrapping the Watch Folder node. Set the WhileLoop's <code>condition</code> to <code>True</code> (infinite) or wire a <code>should_continue</code> variable that is set to <code>False</code> by a "stop" condition.</p>
593
+ <hr />
594
+ <h2 id="use-case-3-image-processing-pipeline">Use Case 3: Image Processing Pipeline</h2>
595
+ <h3 id="the-problem_2">The Problem</h3>
596
+ <p>A photography client delivers 200 high-resolution images that need to be: resized to web dimensions (1920×1080 max), watermarked with a studio logo, converted from TIFF to JPEG at 85% quality, and organized into subfolders by date.</p>
597
+ <h3 id="nodes-to-use_1">Nodes to Use</h3>
598
+ <pre><code>[File Batch Processor: *.tiff]
599
+ ↓ file_list
600
+ [ForEach]
601
+ ↓ current_item
602
+ [Image Resizer: 1920x1080, keep_aspect=True]
603
+ ↓ out_path (temp resized file)
604
+ [Python Script: Add Watermark (PIL)]
605
+ ↓ watermarked_path
606
+ [Python Script: Convert to JPEG]
607
+ ↓ final_path
608
+ [Python Script: Move to dated subfolder]
609
+ ↓ exec_out (loop back)
610
+ ↓ (after loop)
611
+ [Console Print: &quot;Processed N images.&quot;]
612
+ </code></pre>
613
+ <h3 id="watermark-node-code">Watermark Node Code</h3>
614
+ <pre><code class="language-python">import asyncio
615
+ import os
616
+ from src.nodes.base import BaseNode
617
+
618
+ try:
619
+ from PIL import Image
620
+ _PIL = True
621
+ except ImportError:
622
+ _PIL = False
623
+
624
+
625
+ class Add_Watermark(BaseNode):
626
+ name = &quot;add_watermark&quot;
627
+
628
+ def __init__(self):
629
+ super().__init__()
630
+ self.add_input(&quot;image_path&quot;, &quot;string&quot;, widget_type=&quot;text&quot;, default=&quot;&quot;)
631
+ self.add_input(&quot;watermark_path&quot;, &quot;string&quot;, widget_type=&quot;text&quot;, default=&quot;&quot;)
632
+ self.add_input(&quot;opacity&quot;, &quot;float&quot;, widget_type=&quot;float&quot;, default=0.3)
633
+ self.add_input(&quot;position&quot;, &quot;string&quot;, widget_type=&quot;text&quot;, default=&quot;bottom-right&quot;)
634
+ self.add_output(&quot;out_path&quot;, &quot;string&quot;)
635
+
636
+ async def execute(self, inputs):
637
+ if not _PIL:
638
+ self.log_error(&quot;Pillow required: pip install Pillow&quot;)
639
+ return {&quot;out_path&quot;: &quot;&quot;, &quot;exec_out&quot;: True}
640
+
641
+ img_path = inputs.get(&quot;image_path&quot;, &quot;&quot;)
642
+ wm_path = inputs.get(&quot;watermark_path&quot;, &quot;&quot;)
643
+ opacity = float(inputs.get(&quot;opacity&quot;) or 0.3)
644
+ position = inputs.get(&quot;position&quot;, &quot;bottom-right&quot;)
645
+
646
+ def _watermark():
647
+ base = Image.open(img_path).convert(&quot;RGBA&quot;)
648
+ wm = Image.open(wm_path).convert(&quot;RGBA&quot;)
649
+
650
+ # Scale watermark to 20% of base width
651
+ wm_w = base.width // 5
652
+ ratio = wm_w / wm.width
653
+ wm_h = int(wm.height * ratio)
654
+ wm = wm.resize((wm_w, wm_h), Image.LANCZOS)
655
+
656
+ # Apply opacity
657
+ r, g, b, a = wm.split()
658
+ a = a.point(lambda x: int(x * opacity))
659
+ wm.putalpha(a)
660
+
661
+ # Position
662
+ margin = 20
663
+ if &quot;right&quot; in position:
664
+ x = base.width - wm_w - margin
665
+ else:
666
+ x = margin
667
+ if &quot;bottom&quot; in position:
668
+ y = base.height - wm_h - margin
669
+ else:
670
+ y = margin
671
+
672
+ composite = Image.new(&quot;RGBA&quot;, base.size)
673
+ composite.paste(base, (0, 0))
674
+ composite.paste(wm, (x, y), mask=wm)
675
+
676
+ out_path = img_path.rsplit(&quot;.&quot;, 1)[0] + &quot;_wm.&quot; + img_path.rsplit(&quot;.&quot;, 1)[-1]
677
+ composite.convert(&quot;RGB&quot;).save(out_path, quality=92)
678
+ return out_path
679
+
680
+ try:
681
+ out = await asyncio.to_thread(_watermark)
682
+ return {&quot;out_path&quot;: out, &quot;exec_out&quot;: True}
683
+ except Exception as e:
684
+ self.log_error(f&quot;Watermark failed: {e}&quot;)
685
+ return {&quot;out_path&quot;: img_path, &quot;exec_out&quot;: True} # pass through original
686
+
687
+
688
+ def register_node():
689
+ return Add_Watermark
690
+ </code></pre>
691
+ <hr />
692
+ <h2 id="use-case-4-data-transformation-workflows">Use Case 4: Data Transformation Workflows</h2>
693
+ <h3 id="the-problem_3">The Problem</h3>
694
+ <p>A business analyst provides a CSV with raw sales data. You need to: filter records by region, compute a derived metric (revenue per unit), group by product category, sort by revenue, and export the summary as a formatted JSON report.</p>
695
+ <h3 id="why-nodes-beat-pandas-scripts">Why Nodes Beat pandas Scripts</h3>
696
+ <p>A pandas script does all of this in 20 lines but is opaque — you cannot see the data after each step without adding print() calls. A node workflow makes each transform a visible, testable step.</p>
697
+ <h3 id="workflow-structure">Workflow Structure</h3>
698
+ <pre><code>[File Load: sales.csv]
699
+ ↓ content
700
+ [Python Script: Parse CSV → list of dicts]
701
+ ↓ records
702
+ [Python Script: Filter by region]
703
+ ↓ filtered
704
+ [Python Script: Compute revenue_per_unit]
705
+ ↓ enriched
706
+ [Python Script: Group by category]
707
+ ↓ grouped
708
+ [Python Script: Sort by total_revenue desc]
709
+ ↓ sorted_data
710
+ [Python Script: Format JSON report]
711
+ ↓ json_string
712
+ [File Save: report.json]
713
+ [Console Print: summary]
714
+ </code></pre>
715
+ <h3 id="parse-csv-node">Parse CSV Node</h3>
716
+ <pre><code class="language-python">import asyncio
717
+ import csv
718
+ import io
719
+
720
+ async def execute(self, inputs):
721
+ content = inputs.get(&quot;content&quot;, &quot;&quot;)
722
+ reader = csv.DictReader(io.StringIO(content))
723
+ records = [dict(row) for row in reader]
724
+ return {&quot;records&quot;: records, &quot;record_count&quot;: len(records), &quot;exec_out&quot;: True}
725
+ </code></pre>
726
+ <h3 id="compute-metric-node">Compute Metric Node</h3>
727
+ <pre><code class="language-python">async def execute(self, inputs):
728
+ records = list(inputs.get(&quot;records&quot;) or [])
729
+ enriched = []
730
+ for r in records:
731
+ try:
732
+ revenue = float(r.get(&quot;revenue&quot;, 0))
733
+ units = float(r.get(&quot;units&quot;, 1)) or 1
734
+ r[&quot;revenue_per_unit&quot;] = round(revenue / units, 2)
735
+ except (ValueError, ZeroDivisionError):
736
+ r[&quot;revenue_per_unit&quot;] = 0.0
737
+ enriched.append(r)
738
+ return {&quot;enriched&quot;: enriched, &quot;exec_out&quot;: True}
739
+ </code></pre>
740
+ <p>Hover the wire between any two steps to see a sample of the data at that point.</p>
741
+ <hr />
742
+ <h2 id="use-case-5-api-requests-and-web-automation">Use Case 5: API Requests and Web Automation</h2>
743
+ <h3 id="the-problem_4">The Problem</h3>
744
+ <p>Your team uses a project management API. Every Monday, you need to: authenticate (get a token), fetch all open tasks, filter tasks assigned to a specific user, update their status to "in progress," and post a summary to a Slack webhook.</p>
745
+ <h3 id="chain-pattern-auth-fetch-transform-act-notify">Chain Pattern: Auth → Fetch → Transform → Act → Notify</h3>
746
+ <pre><code>[Python Script: Build auth payload]
747
+ ↓ payload
748
+ [HTTP Request: POST /auth → token]
749
+ ↓ response_data (contains &quot;access_token&quot;)
750
+ [Python Script: Extract token]
751
+ ↓ auth_header (dict: {&quot;Authorization&quot;: &quot;Bearer {token}&quot;})
752
+ [HTTP Request: GET /tasks, headers=auth_header]
753
+ ↓ response_data (list of task dicts)
754
+ [Python Script: Filter by assignee]
755
+ ↓ my_tasks
756
+ [ForEach: my_tasks]
757
+ ↓ current_item (one task)
758
+ [HTTP Request: PATCH /tasks/{id} body={&quot;status&quot;:&quot;in_progress&quot;}]
759
+ ↓ exec_out
760
+ [Console Print: &quot;Updated task {id}&quot;]
761
+ ↓ (after loop)
762
+ [HTTP Request: POST slack_webhook, body={&quot;text&quot;: summary}]
763
+ [Console Print: &quot;Done.&quot;]
764
+ </code></pre>
765
+ <h3 id="extract-token-node">Extract Token Node</h3>
766
+ <pre><code class="language-python">async def execute(self, inputs):
767
+ data = inputs.get(&quot;response_data&quot;, {})
768
+ token = data.get(&quot;access_token&quot;, &quot;&quot;) if isinstance(data, dict) else &quot;&quot;
769
+ if not token:
770
+ self.log_error(&quot;Authentication failed — no access_token in response.&quot;)
771
+ return {&quot;auth_header&quot;: {&quot;Authorization&quot;: f&quot;Bearer {token}&quot;}, &quot;token&quot;: token, &quot;exec_out&quot;: True}
772
+ </code></pre>
773
+ <h3 id="filter-by-assignee-node">Filter by Assignee Node</h3>
774
+ <pre><code class="language-python">async def execute(self, inputs):
775
+ tasks = list(inputs.get(&quot;response_data&quot;) or [])
776
+ assignee = inputs.get(&quot;assignee_id&quot;, &quot;&quot;)
777
+ filtered = [t for t in tasks if str(t.get(&quot;assignee_id&quot;, &quot;&quot;)) == str(assignee)]
778
+ return {&quot;my_tasks&quot;: filtered, &quot;count&quot;: len(filtered), &quot;exec_out&quot;: True}
779
+ </code></pre>
780
+ <hr />
781
+ <h2 id="use-case-6-aillm-workflow-orchestration">Use Case 6: AI/LLM Workflow Orchestration</h2>
782
+ <h3 id="the-problem_5">The Problem</h3>
783
+ <p>You receive raw customer feedback text. You want to: classify the sentiment (positive/negative/neutral), extract key topics, generate a suggested response, translate the response to French, and write everything to a database.</p>
784
+ <h3 id="chain-of-llm-prompts">Chain of LLM Prompts</h3>
785
+ <pre><code>[File Load or HTTP Request: raw feedback text]
786
+ ↓ raw_text
787
+ [LLM Text Generation: Classify sentiment]
788
+ prompt = &quot;Classify the sentiment of this feedback as positive, negative, or neutral. Reply with one word only: {raw_text}&quot;
789
+ ↓ generated_text (e.g., &quot;negative&quot;)
790
+ [SetVariable: &quot;sentiment&quot;]
791
+
792
+ [LLM Text Generation: Extract topics]
793
+ prompt = &quot;List the key topics mentioned in this feedback as a comma-separated list: {raw_text}&quot;
794
+ ↓ generated_text
795
+ [SetVariable: &quot;topics&quot;]
796
+
797
+ [LLM Text Generation: Draft response]
798
+ prompt = &quot;Write a professional customer service response to this {sentiment} feedback about {topics}: {raw_text}&quot;
799
+ ↓ generated_text (the draft response)
800
+ [SetVariable: &quot;draft_response&quot;]
801
+
802
+ [LLM Text Generation: Translate to French]
803
+ prompt = &quot;Translate the following to French: {draft_response}&quot;
804
+ ↓ generated_text
805
+ [SetVariable: &quot;french_response&quot;]
806
+
807
+ [Database Query: INSERT INTO feedback_responses ...]
808
+ [Console Print: &quot;Processed feedback.&quot;]
809
+ </code></pre>
810
+ <h3 id="passing-context-with-setvariablegetvariable">Passing Context with SetVariable/GetVariable</h3>
811
+ <p>Each LLM node needs context from previous steps. Use SetVariable after each LLM result, then GetVariable to build the next prompt:</p>
812
+ <pre><code class="language-python"># In the &quot;Draft response&quot; LLM's prompt-building Python Script:
813
+ context = inputs.get(&quot;data&quot;, {})
814
+ sentiment = context.get(&quot;sentiment&quot;, &quot;neutral&quot;)
815
+ topics = context.get(&quot;topics&quot;, &quot;&quot;)
816
+ raw_text = context.get(&quot;raw_text&quot;, &quot;&quot;)
817
+ result = (
818
+ f&quot;Write a professional customer service response to this {sentiment} &quot;
819
+ f&quot;feedback about {topics}: {raw_text}&quot;
820
+ )
821
+ </code></pre>
822
+ <hr />
823
+ <h2 id="use-case-7-local-automation-tools">Use Case 7: Local Automation Tools</h2>
824
+ <h3 id="the-problem_6">The Problem</h3>
825
+ <p>Your project build process involves: running a test suite, if tests pass — building a distribution package, running a linter, and committing the result to git. Each step's output determines whether the next step runs.</p>
826
+ <h3 id="subprocess-node-pattern">Subprocess Node Pattern</h3>
827
+ <pre><code class="language-python">import asyncio
828
+ from src.nodes.base import BaseNode
829
+
830
+
831
+ class Run_Command(BaseNode):
832
+ name = &quot;run_command&quot;
833
+
834
+ def __init__(self):
835
+ super().__init__()
836
+ self.add_input(&quot;command&quot;, &quot;string&quot;, widget_type=&quot;text&quot;, default=&quot;&quot;)
837
+ self.add_input(&quot;args&quot;, &quot;list&quot;, default=None)
838
+ self.add_input(&quot;cwd&quot;, &quot;string&quot;, widget_type=&quot;text&quot;, default=&quot;&quot;)
839
+ self.add_input(&quot;timeout&quot;, &quot;int&quot;, widget_type=&quot;int&quot;, default=120)
840
+ self.add_output(&quot;stdout&quot;, &quot;string&quot;)
841
+ self.add_output(&quot;stderr&quot;, &quot;string&quot;)
842
+ self.add_output(&quot;exit_code&quot;, &quot;int&quot;)
843
+ self.add_output(&quot;success&quot;, &quot;bool&quot;)
844
+
845
+ async def execute(self, inputs):
846
+ import shlex
847
+ command = inputs.get(&quot;command&quot;, &quot;&quot;)
848
+ args = list(inputs.get(&quot;args&quot;) or [])
849
+ cwd = inputs.get(&quot;cwd&quot;) or None
850
+ timeout = int(inputs.get(&quot;timeout&quot;) or 120)
851
+
852
+ if not command:
853
+ self.log_error(&quot;No command specified.&quot;)
854
+ return {&quot;stdout&quot;: &quot;&quot;, &quot;stderr&quot;: &quot;&quot;, &quot;exit_code&quot;: -1, &quot;success&quot;: False, &quot;exec_out&quot;: True}
855
+
856
+ cmd_parts = shlex.split(command) + args
857
+
858
+ try:
859
+ proc = await asyncio.wait_for(
860
+ asyncio.create_subprocess_exec(
861
+ *cmd_parts,
862
+ stdout=asyncio.subprocess.PIPE,
863
+ stderr=asyncio.subprocess.PIPE,
864
+ cwd=cwd,
865
+ ),
866
+ timeout=5,
867
+ )
868
+ stdout, stderr = await asyncio.wait_for(proc.communicate(), timeout=timeout)
869
+ exit_code = proc.returncode
870
+ self.log_info(f&quot;Command exited with code {exit_code}: {command}&quot;)
871
+ return {
872
+ &quot;stdout&quot;: stdout.decode(&quot;utf-8&quot;, errors=&quot;replace&quot;),
873
+ &quot;stderr&quot;: stderr.decode(&quot;utf-8&quot;, errors=&quot;replace&quot;),
874
+ &quot;exit_code&quot;: exit_code,
875
+ &quot;success&quot;: exit_code == 0,
876
+ &quot;exec_out&quot;: True,
877
+ }
878
+ except asyncio.TimeoutError:
879
+ self.log_error(f&quot;Command timed out after {timeout}s: {command}&quot;)
880
+ return {&quot;stdout&quot;: &quot;&quot;, &quot;stderr&quot;: &quot;TIMEOUT&quot;, &quot;exit_code&quot;: -1, &quot;success&quot;: False, &quot;exec_out&quot;: True}
881
+ except Exception as e:
882
+ self.log_error(f&quot;Command failed: {e}&quot;)
883
+ return {&quot;stdout&quot;: &quot;&quot;, &quot;stderr&quot;: str(e), &quot;exit_code&quot;: -1, &quot;success&quot;: False, &quot;exec_out&quot;: True}
884
+
885
+
886
+ def register_node():
887
+ return Run_Command
888
+ </code></pre>
889
+ <h3 id="build-pipeline-workflow">Build Pipeline Workflow</h3>
890
+ <pre><code>[Run Command: &quot;pytest tests/ -x&quot;]
891
+ ↓ success
892
+ [TwoWaySwitch on success]
893
+ exec_false → [Console Print: &quot;Tests failed. Aborting.&quot;]
894
+ exec_true →
895
+ [Run Command: &quot;python -m build&quot;]
896
+ ↓ success
897
+ [TwoWaySwitch on success]
898
+ exec_false → [Console Print: &quot;Build failed.&quot;]
899
+ exec_true →
900
+ [Run Command: &quot;flake8 src/&quot;]
901
+ [Run Command: &quot;git add dist/ &amp;&amp; git commit -m 'Build artifact'&quot;]
902
+ [Console Print: &quot;Build pipeline complete.&quot;]
903
+ </code></pre>
904
+ <hr />
905
+ <h2 id="use-case-8-database-operations">Use Case 8: Database Operations</h2>
906
+ <h3 id="the-problem_7">The Problem</h3>
907
+ <p>An e-commerce system logs orders to a SQLite database. Every night, you need to: query orders from the last 24 hours, compute revenue by product category, update a summary table, and export the summary to a CSV for the finance team.</p>
908
+ <h3 id="workflow-structure_1">Workflow Structure</h3>
909
+ <pre><code>[Python Script: Compute date range]
910
+ ↓ start_datetime, end_datetime
911
+ [Database Query: SELECT orders WHERE created_at BETWEEN ? AND ?]
912
+ parameters = [start_datetime, end_datetime]
913
+ ↓ rows (list of order dicts)
914
+ [Python Script: Aggregate by category]
915
+ ↓ summary (list of {category, revenue, order_count})
916
+ [ForEach: summary]
917
+ [Database Query: INSERT OR REPLACE INTO daily_summary ...]
918
+ [Python Script: Format as CSV]
919
+ ↓ csv_content
920
+ [File Save: daily_summary.csv]
921
+ [Console Print: &quot;Nightly report complete.&quot;]
922
+ </code></pre>
923
+ <h3 id="aggregation-node">Aggregation Node</h3>
924
+ <pre><code class="language-python">from collections import defaultdict
925
+
926
+ async def execute(self, inputs):
927
+ rows = list(inputs.get(&quot;rows&quot;) or [])
928
+ totals = defaultdict(lambda: {&quot;revenue&quot;: 0.0, &quot;order_count&quot;: 0})
929
+
930
+ for row in rows:
931
+ cat = row.get(&quot;category&quot;, &quot;Uncategorized&quot;)
932
+ totals[cat][&quot;revenue&quot;] += float(row.get(&quot;revenue&quot;, 0))
933
+ totals[cat][&quot;order_count&quot;] += 1
934
+
935
+ summary = [
936
+ {&quot;category&quot;: cat, **vals}
937
+ for cat, vals in sorted(totals.items(), key=lambda x: -x[1][&quot;revenue&quot;])
938
+ ]
939
+ total_revenue = sum(v[&quot;revenue&quot;] for v in totals.values())
940
+ return {&quot;summary&quot;: summary, &quot;total_revenue&quot;: total_revenue, &quot;exec_out&quot;: True}
941
+ </code></pre>
942
+ <hr />
943
+ <h2 id="use-case-9-task-scheduling">Use Case 9: Task Scheduling</h2>
944
+ <h3 id="the-problem_8">The Problem</h3>
945
+ <p>You want to run a workflow every 5 minutes to poll an API for status updates, process any new data, and stop once a "complete" status is received.</p>
946
+ <h3 id="timer-delay-node">Timer / Delay Node</h3>
947
+ <pre><code class="language-python">import asyncio
948
+ from src.nodes.base import BaseNode
949
+
950
+
951
+ class Timer_Delay(BaseNode):
952
+ name = &quot;timer_delay&quot;
953
+
954
+ def __init__(self):
955
+ super().__init__()
956
+ self.add_input(&quot;delay_seconds&quot;, &quot;float&quot;, widget_type=&quot;float&quot;, default=5.0)
957
+ self.add_output(&quot;elapsed&quot;, &quot;float&quot;)
958
+
959
+ async def execute(self, inputs):
960
+ delay = float(inputs.get(&quot;delay_seconds&quot;) or 5.0)
961
+ import time
962
+ t0 = time.perf_counter()
963
+ await asyncio.sleep(delay)
964
+ elapsed = time.perf_counter() - t0
965
+ return {&quot;elapsed&quot;: elapsed, &quot;exec_out&quot;: True}
966
+
967
+
968
+ def register_node():
969
+ return Timer_Delay
970
+ </code></pre>
971
+ <h3 id="polling-loop-workflow">Polling Loop Workflow</h3>
972
+ <pre><code>[SetVariable: &quot;should_continue&quot; = True]
973
+ ↓ exec_out
974
+ [WhileLoop: condition = should_continue]
975
+ ↓ loop_exec_out
976
+
977
+ [Timer Delay: 300 seconds (5 min)]
978
+ [HTTP Request: GET /api/job/{job_id}/status]
979
+ ↓ response_data
980
+ [Python Script: Check status]
981
+ data = inputs.get(&quot;data&quot;, {})
982
+ status = data.get(&quot;status&quot;, &quot;&quot;)
983
+ result = status in (&quot;complete&quot;, &quot;failed&quot;, &quot;error&quot;)
984
+ ↓ result (bool)
985
+ [TwoWaySwitch on result]
986
+ exec_true → [SetVariable: &quot;should_continue&quot; = False]
987
+ [Console Print: &quot;Job finished&quot;]
988
+ exec_false → [Console Print: &quot;Still running&quot;]
989
+ ↓ (both branches back to WhileLoop loop_exec_in)
990
+
991
+ ↓ exec_out (after WhileLoop exits)
992
+ [Console Print: &quot;Polling complete.&quot;]
993
+ </code></pre>
994
+ <h3 id="integration-with-system-schedulers">Integration with System Schedulers</h3>
995
+ <p>For truly periodic execution, run the workflow headlessly via a system scheduler:</p>
996
+ <p><strong>Windows Task Scheduler:</strong></p>
997
+ <pre><code class="language-batch">python -m src.headless --workflow my_poll_workflow.json
998
+ </code></pre>
999
+ <p><strong>Linux cron:</strong></p>
1000
+ <pre><code class="language-cron">*/5 * * * * /path/to/venv/bin/python -m src.headless --workflow /path/to/workflow.json
1001
+ </code></pre>
1002
+ <p><strong>macOS launchd:</strong> Create a plist in <code>~/Library/LaunchAgents/</code> with <code>StartInterval</code> set to 300.</p>
1003
+ <hr />
1004
+ <h2 id="use-case-10-multi-step-business-logic">Use Case 10: Multi-Step Business Logic</h2>
1005
+ <h3 id="the-problem_9">The Problem</h3>
1006
+ <p>An approval workflow: receive a purchase request, validate the amount and supplier, check budget availability, auto-approve if under $1,000 or queue for manual review if over, notify the requester, and write an audit log entry.</p>
1007
+ <h3 id="approval-workflow">Approval Workflow</h3>
1008
+ <pre><code>[Python Script: Receive/load purchase request]
1009
+ ↓ request (dict: amount, supplier, department, requester_email)
1010
+
1011
+ [Python Script: Validate request]
1012
+ request = inputs.get(&quot;data&quot;, {})
1013
+ valid = request.get(&quot;amount&quot;, 0) &gt; 0 and request.get(&quot;supplier&quot;, &quot;&quot;) != &quot;&quot;
1014
+ result = valid
1015
+ ↓ result (bool)
1016
+
1017
+ [TwoWaySwitch on result]
1018
+ exec_false → [Email Notification: &quot;Request invalid — missing required fields&quot;]
1019
+ [Console Print: &quot;Rejected&quot;]
1020
+ exec_true →
1021
+
1022
+ [Python Script: Check budget]
1023
+ budget_remaining = get_budget(department) # DB query
1024
+ result = budget_remaining &gt;= amount
1025
+ ↓ result (bool)
1026
+
1027
+ [TwoWaySwitch on result]
1028
+ exec_false → [Email Notification: &quot;Insufficient budget&quot;]
1029
+ exec_true →
1030
+
1031
+ [Python Script: Threshold check]
1032
+ result = amount &lt; 1000
1033
+ ↓ result (bool)
1034
+
1035
+ [TwoWaySwitch on result]
1036
+ exec_true → [Python Script: Approve and deduct budget]
1037
+ [Email Notification: requester — &quot;Approved automatically&quot;]
1038
+ exec_false → [Python Script: Create review ticket]
1039
+ [Email Notification: approver — &quot;Review required&quot;]
1040
+ [Email Notification: requester — &quot;Pending review&quot;]
1041
+
1042
+ [Python Script: Write audit log entry]
1043
+ [Database Query: INSERT INTO audit_log ...]
1044
+ [Console Print: &quot;Workflow complete.&quot;]
1045
+ </code></pre>
1046
+ <h3 id="exec_fail-branches">exec_fail Branches</h3>
1047
+ <p>For nodes that might throw exceptions (database writes, email sends), connect their <code>exec_fail</code> output to an error handling branch:</p>
1048
+ <pre><code>[Database Query] ─── exec_out → [Continue]
1049
+ └── exec_fail → [Console Print: &quot;DB write failed — manual intervention required.&quot;]
1050
+ [Email Notification: ops team]
1051
+ </code></pre>
1052
+ <hr />
1053
+ <h2 id="use-case-11-devops-and-build-automation">Use Case 11: DevOps and Build Automation</h2>
1054
+ <h3 id="the-problem_10">The Problem</h3>
1055
+ <p>On every merge to the main branch, run the test suite, build a Docker image, push it to a registry, deploy to a staging environment, run smoke tests, and send a status notification.</p>
1056
+ <h3 id="workflow">Workflow</h3>
1057
+ <pre><code>[Python Script: Read environment variables]
1058
+ GIT_SHA, REGISTRY, IMAGE_NAME, STAGING_HOST = os.environ
1059
+ ↓ image_tag = f&quot;{REGISTRY}/{IMAGE_NAME}:{GIT_SHA[:8]}&quot;
1060
+
1061
+ [Run Command: &quot;pytest tests/ --tb=short&quot;]
1062
+ ↓ success, stdout
1063
+ [TwoWaySwitch on success]
1064
+ exec_false → [Email Notification / Slack: &quot;Tests FAILED&quot;]
1065
+ [Python Script: exit with code 1]
1066
+ exec_true →
1067
+ [Run Command: f&quot;docker build -t {image_tag} .&quot;]
1068
+ ↓ success
1069
+ [TwoWaySwitch on success]
1070
+ exec_false → [Slack: &quot;Docker build FAILED&quot;]
1071
+ exec_true →
1072
+ [Run Command: f&quot;docker push {image_tag}&quot;]
1073
+ [Run Command: f&quot;ssh {STAGING_HOST} 'docker pull {image_tag} &amp;&amp; docker-compose up -d'&quot;]
1074
+ [Run Command: &quot;pytest tests/smoke/ --base-url=https://staging.example.com&quot;]
1075
+ ↓ success, stdout
1076
+ [TwoWaySwitch on success]
1077
+ exec_true → [Slack: &quot;Deploy SUCCEEDED — {image_tag}&quot;]
1078
+ exec_false → [Slack: &quot;Smoke tests FAILED — {image_tag}&quot;]
1079
+ [Run Command: &quot;ssh {STAGING_HOST} 'docker-compose down'&quot;]
1080
+ </code></pre>
1081
+ <h3 id="reading-environment-variables-node">Reading Environment Variables Node</h3>
1082
+ <pre><code class="language-python">import os
1083
+
1084
+ async def execute(self, inputs):
1085
+ keys = list(inputs.get(&quot;env_keys&quot;) or [])
1086
+ env_values = {}
1087
+ for key in keys:
1088
+ val = os.environ.get(key, &quot;&quot;)
1089
+ if not val:
1090
+ self.log_error(f&quot;Environment variable not set: {key}&quot;)
1091
+ env_values[key] = val
1092
+ return {
1093
+ &quot;env_values&quot;: env_values,
1094
+ &quot;PATH&quot;: os.environ.get(&quot;PATH&quot;, &quot;&quot;),
1095
+ &quot;HOME&quot;: os.environ.get(&quot;HOME&quot;, &quot;&quot;),
1096
+ &quot;all_env&quot;: dict(os.environ),
1097
+ &quot;exec_out&quot;: True,
1098
+ }
1099
+ </code></pre>
1100
+ <hr />
1101
+ <h2 id="use-case-12-background-services-and-workers">Use Case 12: Background Services and Workers</h2>
1102
+ <h3 id="running-headlessly">Running Headlessly</h3>
1103
+ <p>Vibrante-Node workflows can run without the UI using the headless execution API:</p>
1104
+ <pre><code class="language-python">import asyncio
1105
+ import json
1106
+ from src.core.models import WorkflowModel
1107
+ from src.core.graph import GraphManager
1108
+ from src.core.engine import NetworkExecutor
1109
+
1110
+
1111
+ def run_workflow(workflow_path: str) -&gt; None:
1112
+ with open(workflow_path) as f:
1113
+ data = json.load(f)
1114
+
1115
+ workflow = WorkflowModel.model_validate(data)
1116
+ gm = GraphManager()
1117
+ gm.from_model(workflow)
1118
+
1119
+ executor = NetworkExecutor(gm)
1120
+
1121
+ # Connect signals for headless logging
1122
+ executor.node_started.connect(lambda nid: print(f&quot;[START] {nid}&quot;))
1123
+ executor.node_finished.connect(lambda nid, r: print(f&quot;[DONE] {nid}&quot;))
1124
+ executor.node_error.connect(lambda nid, e: print(f&quot;[ERROR] {nid}: {e}&quot;))
1125
+
1126
+ asyncio.run(executor.run())
1127
+
1128
+
1129
+ if __name__ == &quot;__main__&quot;:
1130
+ import sys
1131
+ run_workflow(sys.argv[1])
1132
+ </code></pre>
1133
+ <h3 id="logging-to-file-vs-ui">Logging to File vs. UI</h3>
1134
+ <p>In headless mode, connect to engine signals and write to a log file:</p>
1135
+ <pre><code class="language-python">import logging
1136
+
1137
+ logging.basicConfig(
1138
+ filename=&quot;workflow.log&quot;,
1139
+ level=logging.INFO,
1140
+ format=&quot;%(asctime)s %(levelname)s %(message)s&quot;
1141
+ )
1142
+
1143
+ executor.node_error.connect(
1144
+ lambda nid, e: logging.error(f&quot;Node {nid} failed: {e}&quot;)
1145
+ )
1146
+ executor.node_finished.connect(
1147
+ lambda nid, r: logging.info(f&quot;Node {nid} finished&quot;)
1148
+ )
1149
+ </code></pre>
1150
+ <h3 id="restart-on-failure-pattern">Restart on Failure Pattern</h3>
1151
+ <p>Wrap the headless run in a retry loop:</p>
1152
+ <pre><code class="language-python">import time
1153
+
1154
+ MAX_RETRIES = 3
1155
+ RETRY_DELAY = 30 # seconds
1156
+
1157
+ for attempt in range(1, MAX_RETRIES + 1):
1158
+ try:
1159
+ run_workflow(&quot;my_workflow.json&quot;)
1160
+ print(&quot;Workflow completed successfully.&quot;)
1161
+ break
1162
+ except Exception as e:
1163
+ print(f&quot;Attempt {attempt} failed: {e}&quot;)
1164
+ if attempt &lt; MAX_RETRIES:
1165
+ print(f&quot;Retrying in {RETRY_DELAY}s...&quot;)
1166
+ time.sleep(RETRY_DELAY)
1167
+ else:
1168
+ print(&quot;All retries exhausted. Giving up.&quot;)
1169
+ raise
1170
+ </code></pre>
1171
+ <hr />
1172
+ <h2 id="thinking-in-node-based-logic">Thinking in Node-Based Logic</h2>
1173
+ <p>The hardest part of adopting node-based automation is learning to decompose problems into nodes. This section teaches a repeatable method.</p>
1174
+ <h3 id="step-1-identify-inputs-transforms-outputs">Step 1: Identify Inputs, Transforms, Outputs</h3>
1175
+ <p>Every automation task is a transformation from some starting data to some end result.</p>
1176
+ <p>Ask:<br />
1177
+ - <strong>What do I start with?</strong> Files, API responses, user input, database records, environment variables.<br />
1178
+ - <strong>What do I end with?</strong> Modified files, API calls made, database rows inserted, emails sent, logs written.<br />
1179
+ - <strong>What transforms happen in between?</strong> Filtering, formatting, computing, converting, validating.</p>
1180
+ <p>Map each answer to a category of node:<br />
1181
+ - Inputs → File Load, HTTP Request, Database Query, Python Script (static data)<br />
1182
+ - Transforms → Python Script, String nodes, Math nodes, List nodes<br />
1183
+ - Outputs → File Save, HTTP Request (POST/PUT), Database Query (INSERT/UPDATE), Email Notification</p>
1184
+ <h3 id="step-2-separate-data-flow-from-control-flow">Step 2: Separate Data Flow from Control Flow</h3>
1185
+ <p>Data flow (the white/colored wires) carries values between nodes. Control flow (exec wires, gray) determines which nodes run and in what order.</p>
1186
+ <p>Keep them separate in your thinking:</p>
1187
+ <p><strong>Data questions:</strong><br />
1188
+ - What value does this node need?<br />
1189
+ - Where does that value come from?<br />
1190
+ - What type should it be?</p>
1191
+ <p><strong>Control questions:</strong><br />
1192
+ - Does this node always run, or only sometimes?<br />
1193
+ - If step A fails, should step B still run?<br />
1194
+ - Are there loops? What is the exit condition?</p>
1195
+ <p>Once you have answered these separately, wiring becomes straightforward: data connections carry the values, exec connections carry the "go" signal.</p>
1196
+ <h3 id="step-3-group-reusable-logic-into-subgraphs">Step 3: Group Reusable Logic into Subgraphs</h3>
1197
+ <p>Any sequence of nodes you find yourself building more than once is a candidate for a GroupNode. Common reusable subgraphs:</p>
1198
+ <ul>
1199
+ <li>"Authenticate and return token" (auth pattern)</li>
1200
+ <li>"Load, validate, transform a JSON file" (ETL pattern)</li>
1201
+ <li>"Run command, check exit code, branch on failure" (CLI wrapper pattern)</li>
1202
+ <li>"Build an audit log entry and write it" (logging pattern)</li>
1203
+ </ul>
1204
+ <p>Select the nodes, press Ctrl+Shift+G, name the group, and it becomes a single reusable node.</p>
1205
+ <h3 id="step-4-connect-error-handling-branches">Step 4: Connect Error Handling Branches</h3>
1206
+ <p>Every workflow needs to handle failure. For each critical step, ask: "What happens if this fails?"</p>
1207
+ <p>The three patterns:</p>
1208
+ <p><strong>Silent fail with log:</strong> Return a safe default and <code>exec_out: True</code>. The chain continues; downstream nodes receive <code>None</code> or an empty value. Use for non-critical steps.</p>
1209
+ <pre><code class="language-python">try:
1210
+ pass # ... your work ...
1211
+ except Exception as e:
1212
+ self.log_error(f&quot;Step failed: {e}&quot;)
1213
+ return {&quot;result&quot;: None, &quot;exec_out&quot;: True} # chain continues
1214
+ </code></pre>
1215
+ <p><strong>Hard stop:</strong> Return <code>exec_out: False</code>. The chain stops at this node. Use when continuing would produce nonsense results.</p>
1216
+ <p><strong>Explicit error branch:</strong> Use <code>exec_fail</code> port (available on GroupNode and some special nodes). Connect error handling nodes (notification, rollback, cleanup) to <code>exec_fail</code>. Use for recoverable errors where you want to take remediation action.</p>
1217
+ <p>Build the happy path first, then add error branches. Use TwoWaySwitch with a <code>success</code> bool to route to success or failure paths when a node doesn't have an <code>exec_fail</code> pin.</p>
1218
+ <h3 id="decision-framework-when-to-use-which-node">Decision Framework: When to Use Which Node</h3>
1219
+ <table>
1220
+ <thead>
1221
+ <tr>
1222
+ <th>Situation</th>
1223
+ <th>Node to Use</th>
1224
+ </tr>
1225
+ </thead>
1226
+ <tbody>
1227
+ <tr>
1228
+ <td>Run arbitrary Python</td>
1229
+ <td>Python Script</td>
1230
+ </tr>
1231
+ <tr>
1232
+ <td>Repeat for each item in a list</td>
1233
+ <td>ForEach</td>
1234
+ </tr>
1235
+ <tr>
1236
+ <td>Repeat until a condition</td>
1237
+ <td>WhileLoop</td>
1238
+ </tr>
1239
+ <tr>
1240
+ <td>Choose between two exec paths</td>
1241
+ <td>TwoWaySwitch</td>
1242
+ </tr>
1243
+ <tr>
1244
+ <td>Share a value across disconnected nodes</td>
1245
+ <td>SetVariable / GetVariable</td>
1246
+ </tr>
1247
+ <tr>
1248
+ <td>Group reusable logic</td>
1249
+ <td>GroupNode (Ctrl+Shift+G)</td>
1250
+ </tr>
1251
+ <tr>
1252
+ <td>Inspect intermediate values</td>
1253
+ <td>Console Print</td>
1254
+ </tr>
1255
+ <tr>
1256
+ <td>Make an HTTP call</td>
1257
+ <td>HTTP Request</td>
1258
+ </tr>
1259
+ <tr>
1260
+ <td>Read/write a file</td>
1261
+ <td>File Load / File Save</td>
1262
+ </tr>
1263
+ <tr>
1264
+ <td>Run a shell command</td>
1265
+ <td>Run Command (custom)</td>
1266
+ </tr>
1267
+ <tr>
1268
+ <td>Query a database</td>
1269
+ <td>Database Query (custom)</td>
1270
+ </tr>
1271
+ <tr>
1272
+ <td>Call an AI model</td>
1273
+ <td>LLM Text Generation (custom)</td>
1274
+ </tr>
1275
+ <tr>
1276
+ <td>Wait before continuing</td>
1277
+ <td>Timer Delay (custom)</td>
1278
+ </tr>
1279
+ <tr>
1280
+ <td>Collapse a complex section</td>
1281
+ <td>GroupNode</td>
1282
+ </tr>
1283
+ </tbody>
1284
+ </table>
1285
+ <nav class="page-nav">
1286
+ <a class="page-nav-link prev" href="12_examples_library.html"><span class="page-nav-label">Previous</span><span class="page-nav-title">Examples Library</span></a>
1287
+ <a class="page-nav-link next" href="14_custom_nodes_api.html"><span class="page-nav-label">Next</span><span class="page-nav-title">Custom Nodes API</span></a>
1288
+ </nav>
1289
+ <section class="licence-attribution" style="margin-top:40px;padding-top:14px;border-top:1px solid #313244;font-size:.82em;color:#a6adc8">
1290
+ <p>Documentation &amp;copy; 2024&amp;ndash;2026 Mahmoud Kamal (KamalTD), licensed under
1291
+ <a href="https://creativecommons.org/licenses/by/4.0/" rel="license">CC BY 4.0</a>.
1292
+ <a href="../LICENSE.txt">Full licence notice</a>.</p>
1293
+ <p>Search and syntax highlighting load <a href="https://lunrjs.com/">lunr.js</a> 2.3.9 (MIT)
1294
+ and <a href="https://highlightjs.org/">highlight.js</a> 11.9.0 (BSD-3-Clause) from
1295
+ cdn.jsdelivr.net at view time; neither library is redistributed with these files.</p>
1296
+ </section>
1297
+ </div>
1298
+ </main>
1299
+
1300
+ <!-- ── TOC ────────────────────────────────────────────────────────────── -->
1301
+ <aside class="toc">
1302
+ <div class="toc-title">On this page</div>
1303
+ <a class="toc-link toc-h2" href="#why-node-based-logic-beats-linear-scripts">Why Node-Based Logic Beats Linear Scripts</a>
1304
+ <a class="toc-link toc-h2" href="#the-async-advantage">The Async Advantage</a>
1305
+ <a class="toc-link toc-h2" href="#use-case-1-file-processing-and-batch-operations">Use Case 1: File Processing and Batch Operations</a>
1306
+ <a class="toc-link toc-h3" href="#the-problem">The Problem</a>
1307
+ <a class="toc-link toc-h3" href="#why-node-based">Why Node-Based</a>
1308
+ <a class="toc-link toc-h3" href="#nodes-to-use">Nodes to Use</a>
1309
+ <a class="toc-link toc-h3" href="#custom-node-build-new-name">Custom Node: Build New Name</a>
1310
+ <a class="toc-link toc-h3" href="#custom-node-copy-file">Custom Node: Copy File</a>
1311
+ <a class="toc-link toc-h2" href="#use-case-2-folder-monitoring-system">Use Case 2: Folder Monitoring System</a>
1312
+ <a class="toc-link toc-h3" href="#the-problem_1">The Problem</a>
1313
+ <a class="toc-link toc-h3" href="#pattern-poll-process">Pattern: Poll + Process</a>
1314
+ <a class="toc-link toc-h3" href="#using-watchdog-inside-a-node">Using Watchdog Inside a Node</a>
1315
+ <a class="toc-link toc-h3" href="#looping-pattern-for-continuous-monitoring">Looping Pattern for Continuous Monitoring</a>
1316
+ <a class="toc-link toc-h2" href="#use-case-3-image-processing-pipeline">Use Case 3: Image Processing Pipeline</a>
1317
+ <a class="toc-link toc-h3" href="#the-problem_2">The Problem</a>
1318
+ <a class="toc-link toc-h3" href="#nodes-to-use_1">Nodes to Use</a>
1319
+ <a class="toc-link toc-h3" href="#watermark-node-code">Watermark Node Code</a>
1320
+ <a class="toc-link toc-h2" href="#use-case-4-data-transformation-workflows">Use Case 4: Data Transformation Workflows</a>
1321
+ <a class="toc-link toc-h3" href="#the-problem_3">The Problem</a>
1322
+ <a class="toc-link toc-h3" href="#why-nodes-beat-pandas-scripts">Why Nodes Beat pandas Scripts</a>
1323
+ <a class="toc-link toc-h3" href="#workflow-structure">Workflow Structure</a>
1324
+ <a class="toc-link toc-h3" href="#parse-csv-node">Parse CSV Node</a>
1325
+ <a class="toc-link toc-h3" href="#compute-metric-node">Compute Metric Node</a>
1326
+ <a class="toc-link toc-h2" href="#use-case-5-api-requests-and-web-automation">Use Case 5: API Requests and Web Automation</a>
1327
+ <a class="toc-link toc-h3" href="#the-problem_4">The Problem</a>
1328
+ <a class="toc-link toc-h3" href="#chain-pattern-auth-fetch-transform-act-notify">Chain Pattern: Auth → Fetch → Transform → Act → Notify</a>
1329
+ <a class="toc-link toc-h3" href="#extract-token-node">Extract Token Node</a>
1330
+ <a class="toc-link toc-h3" href="#filter-by-assignee-node">Filter by Assignee Node</a>
1331
+ <a class="toc-link toc-h2" href="#use-case-6-aillm-workflow-orchestration">Use Case 6: AI/LLM Workflow Orchestration</a>
1332
+ <a class="toc-link toc-h3" href="#the-problem_5">The Problem</a>
1333
+ <a class="toc-link toc-h3" href="#chain-of-llm-prompts">Chain of LLM Prompts</a>
1334
+ <a class="toc-link toc-h3" href="#passing-context-with-setvariablegetvariable">Passing Context with SetVariable/GetVariable</a>
1335
+ <a class="toc-link toc-h2" href="#use-case-7-local-automation-tools">Use Case 7: Local Automation Tools</a>
1336
+ <a class="toc-link toc-h3" href="#the-problem_6">The Problem</a>
1337
+ <a class="toc-link toc-h3" href="#subprocess-node-pattern">Subprocess Node Pattern</a>
1338
+ <a class="toc-link toc-h3" href="#build-pipeline-workflow">Build Pipeline Workflow</a>
1339
+ <a class="toc-link toc-h2" href="#use-case-8-database-operations">Use Case 8: Database Operations</a>
1340
+ <a class="toc-link toc-h3" href="#the-problem_7">The Problem</a>
1341
+ <a class="toc-link toc-h3" href="#workflow-structure_1">Workflow Structure</a>
1342
+ <a class="toc-link toc-h3" href="#aggregation-node">Aggregation Node</a>
1343
+ <a class="toc-link toc-h2" href="#use-case-9-task-scheduling">Use Case 9: Task Scheduling</a>
1344
+ <a class="toc-link toc-h3" href="#the-problem_8">The Problem</a>
1345
+ <a class="toc-link toc-h3" href="#timer-delay-node">Timer / Delay Node</a>
1346
+ <a class="toc-link toc-h3" href="#polling-loop-workflow">Polling Loop Workflow</a>
1347
+ <a class="toc-link toc-h3" href="#integration-with-system-schedulers">Integration with System Schedulers</a>
1348
+ <a class="toc-link toc-h2" href="#use-case-10-multi-step-business-logic">Use Case 10: Multi-Step Business Logic</a>
1349
+ <a class="toc-link toc-h3" href="#the-problem_9">The Problem</a>
1350
+ <a class="toc-link toc-h3" href="#approval-workflow">Approval Workflow</a>
1351
+ <a class="toc-link toc-h3" href="#exec_fail-branches">exec_fail Branches</a>
1352
+ <a class="toc-link toc-h2" href="#use-case-11-devops-and-build-automation">Use Case 11: DevOps and Build Automation</a>
1353
+ <a class="toc-link toc-h3" href="#the-problem_10">The Problem</a>
1354
+ <a class="toc-link toc-h3" href="#workflow">Workflow</a>
1355
+ <a class="toc-link toc-h3" href="#reading-environment-variables-node">Reading Environment Variables Node</a>
1356
+ <a class="toc-link toc-h2" href="#use-case-12-background-services-and-workers">Use Case 12: Background Services and Workers</a>
1357
+ <a class="toc-link toc-h3" href="#running-headlessly">Running Headlessly</a>
1358
+ <a class="toc-link toc-h3" href="#logging-to-file-vs-ui">Logging to File vs. UI</a>
1359
+ <a class="toc-link toc-h3" href="#restart-on-failure-pattern">Restart on Failure Pattern</a>
1360
+ <a class="toc-link toc-h2" href="#thinking-in-node-based-logic">Thinking in Node-Based Logic</a>
1361
+ <a class="toc-link toc-h3" href="#step-1-identify-inputs-transforms-outputs">Step 1: Identify Inputs, Transforms, Outputs</a>
1362
+ <a class="toc-link toc-h3" href="#step-2-separate-data-flow-from-control-flow">Step 2: Separate Data Flow from Control Flow</a>
1363
+ <a class="toc-link toc-h3" href="#step-3-group-reusable-logic-into-subgraphs">Step 3: Group Reusable Logic into Subgraphs</a>
1364
+ <a class="toc-link toc-h3" href="#step-4-connect-error-handling-branches">Step 4: Connect Error Handling Branches</a>
1365
+ <a class="toc-link toc-h3" href="#decision-framework-when-to-use-which-node">Decision Framework: When to Use Which Node</a>
1366
+ </aside>
1367
+
1368
+ <script src="https://cdn.jsdelivr.net/npm/highlight.js@11.9.0/highlight.min.js"></script>
1369
+ <script src="https://cdn.jsdelivr.net/npm/lunr@2.3.9/lunr.min.js"></script>
1370
+ <script>
1371
+ // ── Search ──────────────────────────────────────────────────────────────
1372
+ let _idx = null, _docs = [];
1373
+
1374
+ async function initSearch() {
1375
+ try {
1376
+ const base = document.getElementById('portal-base').dataset.base;
1377
+ const resp = await fetch(base + 'search.json');
1378
+ _docs = await resp.json();
1379
+ _idx = lunr(function() {
1380
+ this.ref('id');
1381
+ this.field('title', { boost: 10 });
1382
+ this.field('body');
1383
+ _docs.forEach((d, i) => {
1384
+ this.add({ id: i, title: d.title, body: d.body });
1385
+ });
1386
+ });
1387
+ } catch(e) { console.warn('Search index not available', e); }
1388
+ }
1389
+
1390
+ function doSearch(q) {
1391
+ const box = document.getElementById('search-results');
1392
+ if (!q || q.length < 2) { box.classList.remove('visible'); return; }
1393
+ if (!_idx) { box.innerHTML = '<div class="search-no-results">Search index loading…</div>'; box.classList.add('visible'); return; }
1394
+ const results = _idx.search(q + '~1');
1395
+ if (!results.length) {
1396
+ box.innerHTML = '<div class="search-no-results">No results for "' + q + '"</div>';
1397
+ box.classList.add('visible'); return;
1398
+ }
1399
+ box.innerHTML = results.slice(0, 8).map(r => {
1400
+ const d = _docs[r.ref];
1401
+ const excerpt = d.body.substring(0, 140).replace(/[#*`]/g, '').trim() + '…';
1402
+ return `<a class="search-result-item" href="${d.url}">
1403
+ <div class="search-result-title">${d.title}</div>
1404
+ <div class="search-result-excerpt">${excerpt}</div>
1405
+ </a>`;
1406
+ }).join('');
1407
+ box.classList.add('visible');
1408
+ }
1409
+
1410
+ document.addEventListener('DOMContentLoaded', () => {
1411
+ initSearch();
1412
+ const inp = document.getElementById('search-input');
1413
+ if (inp) {
1414
+ inp.addEventListener('input', e => doSearch(e.target.value));
1415
+ inp.addEventListener('keydown', e => { if (e.key === 'Escape') { e.target.value=''; document.getElementById('search-results').classList.remove('visible'); }});
1416
+ }
1417
+ document.addEventListener('click', e => {
1418
+ if (!e.target.closest('.search-wrap')) document.getElementById('search-results')?.classList.remove('visible');
1419
+ });
1420
+ // Keyboard shortcut: / to focus search
1421
+ document.addEventListener('keydown', e => {
1422
+ if (e.key === '/' && !['INPUT','TEXTAREA'].includes(document.activeElement.tagName)) {
1423
+ e.preventDefault(); document.getElementById('search-input')?.focus();
1424
+ }
1425
+ });
1426
+
1427
+ // ── TOC active section ──────────────────────────────────────────────
1428
+ const tocLinks = document.querySelectorAll('.toc-link');
1429
+ const headings = document.querySelectorAll('h2[id],h3[id],h4[id]');
1430
+ if (tocLinks.length && headings.length) {
1431
+ const obs = new IntersectionObserver(entries => {
1432
+ entries.forEach(entry => {
1433
+ if (entry.isIntersecting) {
1434
+ tocLinks.forEach(l => l.classList.remove('active'));
1435
+ const link = document.querySelector(`.toc-link[href="#${entry.target.id}"]`);
1436
+ if (link) link.classList.add('active');
1437
+ }
1438
+ });
1439
+ }, { rootMargin: '-20% 0px -70% 0px' });
1440
+ headings.forEach(h => obs.observe(h));
1441
+ }
1442
+
1443
+ // ── Copy buttons ────────────────────────────────────────────────────
1444
+ document.querySelectorAll('pre').forEach(pre => {
1445
+ const btn = document.createElement('button');
1446
+ btn.className = 'copy-btn'; btn.textContent = 'Copy';
1447
+ btn.addEventListener('click', () => {
1448
+ const code = pre.querySelector('code');
1449
+ navigator.clipboard.writeText(code ? code.innerText : pre.innerText).then(() => {
1450
+ btn.textContent = 'Copied!'; btn.classList.add('copied');
1451
+ setTimeout(() => { btn.textContent = 'Copy'; btn.classList.remove('copied'); }, 2000);
1452
+ });
1453
+ });
1454
+ pre.style.position = 'relative';
1455
+ pre.appendChild(btn);
1456
+ });
1457
+
1458
+ // ── Sidebar active ──────────────────────────────────────────────────
1459
+ const cur = window.location.pathname.split('/').pop();
1460
+ document.querySelectorAll('.sidebar-link').forEach(l => {
1461
+ if (l.getAttribute('href') === cur || l.getAttribute('href').endsWith(cur)) l.classList.add('active');
1462
+ });
1463
+
1464
+ // ── highlight.js ────────────────────────────────────────────────────
1465
+ if (window.hljs) {
1466
+ hljs.configure({ ignoreUnescapedHTML: true });
1467
+ hljs.highlightAll();
1468
+ }
1469
+ });
1470
+ </script>
1471
+ </body>
1472
+ </html>