### Bug Description
When this node is used as part of a sub-workflow, which is …then invoked as a tool by the agent, the expected behavior is that after the agent calls this tool (the sub-workflow), the tool should pause the workflow, wait for the user's response via the email link, return the response result, and only then allow the agent to continue running. However, the current issue is that the tool does not wait for the user's response and instead returns empty directly.
### To Reproduce
1. set up two workflows
2. use the main workflow
3. When the main workflow calls the tool, it does not pause at the "send and wait respond" node.
main workflow:
{
"name": "test-send and wait",
"nodes": [
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"typeVersion": 1.3,
"position": [
-176,
-32
],
"id": "f7331164-ab24-478f-95e6-73d9bdc2d962",
"name": "When chat message received",
"webhookId": "9a6c6b11-6ec3-4455-837f-05117a8e3a78"
},
{
"parameters": {
"options": {
"systemMessage": "send message to user"
}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 2.2,
"position": [
16,
-32
],
"id": "18cd6744-19f3-46d1-a2fe-f858bbbd06fe",
"name": "AI Agent"
},
{
"parameters": {
"model": {
"__rl": true,
"value": "Qwen3-32B-FP8",
"mode": "list",
"cachedResultName": "Qwen3-32B-FP8"
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"typeVersion": 1.2,
"position": [
16,
128
],
"id": "0f4429b7-82b0-44eb-a35b-a1db333ea815",
"name": "OpenAI Chat Model",
"credentials": {
"openAiApi": {
"id": "cs1Rd1LtpcfevMoo",
"name": "OpenAi account"
}
}
},
{
"parameters": {
"description": "send message to user and wait for response",
"workflowId": {
"__rl": true,
"value": "e0d3VyGFoubbluxE",
"mode": "list",
"cachedResultName": "提交表单"
},
"workflowInputs": {
"mappingMode": "defineBelow",
"value": {
"chatInput": "={{$fromAI(\"message\")}}"
},
"matchingColumns": [
"chatInput"
],
"schema": [
{
"id": "chatInput",
"displayName": "chatInput",
"required": false,
"defaultMatch": false,
"display": true,
"canBeUsedToMatch": true,
"type": "string",
"removed": false
}
],
"attemptToConvertTypes": false,
"convertFieldsToString": false
}
},
"type": "@n8n/n8n-nodes-langchain.toolWorkflow",
"typeVersion": 2.2,
"position": [
160,
144
],
"id": "e003d5dd-79f8-4924-9415-84b4525ca2f9",
"name": "Call n8n Workflow Tool"
}
],
"pinData": {},
"connections": {
"When chat message received": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Call n8n Workflow Tool": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "6ad6068e-9d3a-459e-842e-f7afe1a0d6aa",
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "ad5f076847bac9c03ac45d59cc26c49fac2a4b8e4ac5d3505b733215458394d3"
},
"id": "7KyoV7Rvc4ZY2zxa",
"tags": []
}
sub workflow:
{
"name": "提交表单",
"nodes": [
{
"parameters": {
"workflowInputs": {
"values": [
{
"name": "chatInput"
}
]
}
},
"type": "n8n-nodes-base.executeWorkflowTrigger",
"typeVersion": 1.1,
"position": [
0,
0
],
"id": "40874358-a639-4af2-875d-6219bc5eff95",
"name": "When Executed by Another Workflow"
},
{
"parameters": {
"operation": "sendAndWait",
"fromEmail": "815178170@qq.com",
"toEmail": "z815178170@163.com",
"subject": "讨论班结果",
"message": "={{ $json.chatInput }}",
"approvalOptions": {
"values": {
"approvalType": "double",
"approveLabel": "继续讨论",
"disapproveLabel": "结束讨论"
}
},
"options": {}
},
"type": "n8n-nodes-base.emailSend",
"typeVersion": 2.1,
"position": [
208,
0
],
"id": "285e8983-08f5-441c-85ea-37d44ae77525",
"name": "SendAndWait email",
"webhookId": "5c0863b2-58ae-4e52-9d26-9f1c6a0dc922",
"credentials": {
"smtp": {
"id": "PIYwQ4jqeccDQ6cT",
"name": "SMTP account"
}
}
}
],
"pinData": {},
"connections": {
"When Executed by Another Workflow": {
"main": [
[
{
"node": "SendAndWait email",
"type": "main",
"index": 0
}
]
]
},
"SendAndWait email": {
"main": [
[]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "2775ca9c-b149-4df6-9ecd-be4a812c99e4",
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "ad5f076847bac9c03ac45d59cc26c49fac2a4b8e4ac5d3505b733215458394d3"
},
"tags": []
}
### Expected behavior
fix the bug
### Debug Info
\
### Operating System
dont know
### n8n Version
1.105.4
### Node.js Version
dont know
### Database
SQLite (default)
### Execution mode
main (default)
### Hosting
self hosted