Custom Node as an AI tool

,

Describe the problem/error/question

I am working on a custom node that AI tool would need to use. It’s an SearXNG tool:

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.

What is the error message (if any)?

Once I run a test on the workflow, it fails after the trigger with the error:

Unrecognized node type: n8n-nodes-searxng.searxngTool
Error: Unrecognized node type: n8n-nodes-searxng.searxngTool
    at LazyPackageDirectoryLoader.getNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/DirectoryLoader.js:160:15)
    at LoadNodesAndCredentials.getNode (/usr/local/lib/node_modules/n8n/dist/load-nodes-and-credentials.js:272:23)
    at NodeTypes.getByNameAndVersion (/usr/local/lib/node_modules/n8n/dist/node-types.js:36:51)
    at new Workflow (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:56:39)
    at TestWebhooks.toWorkflow (/usr/local/lib/node_modules/n8n/dist/webhooks/test-webhooks.js:290:16)
    at TestWebhooks.needsWebhook (/usr/local/lib/node_modules/n8n/dist/webhooks/test-webhooks.js:169:31)
    at WorkflowExecutionService.executeManually (/usr/local/lib/node_modules/n8n/dist/workflows/workflow-execution.service.js:114:58)
    at WorkflowsController.runManually (/usr/local/lib/node_modules/n8n/dist/workflows/workflows.controller.js:293:16)
    at handler (/usr/local/lib/node_modules/n8n/dist/decorators/controller.registry.js:93:24)
    at /usr/local/lib/node_modules/n8n/dist/response-helper.js:110:26

Please share your workflow

Share the output returned by the last node

No data was returned. Just trigger it with any chat input and it fails immediately.

Information on your n8n setup

  • n8n version: 1.74.1
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main): what’s this?
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Docker
1 Like

It appeared there was a code change that blocks custom nodes to be used in the n8n.
It was done because the AI node is still under development.

Refer to this link:

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.