## Describe the problem/error/question
When the AI has to make multiple sequenti…al calls to the "Call workflow tool" it returns always the same output from the first item.
Bug reported in the community forum:
https://community.n8n.io/t/n8n-bug-workflow-input-data-not-being-received-correctly-when-simultaneously-triggered-via-an-ai-agent-tool-v2/81740/2
## Please share your workflow/screenshots/recording

```
{
"nodes": [
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"typeVersion": 1.1,
"position": [
0,
0
],
"id": "770d12df-70b0-4f2a-8963-506f3ae4e77b",
"name": "When chat message received",
"webhookId": "e5479cdd-d7d5-4431-bd05-aad2ffc856b5"
},
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 1.7,
"position": [
220,
0
],
"id": "b1aed273-529a-45ad-ace0-e9b08c79c3f1",
"name": "AI Agent"
},
{
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini"
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"typeVersion": 1.2,
"position": [
220,
240
],
"id": "b575cdb3-2053-4bb6-8700-44e5454ebbec",
"name": "OpenAI Chat Model",
"credentials": {
"openAiApi": {
"id": "5LVOlVwHUgB8MAj2",
"name": "OpenAI - n8n project"
}
}
},
{
"parameters": {},
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"typeVersion": 1.3,
"position": [
340,
240
],
"id": "78df8c66-8319-4c4e-8521-631607b6a081",
"name": "Window Buffer Memory"
},
{
"parameters": {
"name": "call_number",
"description": "Use this tool to call for numbers and get their results",
"workflowId": {
"__rl": true,
"value": "Knxy5OTQaMNwNOlV",
"mode": "list",
"cachedResultName": "My workflow 3"
},
"workflowInputs": {
"mappingMode": "defineBelow",
"value": {
"number": "={{ $fromAI(\"number\", \"The number to call\") }}"
},
"matchingColumns": [
"number"
],
"schema": [
{
"id": "number",
"displayName": "number",
"required": false,
"defaultMatch": false,
"display": true,
"canBeUsedToMatch": true,
"type": "number",
"removed": false
}
],
"attemptToConvertTypes": false,
"convertFieldsToString": false
}
},
"type": "@n8n/n8n-nodes-langchain.toolWorkflow",
"typeVersion": 2,
"position": [
480,
240
],
"id": "b0862ef2-a104-41dc-b8ee-3afc30e976e4",
"name": "Call n8n Workflow Tool"
},
{
"parameters": {
"workflowInputs": {
"values": [
{
"name": "number",
"type": "number"
}
]
}
},
"type": "n8n-nodes-base.executeWorkflowTrigger",
"typeVersion": 1.1,
"position": [
820,
240
],
"id": "8ff95c90-9d2b-45bd-9c9b-9640e3d2901e",
"name": "When Executed by Another Workflow"
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "397dd021-89af-45c3-8c0f-16cc21f541e0",
"name": "number",
"value": "={{ $json.number }}",
"type": "string"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
1040,
240
],
"id": "d90987fd-a27b-445f-a909-ae7aeed63e97",
"name": "Edit Fields"
}
],
"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
}
]
]
},
"Window Buffer Memory": {
"ai_memory": [
[
{
"node": "AI Agent",
"type": "ai_memory",
"index": 0
}
]
]
},
"Call n8n Workflow Tool": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"When Executed by Another Workflow": {
"main": [
[
{
"node": "Edit Fields",
"type": "main",
"index": 0
}
]
]
}
},
"pinData": {},
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "d6b502dfa4d9dd072cdc5c2bb763558661053f651289291352a84403e01b3d1b"
}
}
```
## Debug info
I don't know what most of the info below means, so I leave it mostly untouched. But n8n version is correct.
### core
- n8nVersion: 1.80.3
- platform: docker (self-hosted)
- nodeJsVersion: 20.18.2
- database: sqlite
- executionMode: regular
- concurrency: -1
- license: free self-hosted
### storage
- success: all
- error: all
- progress: false
- manual: true
- binaryMode: memory
### pruning
- enabled: true
- maxAge: 336 hours
- maxCount: 10000 executions
### client
- userAgent: mozilla/5.0 (windows nt 10.0; win64; x64) applewebkit/537.36 (khtml, like gecko) chrome/133.0.0.0 safari/537.36
- isTouchDevice: false
Generated at: 2025-02-25T19:08:33.963Z}