-
Notifications
You must be signed in to change notification settings - Fork 13.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom Node as an AI tool #12593
Comments
Hey @ihor-sokoliuk, We have created an internal ticket to look into this which we will be tracking as "N8N-8101" |
This is intentional. We have a check here to only allow core nodes as Tools for now, until we are certain that the feature is mature enough to allow custom nodes as well. Considering that a lot of the AI related interfaces in the engine aren't stable enough yet, If we start allowing custom nodes as tool now, we'd have to maintain backward compatibility for all those nodes. |
@netroy Thank you for your prompt response! Can I track the progress somewhere? So that I would know when I can try this new feature |
We are in the middle of re-architecting some of the AI nodes support code, but there is no clear ETA that I can share with you. In the meanwhile, if you want to still use the SearXNG node as tool, you could fork the repo, remove the check for I linked above, and build a custom image from that. |
I've triggered a custom docker build on my fork here. |
@netroy Wow! It works like a charm! I planned to fork and adjust the logic but you made it first. I will keep using this docker image. Thank you so much! |
@ihor-sokoliuk Is that also allow to create custom nodes as Model? I want to create custom model that will enable prompt caching for Anthropic AI. It's super easy but I can't create node for that on current n8n. |
@hyroescom This issue is about using existing nodes as tools on AI agents. What you are asking for is a custom model nodes. These are completely unrelated things. |
@ihor-sokoliuk just FYI, I've also been testing a simple wrapper over the existing SearXNG tool from langchain for over a month now. Just opened a PR, in case you want to give it a try. |
Bug Description
I am working on a custom node that an AI tool would need to use. It’s a SearXNG tool:
https://www.npmjs.com/package/n8n-nodes-searxng
Analog to SerpApi. It performs a search request.
I can see the node in the list of AI tools after adding a usableAsTool: true to the node source code (like in NocoDB standard tool).
I can add the NocoDB as a tool and it works perfectly fine, but not the custom SearXNG node.
Once I run a test on the workflow, it fails after the trigger with the error:
To Reproduce
n8n-nodes-searxng
over n8n Web UIExpected behavior
AI Agent node works and calls the SearXNG tool.
Operating System
Official Docker Image (n8nio/n8n:next)
n8n Version
1.74.1
Node.js Version
20.18.0
Database
SQLite (default)
Execution mode
main (default)
The text was updated successfully, but these errors were encountered: