Templates / 🛠️ Auto workflow positioning

🛠️ Auto workflow positioning

Needs changes

by Lucas Peyrin ✓ · 2,846 views · created 2024-12-21 · Engineering

Needs changes. This template uses 2 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes), HTTP Request Tool (legacy). 2 breaking item(s) found. Static check, last run 2026-10-19.

What to replace before upgrading

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
AI Agent (v1.2)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
HTTP Request Tool (legacy)
Dummy Tool, Dummy Tool (1)
HTTP Request node connected to the AI Agent's Tool input

Nodes used (18)

AI AgentOpenAI Chat ModelSimple MemoryVector Store RetrieverSimple Vector StoreEmbeddings OpenAIQuestion and Answer ChainHTTP Request

What it does

Check Online Version ! https://n8n-tools.streamlit.app/ Who is it for? This workflow is perfect for n8n users who want to maintain clean and organized workflows without manually repositioning nodes. Whether you're building complex workflows or sharing them with a team, maintaining visual clarity is essential for efficiency and collaboration. This template automates the positioning process, saving time and ensuring consistent layout standards. --- How does it work? The template is divided into two parts: 1. Positioning Engine: - A webhook node kicks off the process by receiving a workflow ID. - Using the provided workflow ID, an n8n API node fetches the workflow details. - The fetched workflow is sent to a processing webhook that calculates optimized positions for the nodes. - Finally, an n8n API node updates the workflow with the newly positioned nodes, ensuring a clean and professional layout. 2. Reusable Positioning Block: - This is an HTTP Request node that can be seamlessly integrated into any workflow you create. When triggered, it sends the current workflow for automatic positioning via the first part of this template. --- How to set it up? 1. Enable n8n API Access: - Ensure that your n8n instance has API access enabled with the appropriate credentials. 2. Input Your n8n API URL and Credentials: - Open the template, locate the n8n API nodes, and update them with your instance API key. - Update the URL of the 'Magic Positioning' Http Request node to point to your n8n instance webhook URL. 3. Embed the Reusable Block: - Add the provided HTTP Request node to any of your workflows to instantly connect to the auto-positioning engine.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.