Sorry to bother you, but apparently there is still some fundamental aspect which I donât understand. The AI Agent is still waiting for my Wait for 60 sec to be finished. And I had hoped that while the waiting is going on in the other branche, the AI Agent would start/keep running. Any additional suggestions? Thanks a lot. {
"nodes": [
{
"parameters": {
"options": {
"systemMessage": "Act like a business analyst, make use of the google sheet : MarketIntelligence and present your answer as concise as possible. If possible, also present the number of tokens used. Thanks."
}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 3.1,
"position": [
800,
1744
],
"id": "e79ca8c8-b6f7-4f37-a596-f66100194b27",
"name": "AI Agent",
"onError": "continueErrorOutput",
"notes": "Timeout in processing"
},
{
"parameters": {
"model": {
"__rl": true,
"value": "gpt-5",
"mode": "list",
"cachedResultName": "gpt-5"
},
"builtInTools": {},
"options": {
"timeout": 600000
}
},
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"typeVersion": 1.3,
"position": [
736,
1968
],
"id": "34ccbe9b-5d4b-4edf-a34f-3e94b5204065",
"name": "OpenAI Chat Model",
"credentials": {
"openAiApi": {
"id": "U16ZdfkT0Wm1cRyo",
"name": "OpenAi account"
}
}
},
{
"parameters": {
"documentId": {
"__rl": true,
"value": "1dcI_axlcmFhcBbyfiBwSiXNkCeq-ZMoukwDgfciRmsI",
"mode": "id"
},
"sheetName": {
"__rl": true,
"value": "gid=0",
"mode": "id"
},
"options": {}
},
"type": "n8n-nodes-base.googleSheetsTool",
"typeVersion": 4.7,
"position": [
992,
1968
],
"id": "6eecaf0a-d74d-4ee6-b238-f841201219ee",
"name": "Get row(s) in sheet in Google Sheets",
"credentials": {
"googleSheetsOAuth2Api": {
"id": "i5ZDOao1fR8d2f3v",
"name": "Google Sheets account"
}
}
},
{
"parameters": {
"sessionIdType": "customKey",
"sessionKey": "={{ $json.Id }}"
},
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"typeVersion": 1.3,
"position": [
864,
1968
],
"id": "92b603f1-407e-4d84-9109-c8c30bd13c8f",
"name": "Simple Memory"
},
{
"parameters": {},
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
144,
1744
],
"id": "6f00ed03-ae52-4fc1-b50a-b86eb115aed5",
"name": "When clicking âExecute workflowâ"
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "5af73d1b-3c77-4280-aacd-88e36b15aaa5",
"name": "chatInput",
"value": "=What is the number of rows",
"type": "string"
},
{
"id": "1f83e778-8312-4b62-99f1-77a133bfa8fd",
"name": "Id",
"value": "5783542605",
"type": "string"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
336,
1744
],
"id": "bb56cc49-5443-486b-a16c-e92c1db76831",
"name": "Edit Fields2"
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "5af73d1b-3c77-4280-aacd-88e36b15aaa5",
"name": "chatInput",
"value": "={{ $json.chatInput }}",
"type": "string"
},
{
"id": "97c528d5-7738-416f-8721-84f535cc16d8",
"name": "Id",
"value": "={{ $json.Id }}",
"type": "string"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
512,
1744
],
"id": "7f48b813-f8ea-47c3-8188-35ba01cd7fef",
"name": "Pre-process"
},
{
"parameters": {
"workflowId": {
"__rl": true,
"value": "fvWmoEj9Lv2UnQTz",
"mode": "list",
"cachedResultUrl": "/workflow/fvWmoEj9Lv2UnQTz",
"cachedResultName": "My Sub-workflow"
},
"workflowInputs": {
"mappingMode": "defineBelow",
"value": {},
"matchingColumns": [],
"schema": [],
"attemptToConvertTypes": false,
"convertFieldsToString": true
},
"options": {
"waitForSubWorkflow": true
}
},
"type": "n8n-nodes-base.executeWorkflow",
"typeVersion": 1.2,
"position": [
800,
1568
],
"name": "Wait for 60 sec",
"id": "9b3edcaf-1355-4667-bdcb-4f420dfa61c0"
}
],
"connections": {
"AI Agent": {
"main": [
[]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Get row(s) in sheet in Google Sheets": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Simple Memory": {
"ai_memory": [
[
{
"node": "AI Agent",
"type": "ai_memory",
"index": 0
}
]
]
},
"When clicking âExecute workflowâ": {
"main": [
[
{
"node": "Edit Fields2",
"type": "main",
"index": 0
}
]
]
},
"Edit Fields2": {
"main": [
[
{
"node": "Pre-process",
"type": "main",
"index": 0
}
]
]
},
"Pre-process": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
},
{
"node": "Wait for 60 sec",
"type": "main",
"index": 0
}
]
]
},
"Wait for 60 sec": {
"main": [
[]
]
}
},
"pinData": {},
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "a256caaf927d8b6fecd66012f15459060ec2fca55c23cb3757c0092517d4e8b9"
}
}