Compare commits

..

No commits in common. "a56436f6dae6b3a2826add488f7e454d58f9d135" and "1c19253bcd56767767a04a1f6e555c62baef0c59" have entirely different histories.

3 changed files with 232 additions and 695 deletions

View File

@ -1,396 +0,0 @@
{
"active": false,
"connections": {
"Default Data Loader": {
"ai_document": [
[
{
"node": "Zep Vector Store",
"type": "ai_document",
"index": 0
}
]
]
},
"Recursive Character Text Splitter1": {
"ai_textSplitter": [
[
{
"node": "Default Data Loader",
"type": "ai_textSplitter",
"index": 0
}
]
]
},
"Gmail": {
"main": [
[
{
"node": "Gmail1",
"type": "main",
"index": 0
}
]
]
},
"Embeddings OpenAI2": {
"ai_embedding": [
[
{
"node": "Zep Vector Store",
"type": "ai_embedding",
"index": 0
}
]
]
},
"Edit Fields": {
"main": [
[
{
"node": "Zep Vector Store",
"type": "main",
"index": 0
}
]
]
},
"Gmail1": {
"main": [
[
{
"node": "Edit Fields",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "Question and Answer Chain",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Vector Store Retriever": {
"ai_retriever": [
[
{
"node": "Question and Answer Chain",
"type": "ai_retriever",
"index": 0
}
]
]
},
"Embeddings OpenAI": {
"ai_embedding": [
[
{
"node": "Zep Vector Store1",
"type": "ai_embedding",
"index": 0
}
]
]
},
"Execute Workflow Trigger": {
"main": [
[
{
"node": "Question and Answer Chain",
"type": "main",
"index": 0
}
]
]
},
"Zep Vector Store1": {
"ai_vectorStore": [
[
{
"node": "Vector Store Retriever",
"type": "ai_vectorStore",
"index": 0
}
]
]
}
},
"createdAt": "2024-02-06T11:22:14.839Z",
"id": "GTZR2JrgNO9LO518",
"meta": {
"templateId": "1960",
"templateCredsSetupCompleted": true
},
"name": "Ask questions about a PDF using AI",
"nodes": [
{
"parameters": {
"resource": "thread",
"limit": 100,
"filters": {
"q": "{schaden transortschaden kaputt beschädigt}",
"receivedAfter": "2023-10-01T00:00:00"
}
},
"id": "2f19ce22-5bc1-4f1b-b257-03542547cbf9",
"name": "Gmail",
"type": "n8n-nodes-base.gmail",
"typeVersion": 2.1,
"position": [
1360,
-360
],
"credentials": {
"gmailOAuth2": {
"id": "47zM2kXFFVjCUTsl",
"name": "Gmail - hi@lanakk.com"
}
}
},
{
"parameters": {
"jsonMode": "expressionData",
"jsonData": "={{ $('Edit Fields').item.json.text }}",
"options": {
"metadata": {
"metadataValues": [
{
"name": "category",
"value": "={{ $('Edit Fields').item.json.category }}"
}
]
}
}
},
"id": "3637fdca-3fb6-41e8-a24c-5271e5365ee8",
"name": "Default Data Loader",
"type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
"typeVersion": 1,
"position": [
2200,
-140
]
},
{
"parameters": {
"chunkOverlap": 200
},
"id": "f2251b40-8e3f-401e-b029-4fcac5b1c9ec",
"name": "Recursive Character Text Splitter1",
"type": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
"typeVersion": 1,
"position": [
2200,
20
]
},
{
"parameters": {
"options": {}
},
"id": "08ba0f32-ce59-41f6-8152-173f265f7579",
"name": "Embeddings OpenAI2",
"type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
"typeVersion": 1,
"position": [
2080,
-140
],
"credentials": {
"openAiApi": {
"id": "m4d4C96RWhMU5Tt1",
"name": "OpenAi account"
}
}
},
{
"parameters": {
"fields": {
"values": [
{
"name": "category",
"stringValue": "damaged"
},
{
"name": "text",
"stringValue": "={{$jmespath($json.messages, \"[*].snippet\" )}}."
}
]
},
"include": "none",
"options": {}
},
"id": "5dcabb58-d37a-4920-8b19-2d2bad965fd1",
"name": "Edit Fields",
"type": "n8n-nodes-base.set",
"typeVersion": 3.2,
"position": [
1840,
-360
]
},
{
"parameters": {
"resource": "thread",
"operation": "get",
"threadId": "={{ $json.id }}",
"options": {}
},
"id": "77947787-4419-4c88-97ca-95238dd5bde7",
"name": "Gmail1",
"type": "n8n-nodes-base.gmail",
"typeVersion": 2.1,
"position": [
1580,
-360
],
"credentials": {
"gmailOAuth2": {
"id": "47zM2kXFFVjCUTsl",
"name": "Gmail - hi@lanakk.com"
}
}
},
{
"parameters": {
"mode": "insert",
"collectionName": "gmail",
"options": {}
},
"id": "f8f8ac2e-4b4f-4daf-a9cc-1be6d74c0f08",
"name": "Zep Vector Store",
"type": "@n8n/n8n-nodes-langchain.vectorStoreZep",
"typeVersion": 1,
"position": [
2080,
-360
],
"credentials": {
"zepApi": {
"id": "KBCPTkEFEMdhzNym",
"name": "Zep Api account"
}
}
},
{
"parameters": {
"query": "={{ $json.query }}"
},
"id": "6148d07e-612d-43c5-ab0b-ef8c276f77c6",
"name": "Question and Answer Chain",
"type": "@n8n/n8n-nodes-langchain.chainRetrievalQa",
"typeVersion": 1.2,
"position": [
2820,
80
]
},
{
"parameters": {
"model": "gpt-4-turbo-preview",
"options": {}
},
"id": "fc240052-3962-4643-92b6-1644c9e4df59",
"name": "OpenAI Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"typeVersion": 1,
"position": [
2620,
300
],
"credentials": {
"openAiApi": {
"id": "m4d4C96RWhMU5Tt1",
"name": "OpenAi account"
}
}
},
{
"parameters": {
"topK": 100
},
"id": "bad44641-1d24-4b28-b391-87557cfebae7",
"name": "Vector Store Retriever",
"type": "@n8n/n8n-nodes-langchain.retrieverVectorStore",
"typeVersion": 1,
"position": [
2820,
300
]
},
{
"parameters": {
"options": {}
},
"id": "a687073c-a218-4a6b-a02e-d5df227a5db5",
"name": "Embeddings OpenAI",
"type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
"typeVersion": 1,
"position": [
2760,
740
],
"credentials": {
"openAiApi": {
"id": "m4d4C96RWhMU5Tt1",
"name": "OpenAi account"
}
}
},
{
"parameters": {},
"id": "1f3f1ad3-e364-4f6d-b679-9b4168f6d7a0",
"name": "Execute Workflow Trigger",
"type": "n8n-nodes-base.executeWorkflowTrigger",
"typeVersion": 1,
"position": [
2540,
80
]
},
{
"parameters": {
"collectionName": "gmail",
"options": {
"metadata": {
"metadataValues": [
{
"name": "category",
"value": "damage"
}
]
}
}
},
"id": "a3ccc644-8149-47d8-ac2f-dec980cb1b87",
"name": "Zep Vector Store1",
"type": "@n8n/n8n-nodes-langchain.vectorStoreZep",
"typeVersion": 1,
"position": [
2760,
520
],
"credentials": {
"zepApi": {
"id": "KBCPTkEFEMdhzNym",
"name": "Zep Api account"
}
}
}
],
"pinData": {},
"settings": {},
"staticData": null,
"tags": [],
"triggerCount": 0,
"updatedAt": "2024-02-06T19:11:07.000Z",
"versionId": "b76ac235-146a-449b-addb-67e34544478e"
}

View File

@ -1,274 +1,38 @@
{ {
"active": true, "active": false,
"connections": { "connections": {},
"OpenAI Chat Model": { "createdAt": "2023-06-28T10:20:31.415Z",
"ai_languageModel": [ "id": "12",
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Custom n8n Workflow Tool": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Vector Store Retriever": {
"ai_retriever": [
[
{
"node": "Question and Answer Chain",
"type": "ai_retriever",
"index": 0
}
]
]
},
"Embeddings OpenAI": {
"ai_embedding": [
[
{
"node": "Zep Vector Store1",
"type": "ai_embedding",
"index": 0
}
]
]
},
"Zep Vector Store1": {
"ai_vectorStore": [
[
{
"node": "Vector Store Retriever",
"type": "ai_vectorStore",
"index": 0
}
]
]
},
"Execute Workflow Trigger": {
"main": [
[
{
"node": "Question and Answer Chain",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model1": {
"ai_languageModel": [
[
{
"node": "Question and Answer Chain",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Chat Trigger": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
}
},
"createdAt": "2024-02-06T18:22:28.892Z",
"id": "7NzlHuO9N42aDqtf",
"meta": {
"templateCredsSetupCompleted": true
},
"name": "My workflow 2", "name": "My workflow 2",
"nodes": [ "nodes": [
{ {
"parameters": { "parameters": {
"options": {} "authentication": "headerAuth",
"endpoint": "https://lana-kk.myshopify.com/admin/api/2022-01/graphql.json",
"requestFormat": "json",
"query": "=query {\n\torders(first: 10, query: \"date:2023-06-01\") {\n\t\tedges {\n\t\t\tnode {\n\t\t\t\tname\n\t\t\t\tcreatedAt\n\t\t\t\tcurrentTotalPriceSet {\n\t\t\t\t\tshopMoney {\n\t\t\t\t\t\tamount\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcustomerJourneySummary {\n\t\t\t\t\tdaysToConversion\n\t\t\t\t\tmoments(first: 5) {\n\t\t\t\t\t\tedges {\n\t\t\t\t\t\t\tnode {\n\t\t\t\t\t\t\t\t... on CustomerVisit {\n\t\t\t\t\t\t\t\t\tlandingPage\n\t\t\t\t\t\t\t\t\tutmParameters {\n\t\t\t\t\t\t\t\t\t\tsource\n\t\t\t\t\t\t\t\t\t\tcampaign\n\t\t\t\t\t\t\t\t\t\tterm\n\t\t\t\t\t\t\t\t\t\tcontent\n\t\t\t\t\t\t\t\t\t\tmedium\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n"
}, },
"id": "a417c255-68aa-4b4b-8c9c-cffb083b7cb7", "id": "4b1c8e68-c3e8-47f5-a7be-205b1451b7bf",
"name": "OpenAI Chat Model", "name": "GraphQL1",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi", "type": "n8n-nodes-base.graphql",
"typeVersion": 1, "typeVersion": 1,
"position": [ "position": [
660, 640,
440 620
], ],
"credentials": { "credentials": {
"openAiApi": { "httpHeaderAuth": {
"id": "m4d4C96RWhMU5Tt1", "id": "14",
"name": "OpenAi account" "name": "Shopify lanakk.com"
} }
} }
},
{
"parameters": {
"name": "Schaden",
"description": "=Use this tool to retrieve more info on how to handle the customer request. Please combine the response from this tool to compose a helpful answer for the customer",
"workflowId": "GTZR2JrgNO9LO518"
},
"id": "b7e4c2aa-666e-4270-a8f6-f4407e9d4e7b",
"name": "Custom n8n Workflow Tool",
"type": "@n8n/n8n-nodes-langchain.toolWorkflow",
"typeVersion": 1,
"position": [
1060,
520
]
},
{
"parameters": {
"query": "={{ $json.input }}"
},
"id": "31b83959-19a5-4296-8663-b57f97f66c0b",
"name": "Question and Answer Chain",
"type": "@n8n/n8n-nodes-langchain.chainRetrievalQa",
"typeVersion": 1.2,
"position": [
580,
760
]
},
{
"parameters": {
"topK": 100
},
"id": "48fdfe53-99ef-43b5-8eb6-c261a9510d79",
"name": "Vector Store Retriever",
"type": "@n8n/n8n-nodes-langchain.retrieverVectorStore",
"typeVersion": 1,
"position": [
580,
980
]
},
{
"parameters": {
"options": {}
},
"id": "4969cd73-48fc-4714-a0cd-336dadd9a86b",
"name": "Embeddings OpenAI",
"type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
"typeVersion": 1,
"position": [
520,
1420
],
"credentials": {
"openAiApi": {
"id": "m4d4C96RWhMU5Tt1",
"name": "OpenAi account"
}
}
},
{
"parameters": {
"collectionName": "gmail",
"options": {
"metadata": {
"metadataValues": [
{
"name": "category",
"value": "damage"
}
]
}
}
},
"id": "e4436a73-0ee6-42c3-8053-4bc9a28f2ced",
"name": "Zep Vector Store1",
"type": "@n8n/n8n-nodes-langchain.vectorStoreZep",
"typeVersion": 1,
"position": [
520,
1200
],
"credentials": {
"zepApi": {
"id": "KBCPTkEFEMdhzNym",
"name": "Zep Api account"
}
}
},
{
"parameters": {},
"id": "f00a87f7-b8b0-49c4-821c-8040b8d65592",
"name": "Execute Workflow Trigger",
"type": "n8n-nodes-base.executeWorkflowTrigger",
"typeVersion": 1,
"position": [
300,
760
]
},
{
"parameters": {
"model": "gpt-4-turbo-preview",
"options": {}
},
"id": "7a7926aa-3d1a-449f-8922-29368dd830f8",
"name": "OpenAI Chat Model1",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"typeVersion": 1,
"position": [
380,
980
],
"credentials": {
"openAiApi": {
"id": "m4d4C96RWhMU5Tt1",
"name": "OpenAi account"
}
}
},
{
"parameters": {},
"id": "995e983e-4306-4f97-8b31-cc4f450329ed",
"name": "Chat Trigger",
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"typeVersion": 1,
"position": [
440,
220
],
"webhookId": "69e5ed75-d4b7-41f7-90eb-63693bd17f95"
},
{
"parameters": {
"options": {}
},
"id": "ca569f04-5fe3-468a-849e-cf43dddbdf0f",
"name": "AI Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 1.2,
"position": [
660,
220
]
} }
], ],
"pinData": {}, "pinData": {},
"settings": { "settings": {},
"executionOrder": "v1"
},
"staticData": null, "staticData": null,
"tags": [], "tags": [],
"triggerCount": 2, "triggerCount": 0,
"updatedAt": "2024-02-06T19:12:18.000Z", "updatedAt": "2023-06-28T10:30:38.000Z",
"versionId": "68c7d670-e657-4fa2-89b5-c7ad045b72fa" "versionId": "5f072241-02cc-495c-9cea-b80591243e16"
} }

View File

@ -1,33 +1,82 @@
{ {
"active": false, "active": false,
"connections": { "connections": {
"Code": { "Success?": {
"main": [ "main": [
[ [
{ {
"node": "Filter", "node": "Wait",
"type": "main", "type": "main",
"index": 0 "index": 0
} }
] ]
] ]
}, },
"Filter": { "Wait": {
"main": [ "main": [
[ [
{ {
"node": "Aggregate", "node": "HTTP Request1",
"type": "main", "type": "main",
"index": 0 "index": 0
} }
] ]
] ]
}, },
"Execute Workflow Trigger": { "HTTP Request1": {
"main": [ "main": [
[ [
{ {
"node": "Code", "node": "Success?",
"type": "main",
"index": 0
},
{
"node": "Item Lists",
"type": "main",
"index": 0
}
]
]
},
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Wait",
"type": "main",
"index": 0
}
]
]
},
"Item Lists": {
"main": [
[
{
"node": "Edit Fields2",
"type": "main",
"index": 0
}
]
]
},
"Edit Fields2": {
"main": [
[
{
"node": "Spreadsheet File",
"type": "main",
"index": 0
}
]
]
},
"Spreadsheet File": {
"main": [
[
{
"node": "Write Binary File",
"type": "main", "type": "main",
"index": 0 "index": 0
} }
@ -35,71 +84,191 @@
] ]
} }
}, },
"createdAt": "2024-02-06T18:20:02.968Z", "createdAt": "2023-12-04T08:45:57.778Z",
"id": "0k5KJioXR4gvF14N", "id": "o9uPy8XY0bMFCS9H",
"meta": { "meta": null,
"templateCredsSetupCompleted": true
},
"name": "My workflow", "name": "My workflow",
"nodes": [ "nodes": [
{ {
"parameters": { "parameters": {
"jsCode": "return [{\"fruit\": \"apple\", \"color\": \"green\", \"dataPrivacyLevel\": \"public\"},{\"fruit\": \"banana\", \"color\": \"yellow\", \"dataPrivacyLevel\": \"public\"},{\"fruit\": \"tomato\", \"color\": \"red\", \"dataPrivacyLevel\": \"private\"}]" "fields": {
"values": [
{
"name": "Id",
"stringValue": "={{ $json.Id || \"none\" }}"
},
{
"name": "OrderRef",
"stringValue": "={{ $json.OrderNumber || \"none\" }}"
},
{
"name": "CustomerId",
"stringValue": "={{ $json.Customer.Id }}"
},
{
"name": "date",
"stringValue": "={{ $json.CreatedAt }}"
}
]
},
"include": "none",
"options": {
"includeBinary": false
}
}, },
"id": "05824aeb-0063-49dc-bfa0-5fcb5f057f08", "id": "5cd78676-a0bd-4536-8759-f996d97b4254",
"name": "Code", "name": "Edit Fields2",
"type": "n8n-nodes-base.code", "type": "n8n-nodes-base.set",
"typeVersion": 2, "typeVersion": 3.1,
"position": [ "position": [
640, 480,
460 -1780
] ]
}, },
{ {
"parameters": { "parameters": {
"conditions": { "conditions": {
"string": [ "number": [
{ {
"value1": "={{ $json.dataPrivacyLevel }}", "value1": "={{ $json.body.Data }}",
"value2": "={{ $('Execute Workflow Trigger').item.json.visibility }}" "operation": "isNotEmpty"
} }
] ]
} }
}, },
"id": "e079c6f5-ae6b-4310-ae78-e2a2d09c0ec9", "id": "4f308b2e-f65b-4879-a566-6e6ebafbf125",
"name": "Filter", "name": "Success?",
"type": "n8n-nodes-base.filter", "type": "n8n-nodes-base.if",
"typeVersion": 1, "typeVersion": 1,
"position": [ "position": [
840, 80,
460 -1340
] ]
}, },
{ {
"parameters": { "parameters": {
"aggregate": "aggregateAllItemData", "unit": "seconds"
"include": "specifiedFields",
"fieldsToInclude": "fruit, color",
"options": {}
}, },
"id": "9f4a6057-2321-4b9e-8031-7a61eee484bb", "id": "c06f9de4-8423-4104-bf3b-fe9eb49e447e",
"name": "Aggregate", "name": "Wait",
"type": "n8n-nodes-base.aggregate", "type": "n8n-nodes-base.wait",
"typeVersion": 1, "typeVersion": 1,
"position": [ "position": [
1060, 680,
460 -1360
] ],
"webhookId": "de46ac63-1976-47ce-a91c-2d96bbd61bad"
},
{
"parameters": {
"url": "https://app.billbee.io/api/v1/orders",
"authentication": "genericCredentialType",
"genericAuthType": "httpBasicAuth",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "pageSize",
"value": "2"
},
{
"name": "page",
"value": "=1"
},
{
"name": "minOrderDate",
"value": "2023-01-01"
}
]
},
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "X-Billbee-Api-Key",
"value": "2855BE2C-1D67-4AB0-9DEB-3073E6D27B1C"
}
]
},
"options": {
"response": {
"response": {
"fullResponse": true
}
}
}
},
"id": "25d5e4e0-a202-46c7-9df8-b72721fe0861",
"name": "HTTP Request1",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.1,
"position": [
-260,
-1340
],
"credentials": {
"httpBasicAuth": {
"id": "xANPcw3p1Nh0wF9J",
"name": "Unnamed credential"
}
}
}, },
{ {
"parameters": {}, "parameters": {},
"id": "75d7b7bb-5081-4813-bc99-998663885500", "id": "6ba1ecc5-aec7-4a22-a00b-b3e434f54926",
"name": "Execute Workflow Trigger", "name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.executeWorkflowTrigger", "type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1, "typeVersion": 1,
"position": [ "position": [
460, 1280,
460 -1620
]
},
{
"parameters": {
"fieldToSplitOut": "body.Data",
"options": {}
},
"id": "47eb34b6-dabd-4ef9-bba6-b31225a7535a",
"name": "Item Lists",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 3,
"position": [
300,
-1780
]
},
{
"parameters": {
"fileName": "/var/lib/n8n/foo.csv",
"options": {
"append": true
}
},
"id": "fbe45256-ff55-45c8-a61c-fab25ae795c4",
"name": "Write Binary File",
"type": "n8n-nodes-base.writeBinaryFile",
"typeVersion": 1,
"position": [
960,
-1780
]
},
{
"parameters": {
"operation": "toFile",
"fileFormat": "csv",
"options": {
"headerRow": false
}
},
"id": "abe8462e-d3d0-4d19-a178-ba3b79e8df11",
"name": "Spreadsheet File",
"type": "n8n-nodes-base.spreadsheetFile",
"typeVersion": 2,
"position": [
720,
-1780
] ]
} }
], ],
@ -110,6 +279,6 @@
"staticData": null, "staticData": null,
"tags": [], "tags": [],
"triggerCount": 0, "triggerCount": 0,
"updatedAt": "2024-02-06T18:20:02.968Z", "updatedAt": "2023-12-05T10:36:16.000Z",
"versionId": "81159509-0241-49db-b31c-144ae377588d" "versionId": "0126ae60-1dbe-45ce-8edc-7ca2df444b30"
} }