Skip to content

[DRAFT] feat(tool): Add N8n Tool node#2075

Closed
everettbu wants to merge 1 commit into
masterfrom
feat/n8n-tool
Closed

[DRAFT] feat(tool): Add N8n Tool node#2075
everettbu wants to merge 1 commit into
masterfrom
feat/n8n-tool

Conversation

@everettbu

Copy link
Copy Markdown

Mirror of n8n-io/n8n#20792
Original author: idirouhab


Summary

This PR adds a new ToolN8n node to the LangChain package, allowing AI agents to execute n8n workflows as part of their tool-calling capabilities. This integration enables LangChain agents to leverage n8n's extensive
automation capabilities within their reasoning and action loops.

Key Features:

  • Execute n8n workflows from LangChain agents
  • Pass dynamic input data to workflows

Changes:

  • Added ToolN8n.node.ts with workflow execution logic
  • Added n8n.svg icon for the tool
  • Updated package.json to register the new tool node

Testing:

  1. Create a simple n8n workflow with a AI Agent node
  2. Add the ToolN8n node to the AI Agent
  3. Write a System prompt that that uses the n8n Tool attached
  4. Verify the agent can successfully call the workflow and receive results

Related Linear tickets, Github issues, and Community forum posts

Docs: n8n-io/n8n-docs#3770

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

  Enables LangChain agents to execute n8n workflows as tools
@everettbu everettbu added the n8n team Authored by the n8n team label Feb 23, 2026
@everettbu

Copy link
Copy Markdown
Author

Upstream PR was closed or merged. Code is synced via branch mirror.

@everettbu everettbu closed this Feb 23, 2026
@everettbu
everettbu deleted the feat/n8n-tool branch February 23, 2026 21:06
@everettbu
everettbu restored the feat/n8n-tool branch February 23, 2026 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

n8n team Authored by the n8n team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants