Agents & Automation

How to reuse one n8n agent across workflows and build them with Assistant

Define an n8n agent once, call its published version from multiple workflows and use Assistant to build and test the steps around it.

Finley · FoxAI World3 min read
18
Finley holds a book and gestures toward workflow diagrams and a robot beneath the n8n logo.One agent, many flows

Conceptual cover created with AI.

A support request arrives through a form. Another comes in by email. If both need the same rules for sorting requests, you can define one agent in n8n and call it from both workflows. To build the workflows that receive those requests, you can describe the steps to n8n Assistant and review what it puts together.

Define the agent once

An agent uses an AI model to decide which steps and tools a request needs. In the Agents area, you choose the model, write the instructions and attach the tools. The agent has its own sessions, which keep track of each conversation. You can use the AI Agent node when you want AI to work as a step within a single workflow. A node is one step on the workflow canvas.

Finley sits at a laptop beside a robot, with workflow diagrams and a server behind them.
AI-generated conceptual illustration.

Connect the workflows to the published version

Add the Message an Agent node to each workflow and select the published agent. The node passes along a message built from workflow data, such as the text of the support request. The next node can then use the reply. A connected Slack channel and a scheduled task can also use the same published agent.

If the sorting rules change, edit the agent’s draft and test it in Preview. When you publish again, the workflows and channels that call the agent pick up the new version. That saves you from updating the same instructions in two places. I’d test an example from each intake route before publishing, since a rule that works for a structured form may behave differently on a free-form email.

Decide where a person needs to step in

The agent can also call a workflow as a tool. In our support example, one workflow could save a draft reply, while the tool that sends the reply could require approval. If the agent tries to use that tool, it pauses until someone approves or rejects the action. The session log lets you see which tools the agent called and what each call returned.

Build and test the surrounding workflow in chat

Tell n8n Assistant what starts the workflow and what it should do. It can assemble editable nodes, run the workflow, inspect errors and help fix them. Before publishing, open the execution log and check what reached each node. Try a request that follows the usual path and one with missing information to check where the workflow sends it or how it handles the error.

Check what your installation needs

n8n lists Agents as a preview on all Cloud plans and on all self-hosted plans from version 2.32.3. You can build an agent manually without Assistant. To run Assistant on your own server, you need an API key from a supported model provider and a sandbox, an isolated environment for running code.

Ask AI about this article

Opens in a new tab with the question filled in.

Sources and research

Written by FoxAI World. The cover and illustrations are AI-generated conceptual artwork.

Your favourites

This list stays in this browser on your device. No account is needed, and other visitors cannot see it.

Use a story’s bookmark button to add your first favourite.