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",
|
"id": "uuid-split-results",
|
||||||
"name": "Split Results",
|
"name": "Split Results",
|
||||||
"type": "n8n-nodes-base.splitInBatches",
|
"type": "n8n-nodes-base.itemLists",
|
||||||
"typeVersion": 3,
|
"typeVersion": 4,
|
||||||
"position": [650, 200],
|
"position": [650, 200],
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"batchSize": 1,
|
"mode": "splitOut",
|
||||||
"options": {}
|
"splitField": "data"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -84,7 +84,7 @@
|
|||||||
"name": "LiteLLM AI Analysis",
|
"name": "LiteLLM AI Analysis",
|
||||||
"type": "n8n-nodes-base.httpRequest",
|
"type": "n8n-nodes-base.httpRequest",
|
||||||
"typeVersion": 4,
|
"typeVersion": 4,
|
||||||
"position": [1050, 200],
|
"position": [850, 200],
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"url": "http://llm.eks-ai.apps.asgard.eks-lnx.fft-it.de/v1/chat/completions",
|
"url": "http://llm.eks-ai.apps.asgard.eks-lnx.fft-it.de/v1/chat/completions",
|
||||||
"method": "POST",
|
"method": "POST",
|
||||||
@@ -101,7 +101,7 @@
|
|||||||
"name": "Parse AI Response",
|
"name": "Parse AI Response",
|
||||||
"type": "n8n-nodes-base.set",
|
"type": "n8n-nodes-base.set",
|
||||||
"typeVersion": 3,
|
"typeVersion": 3,
|
||||||
"position": [1250, 200],
|
"position": [1050, 200],
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"options": {},
|
"options": {},
|
||||||
"assignments": {
|
"assignments": {
|
||||||
@@ -125,7 +125,7 @@
|
|||||||
"name": "Check Confidence >= 0.6",
|
"name": "Check Confidence >= 0.6",
|
||||||
"type": "n8n-nodes-base.if",
|
"type": "n8n-nodes-base.if",
|
||||||
"typeVersion": 2,
|
"typeVersion": 2,
|
||||||
"position": [1450, 200],
|
"position": [1250, 200],
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"conditions": {
|
"conditions": {
|
||||||
"options": {
|
"options": {
|
||||||
@@ -152,7 +152,7 @@
|
|||||||
"name": "Save Suggestion to Freescout DB",
|
"name": "Save Suggestion to Freescout DB",
|
||||||
"type": "n8n-nodes-base.httpRequest",
|
"type": "n8n-nodes-base.httpRequest",
|
||||||
"typeVersion": 4,
|
"typeVersion": 4,
|
||||||
"position": [1650, 100],
|
"position": [1450, 100],
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"url": "http://host.docker.internal:4000/query/freescout",
|
"url": "http://host.docker.internal:4000/query/freescout",
|
||||||
"method": "POST",
|
"method": "POST",
|
||||||
@@ -169,7 +169,7 @@
|
|||||||
"name": "Skip - Low Confidence",
|
"name": "Skip - Low Confidence",
|
||||||
"type": "n8n-nodes-base.set",
|
"type": "n8n-nodes-base.set",
|
||||||
"typeVersion": 3,
|
"typeVersion": 3,
|
||||||
"position": [1650, 350],
|
"position": [1450, 350],
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"options": {},
|
"options": {},
|
||||||
"assignments": {
|
"assignments": {
|
||||||
|
|||||||
Reference in New Issue
Block a user