fix: add Item Lists node to properly split data array from SQL response
- Replace splitInBatches with itemLists node for better data handling - Configure splitField to 'data' to extract individual items from API response - Adjust node positions and connections accordingly - Fixes issue where only first item was being processed
This commit is contained in:
@@ -32,12 +32,12 @@
|
||||
{
|
||||
"id": "uuid-split-results",
|
||||
"name": "Split Results",
|
||||
"type": "n8n-nodes-base.splitInBatches",
|
||||
"typeVersion": 3,
|
||||
"type": "n8n-nodes-base.itemLists",
|
||||
"typeVersion": 4,
|
||||
"position": [650, 200],
|
||||
"parameters": {
|
||||
"batchSize": 1,
|
||||
"options": {}
|
||||
"mode": "splitOut",
|
||||
"splitField": "data"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -84,7 +84,7 @@
|
||||
"name": "LiteLLM AI Analysis",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 4,
|
||||
"position": [1050, 200],
|
||||
"position": [850, 200],
|
||||
"parameters": {
|
||||
"url": "http://llm.eks-ai.apps.asgard.eks-lnx.fft-it.de/v1/chat/completions",
|
||||
"method": "POST",
|
||||
@@ -101,7 +101,7 @@
|
||||
"name": "Parse AI Response",
|
||||
"type": "n8n-nodes-base.set",
|
||||
"typeVersion": 3,
|
||||
"position": [1250, 200],
|
||||
"position": [1050, 200],
|
||||
"parameters": {
|
||||
"options": {},
|
||||
"assignments": {
|
||||
@@ -125,7 +125,7 @@
|
||||
"name": "Check Confidence >= 0.6",
|
||||
"type": "n8n-nodes-base.if",
|
||||
"typeVersion": 2,
|
||||
"position": [1450, 200],
|
||||
"position": [1250, 200],
|
||||
"parameters": {
|
||||
"conditions": {
|
||||
"options": {
|
||||
@@ -152,7 +152,7 @@
|
||||
"name": "Save Suggestion to Freescout DB",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 4,
|
||||
"position": [1650, 100],
|
||||
"position": [1450, 100],
|
||||
"parameters": {
|
||||
"url": "http://host.docker.internal:4000/query/freescout",
|
||||
"method": "POST",
|
||||
@@ -169,7 +169,7 @@
|
||||
"name": "Skip - Low Confidence",
|
||||
"type": "n8n-nodes-base.set",
|
||||
"typeVersion": 3,
|
||||
"position": [1650, 350],
|
||||
"position": [1450, 350],
|
||||
"parameters": {
|
||||
"options": {},
|
||||
"assignments": {
|
||||
|
||||
Reference in New Issue
Block a user