N8N avançado: modularize workflows, controle bots com Subworkflows e Redis

🚀 Take advantage of Rocketseat's paid courses, available for free until November 3rd https://rseat.in/aproveite-curso-grat... • Clean Code - React & Node • SEO for Devs • API with Bun • Social Media Positioning Learn advanced techniques to optimize your N8N projects, focusing on modularization and bot control. Learn from Mayk Brito how to break complex flows into reusable subworkflows, improving organization and performance. We explore the implementation of robust 'Human in the Loop' logic using Redis as state memory, ensuring your bots know when to pause for human interaction. You will learn: • Workflow Modularization: how to create and integrate subworkflows in N8N to organize your code. • Data Passing: understand how payloads and JavaScript expressions are used to communicate between workflows. • Bot Control with Redis: Implement a temporary blocking system to prevent AI from interrupting human conversations. • Performance Optimization: Tips to make your N8N workflows more efficient and scalable. • Best Practices: Adopt a modular architecture to facilitate maintenance and development. Come optimize your N8N workflows 👇 00:00 - 00:35 - Why modularize N8N workflows? 00:35 - 00:57 - How to create an N8N subworkflow? 00:57 - 01:32 - Which trigger to use in the subworkflow? 01:32 - 02:02 - What data does the subworkflow need? 02:02 - 02:55 - How to pass data to the subworkflow? 02:55 - 03:24 - How to test the N8N subworkflow? 03:24 - 04:08 - How to integrate a subworkflow into the workflow? 04:08 - 04:39 - How to optimize the main workflow? 04:39 - 05:37 - What is Human in Loop (N8N)? 05:37 - 06:31 - How to configure Human in Loop? 06:31 - 07:28 - What is the payload for Human in Loop? 07:28 - 08:17 - What does "from me" mean in N8N? 08:52 - 09:23 - How to block a bot with Redis? 09:23 - 10:33 - How to configure Redis SET (N8N)? 11:12 - 12:13 - How to set a blocking time? 12:13 - 13:12 - How to check if a bot is blocked? 13:12 - 14:12 - How to use Redis GET (N8N)? 14:12 - 15:03 - How to unify flow with SET? 15:03 - 15:35 - What logic for "isBlocked"? 15:35 - 16:27 - How does the blocking logic work? 16:27 - 17:10 - How to delete a Redis key (N8N)? 17:10 - 17:53 - How to validate Human in Loop? ----- Connect with 500,000 devs and take it to the next level with our platform: https://rseat.in/rocketseat_ Sign up on our platform: https://rseat.in/rocketseat_ Join over 392,000 devs in our Discord community:   / discord   Follow Rocketseat on social media: TikTok: @rocketseat Facebook: @rocketseat Instagram: @rocketseat