Workflow Tool
ai.tool_workflow · version 2 · AI sub-node
Lets the model run another workflow.
Ports
| Port | Kind | Label | Required | Max connections |
|---|---|---|---|---|
| output 0 | ai_tool |
Credentials
This node uses no credentials.
Parameters
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
name | string | Tool Name. | |||
description | string | yes | Tells the model what the workflow does and when to use it. | ||
source | options | "database" | One of database, parameter. | ||
workflowId | resource_locator | source = database | Workflow. | ||
workflowJson | json | source = parameter | Workflow JSON. | ||
workflowInputs | resource_mapper | Workflow Inputs. Values passed to the workflow; use $fromAI() for values the model decides. | |||
responsePropertyName | string | "response" | Field to Return. | ||
fields | fixed_collection | Extra Fields. | |||
fields.values | collection | Field. | |||
fields.values.name | string | ||||
fields.values.type | options | "stringValue" | One of stringValue, numberValue, booleanValue, arrayValue, objectValue. | ||
fields.values.stringValue | string | Value. | |||
specifyInputSchema | boolean | false | Define Argument Schema. | ||
schemaType | options | "fromJson" | specifyInputSchema = true | Schema Source. One of fromJson, manual. | |
jsonSchemaExample | json | schemaType = fromJson; specifyInputSchema = true | JSON Example. | ||
inputSchema | json | schemaType = manual; specifyInputSchema = true | JSON 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 type | Version range | Status | Fixtures |
|---|---|---|---|
@n8n/n8n-nodes-langchain.toolWorkflow | 1 | unverified | |
@n8n/n8n-nodes-langchain.toolWorkflow | >=2 <3 | unverified |