Skip to main content

Tool Node πŸ”§

Extends an AI Task with callable tools for function calling / agent capabilities.

Node type: tool Category: AI Actor: (depends on tool subtype)


Description​

Tool nodes are attached to an AI Task via toolConnection links. When the AI decides to use a tool (via the LLM's function calling capability), the engine executes the connected Tool node and returns the result to the AI.

This enables the AI Task to act as an intelligent agent that can:

  • Search a knowledge base for answers
  • Query a database
  • Call external REST APIs
  • Send emails
  • Execute web searches
  • Manage files

The AI orchestrates which tools to use, in what order, and with what parameters β€” you only configure the tools and connect them.


Tool Subtypes​

There are 7 tool subtypes, each functioning like its equivalent Service Task but callable by the AI:

SubtypeIconIntegration
EmailπŸ“¬Send email via mail provider
SQLπŸ”Query database
REST APIπŸ”ŒCall external REST API
MCPπŸ”—Call Model Context Protocol server
Knowledge BaseπŸ“šSearch vector store / RAG collection
Web SearchπŸ”Search the web
File ManagerπŸ“Read, create, update, or delete files

Connecting Tools to AI Task​

In the workflow designer:

  1. Add an AI Task node
  2. Add one or more Tool nodes nearby
  3. Draw toolConnection links from the AI Task to each Tool
  4. Configure each Tool's properties

The AI Task's LLM receives descriptions of all connected tools and decides when and how to use them.


Email Tool​

Icon: πŸ“¬

PropertyRequiredDescription
mailConnectionIdYesEmail integration ID
recipientAddressYesRecipient (AI fills this dynamically)
subjectYesEmail subject
bodyYesEmail body
contentTypeNotext/plain or text/html

The AI provides the specific values for recipient, subject, and body when it calls this tool.


SQL Tool​

Icon: πŸ”

PropertyRequiredDescription
databaseConnectionIdYesDatabase integration ID
modeNodirect (AI writes SQL) or ai (natural language)
questionNoTemplate question if using AI mode
outputVariableNoVariable name for results
transactionalNoWrap in transaction

The AI generates the SQL query dynamically based on the user's question and the database schema.


REST API Tool​

Icon: πŸ”Œ

PropertyRequiredDescription
restApiConnectionIdYesREST API integration ID
bodyNoRequest body template

The AI determines the endpoint path, method, and body when calling this tool.


MCP Tool​

Icon: πŸ”—

PropertyRequiredDescription
mcpConnectionIdYesMCP server integration ID
toolMethodsFilterNoComma-separated list of allowed MCP tool methods

MCP (Model Context Protocol) allows connecting to any MCP-compatible server. The AI can invoke any of the server's registered tools.


Knowledge Base Tool​

Icon: πŸ“š

PropertyRequiredDescription
collectionIdYesVector store collection ID

The AI searches the knowledge base with a semantic query generated from the user's question. Retrieved documents are returned to the AI as context.

This is the standard Retrieval-Augmented Generation (RAG) pattern:

  1. User asks a question
  2. AI generates a search query
  3. Knowledge Base Tool retrieves relevant documents
  4. AI generates an answer grounded in the retrieved content

Web Search Tool​

Icon: πŸ”

PropertyRequiredDescription
providerYesgoogle or tavily
apiKeyYesSearch provider API key
searchEngineIdConditionalGoogle Custom Search Engine ID (required for Google)
endpointNoCustom search endpoint

The AI generates the search query and receives the search results as context.


File Manager Tool​

Icon: πŸ“

PropertyRequiredDescription
actionYesread, create, update, delete, or list
fileIdNoFile identifier (AI provides dynamically)
filenameNoFile name
formatNoFile format
sourceFormatNoSource format for conversions
contentTypeNoMIME type
processFilesNoWhether to process/parse file content

Example: AI Support Agent with Multiple Tools​

[AI Task: Support Agent]
β”‚
β”œβ”€β”€toolConnection──► [Knowledge Base Tool: Support Docs Collection]
β”‚
β”œβ”€β”€toolConnection──► [SQL Tool: Customer Database]
β”‚
└──toolConnection──► [REST API Tool: Ticket System]

The AI receives the customer's question, searches the knowledge base for relevant articles, queries the database for the customer's history, creates a ticket via the REST API, and then generates a comprehensive response β€” all orchestrated automatically.


How the AI Uses Tools​

The AI Task sends the LLM a description of each connected tool (name, description, parameters). When the LLM decides to use a tool:

  1. LLM outputs a tool call (JSON with tool name + arguments)
  2. Engine executes the corresponding Tool node
  3. Tool result is sent back to the LLM
  4. LLM continues its reasoning with the tool result
  5. Repeat until LLM generates a final text response

This loop is handled automatically by the engine β€” no manual wiring needed.


Best Practices​

  • Give each Tool node a descriptive name β€” the AI uses the node name as the tool description
  • Connect only tools that are relevant to the AI's task β€” don't connect 10 tools if only 2 are needed
  • For Knowledge Base tools, ensure the collection is up to date and relevant
  • Use toolMethodsFilter on MCP tools to restrict which server methods the AI can call
  • Monitor tool usage in execution logs β€” the AI Task logs each tool call and its result