Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Workflow Tool

ai.tool_workflow · version 2 · AI sub-node

Lets the model run another workflow.

Ports

PortKindLabelRequiredMax connections
output 0ai_tool

Credentials

This node uses no credentials.

Parameters

NameTypeDefaultRequiredShown whenDescription
namestringTool Name.
descriptionstringyesTells the model what the workflow does and when to use it.
sourceoptions"database"One of database, parameter.
workflowIdresource_locatorsource = databaseWorkflow.
workflowJsonjsonsource = parameterWorkflow JSON.
workflowInputsresource_mapperWorkflow Inputs. Values passed to the workflow; use $fromAI() for values the model decides.
responsePropertyNamestring"response"Field to Return.
fieldsfixed_collectionExtra Fields.
fields.valuescollectionField.
fields.values.namestring
fields.values.typeoptions"stringValue"One of stringValue, numberValue, booleanValue, arrayValue, objectValue.
fields.values.stringValuestringValue.
specifyInputSchemabooleanfalseDefine Argument Schema.
schemaTypeoptions"fromJson"specifyInputSchema = trueSchema Source. One of fromJson, manual.
jsonSchemaExamplejsonschemaType = fromJson; specifyInputSchema = trueJSON Example.
inputSchemajsonschemaType = manual; specifyInputSchema = trueJSON Schema.

Import

Exported workflows that use these node types import to this node. Unverified ranges import with a parameter warning until parity fixtures confirm them; see Migrating.

Source typeVersion rangeStatusFixtures
@n8n/n8n-nodes-langchain.toolWorkflow1unverified
@n8n/n8n-nodes-langchain.toolWorkflow>=2 <3unverified