How to write an AI agent tool

I have written a community N8N node for most popular small business accounting software in Czech Republic and Slovakia.

How do I make it so it becomes available an AI Agent tool? Do I need to write it as an LangChain agent? Is there any example which I can leverage to rewrite it? What’s the process?

I can make it as a part of another workflow and let the AI Agent call the workflow yet this is extra work.

Thanks!

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:
n8n version: 1.88.0
Database: SQLite
n8n in docker and local dev
OS: Ubuntu 24.04

I am trying to build a Tool for AI Agent and I can’t seem to find any guide.

Were you ever able to find any information about converting a node to a tool? I am also interested in this topic.