Created
August 24, 2025 07:48
-
-
Save architjn/1261b9577be647b08b970130cd4b6692 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Subscription Manager - Email Server", | |
"nodes": [ | |
{ | |
"parameters": { | |
"assignments": { | |
"assignments": [ | |
{ | |
"id": "919b6339-7d24-4bbb-b831-9bd6e68aa9db", | |
"name": "html", | |
"value": "= {{ $json.textHtml }}", | |
"type": "string" | |
}, | |
{ | |
"id": "a3e2327d-601c-4f6f-88c2-67abe0a1f9a6", | |
"name": "subject", | |
"value": "={{ $json.subject }}", | |
"type": "string" | |
} | |
] | |
}, | |
"options": {} | |
}, | |
"type": "n8n-nodes-base.set", | |
"typeVersion": 3.4, | |
"position": [ | |
448, | |
220 | |
], | |
"id": "8ef8b6c8-13be-46d0-ae7f-b2029a43eb7d", | |
"name": "Values" | |
}, | |
{ | |
"parameters": { | |
"html": "={{ $json.html }}", | |
"options": {} | |
}, | |
"type": "n8n-nodes-base.markdown", | |
"typeVersion": 1, | |
"position": [ | |
672, | |
220 | |
], | |
"id": "1193862a-21be-4824-8b52-9b0b2544328a", | |
"name": "Markdown" | |
}, | |
{ | |
"parameters": { | |
"model": "openai/gpt-4.1-nano", | |
"options": {} | |
}, | |
"type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter", | |
"typeVersion": 1, | |
"position": [ | |
968, | |
444 | |
], | |
"id": "af64e4a2-d939-4a14-b3b2-39b6193b166b", | |
"name": "OpenRouter Chat Model", | |
"credentials": { | |
"openRouterApi": { | |
"id": "CGW0UD2Uwkzjnlyv", | |
"name": "OpenRouter account" | |
} | |
} | |
}, | |
{ | |
"parameters": { | |
"jsonSchemaExample": "{\n \"paymentDone\": true,\n \"isSubscription\": false,\n \"isInvestment\": false,\n \"platformName\": \"Google One\",\n \"paymentAggregator\": \"Paypal\",\n \"paymentCycleEndDate\": \"03/15\",\n \"paymentStatus\": \"Paid, Failed or Cancelled\",\n \"paymentAmount\": \"USD 49\",\n \"paymentDuration\": \"Yearly\",\n \"paymentMethod\": \"Visa (Card - 1392)\"\n}", | |
"autoFix": true | |
}, | |
"type": "@n8n/n8n-nodes-langchain.outputParserStructured", | |
"typeVersion": 1.3, | |
"position": [ | |
1824, | |
444 | |
], | |
"id": "647007e4-4895-404e-99ed-f7c7900c79a4", | |
"name": "Structured Output Parser" | |
}, | |
{ | |
"parameters": { | |
"conditions": { | |
"options": { | |
"caseSensitive": true, | |
"leftValue": "", | |
"typeValidation": "strict", | |
"version": 2 | |
}, | |
"conditions": [ | |
{ | |
"id": "406b9467-8ce4-42db-bf0a-14d829e2d6ec", | |
"leftValue": "={{ $json.output.paymentDone && $json.output.isSubscription && !$json.output.isInvestment }}", | |
"rightValue": "", | |
"operator": { | |
"type": "boolean", | |
"operation": "true", | |
"singleValue": true | |
} | |
} | |
], | |
"combinator": "and" | |
}, | |
"options": {} | |
}, | |
"type": "n8n-nodes-base.if", | |
"typeVersion": 2.2, | |
"position": [ | |
2192, | |
220 | |
], | |
"id": "00597707-b452-4421-b1d2-f018b9158560", | |
"name": "If" | |
}, | |
{ | |
"parameters": { | |
"documentId": { | |
"__rl": true, | |
"value": "1tPB68nQttjQ8-n7I2e8W-gh8c6qLudSrkFjv9JQtD60", | |
"mode": "list", | |
"cachedResultName": "Subscription Management", | |
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1tPB68nQttjQ8-n7I2e8W-gh8c6qLudSrkFjv9JQtD60/edit?usp=drivesdk" | |
}, | |
"sheetName": { | |
"__rl": true, | |
"value": "gid=0", | |
"mode": "list", | |
"cachedResultName": "Sheet1", | |
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1tPB68nQttjQ8-n7I2e8W-gh8c6qLudSrkFjv9JQtD60/edit#gid=0" | |
}, | |
"options": {} | |
}, | |
"type": "n8n-nodes-base.googleSheets", | |
"typeVersion": 4.6, | |
"position": [ | |
2640, | |
-48 | |
], | |
"id": "640188bf-f91e-4980-8aeb-997d760b6876", | |
"name": "Get all Subscriptions", | |
"credentials": { | |
"googleSheetsOAuth2Api": { | |
"id": "Rn3BYzXFYtmdsek1", | |
"name": "Google Sheets account" | |
} | |
} | |
}, | |
{ | |
"parameters": { | |
"promptType": "define", | |
"text": "=Available Platform names - \n{{ $json.data.map((item) => `${item.row_number}. ${item['Platform Name']}`).join('\\n') }}\n\nNew Platform Found -\n{{ $('Loop Over Items').item.json.output.platformName }}", | |
"hasOutputParser": true, | |
"messages": { | |
"messageValues": [ | |
{ | |
"message": "You will be provided with already available list of subscriptions and a new subscription name found recently.\n\nYou have sole responsibility to identify if the new subscription name found is already available in already available list based on similarity. Both can be slightly different but means the same.\n\nYou must output only 3 keys below\nalreadyExists: (boolean value here)\nrowNumber: (in case if it already exists, the row number from available list)\nsubscriptionName: (name of the matching subscription name found in already available list or if not available then new name as it is)\n" | |
} | |
] | |
}, | |
"batching": {} | |
}, | |
"type": "@n8n/n8n-nodes-langchain.chainLlm", | |
"typeVersion": 1.7, | |
"position": [ | |
3088, | |
-48 | |
], | |
"id": "66bc49fe-af79-4fd7-bd86-49b3f90045b5", | |
"name": "Basic LLM Chain1" | |
}, | |
{ | |
"parameters": { | |
"aggregate": "aggregateAllItemData", | |
"include": "specifiedFields", | |
"fieldsToInclude": "Platform Name, row_number", | |
"options": {} | |
}, | |
"type": "n8n-nodes-base.aggregate", | |
"typeVersion": 1, | |
"position": [ | |
2864, | |
-48 | |
], | |
"id": "bd713e4b-a0fc-4f9c-bb17-d5a325d408c7", | |
"name": "Aggregate" | |
}, | |
{ | |
"parameters": { | |
"model": "openai/gpt-4.1-nano", | |
"options": {} | |
}, | |
"type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter", | |
"typeVersion": 1, | |
"position": [ | |
3096, | |
176 | |
], | |
"id": "94258275-234f-4665-a7d8-0d857b312193", | |
"name": "OpenRouter Chat Model1", | |
"credentials": { | |
"openRouterApi": { | |
"id": "CGW0UD2Uwkzjnlyv", | |
"name": "OpenRouter account" | |
} | |
} | |
}, | |
{ | |
"parameters": { | |
"jsonSchemaExample": "{\n\t\"alreadyExists\": true,\n \"rowNumber\": 1,\n \"subscriptionName\": \"Platform name here\"\n}" | |
}, | |
"type": "@n8n/n8n-nodes-langchain.outputParserStructured", | |
"typeVersion": 1.3, | |
"position": [ | |
3224, | |
176 | |
], | |
"id": "99dde81e-742d-4eb5-b7cf-60d3dcd4ed40", | |
"name": "Structured Output Parser1" | |
}, | |
{ | |
"parameters": { | |
"operation": "update", | |
"documentId": { | |
"__rl": true, | |
"value": "1tPB68nQttjQ8-n7I2e8W-gh8c6qLudSrkFjv9JQtD60", | |
"mode": "list", | |
"cachedResultName": "Subscription Management", | |
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1tPB68nQttjQ8-n7I2e8W-gh8c6qLudSrkFjv9JQtD60/edit?usp=drivesdk" | |
}, | |
"sheetName": { | |
"__rl": true, | |
"value": "gid=0", | |
"mode": "list", | |
"cachedResultName": "Sheet1", | |
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1tPB68nQttjQ8-n7I2e8W-gh8c6qLudSrkFjv9JQtD60/edit#gid=0" | |
}, | |
"columns": { | |
"mappingMode": "defineBelow", | |
"value": { | |
"row_number": "={{ $json.output.rowNumber }}", | |
"Payment Aggregator": "={{ $('Loop Over Items').item.json.output.paymentAggregator }}", | |
"Payment Cycle Date": "={{ $('Loop Over Items').item.json.output.paymentCycleEndDate }}", | |
"Amount": "={{ $('Loop Over Items').item.json.output.paymentAmount }}", | |
"Payment Method": "={{ $('Loop Over Items').item.json.output.paymentMethod }}", | |
"Duration": "={{ $('Loop Over Items').item.json.output.paymentDuration }}" | |
}, | |
"matchingColumns": [ | |
"row_number" | |
], | |
"schema": [ | |
{ | |
"id": "Platform Name", | |
"displayName": "Platform Name", | |
"required": false, | |
"defaultMatch": false, | |
"display": true, | |
"type": "string", | |
"canBeUsedToMatch": true, | |
"removed": true | |
}, | |
{ | |
"id": "Payment Aggregator", | |
"displayName": "Payment Aggregator", | |
"required": false, | |
"defaultMatch": false, | |
"display": true, | |
"type": "string", | |
"canBeUsedToMatch": true | |
}, | |
{ | |
"id": "Payment Cycle Date", | |
"displayName": "Payment Cycle Date", | |
"required": false, | |
"defaultMatch": false, | |
"display": true, | |
"type": "string", | |
"canBeUsedToMatch": true | |
}, | |
{ | |
"id": "Amount", | |
"displayName": "Amount", | |
"required": false, | |
"defaultMatch": false, | |
"display": true, | |
"type": "string", | |
"canBeUsedToMatch": true | |
}, | |
{ | |
"id": "Duration", | |
"displayName": "Duration", | |
"required": false, | |
"defaultMatch": false, | |
"display": true, | |
"type": "string", | |
"canBeUsedToMatch": true, | |
"removed": false | |
}, | |
{ | |
"id": "Payment Method", | |
"displayName": "Payment Method", | |
"required": false, | |
"defaultMatch": false, | |
"display": true, | |
"type": "string", | |
"canBeUsedToMatch": true | |
}, | |
{ | |
"id": "row_number", | |
"displayName": "row_number", | |
"required": false, | |
"defaultMatch": false, | |
"display": true, | |
"type": "number", | |
"canBeUsedToMatch": true, | |
"readOnly": true, | |
"removed": false | |
} | |
], | |
"attemptToConvertTypes": false, | |
"convertFieldsToString": false | |
}, | |
"options": {} | |
}, | |
"type": "n8n-nodes-base.googleSheets", | |
"typeVersion": 4.6, | |
"position": [ | |
3664, | |
76 | |
], | |
"id": "549cf55e-3fe2-436c-bea9-7b0f2d9f7305", | |
"name": "Update row in sheet", | |
"credentials": { | |
"googleSheetsOAuth2Api": { | |
"id": "Rn3BYzXFYtmdsek1", | |
"name": "Google Sheets account" | |
} | |
} | |
}, | |
{ | |
"parameters": { | |
"rules": { | |
"values": [ | |
{ | |
"conditions": { | |
"options": { | |
"caseSensitive": true, | |
"leftValue": "", | |
"typeValidation": "strict", | |
"version": 2 | |
}, | |
"conditions": [ | |
{ | |
"leftValue": "={{ $json.output.alreadyExists }}", | |
"rightValue": "", | |
"operator": { | |
"type": "boolean", | |
"operation": "true", | |
"singleValue": true | |
}, | |
"id": "e4799141-ce4b-4c11-aa5a-40cb63056141" | |
} | |
], | |
"combinator": "and" | |
}, | |
"renameOutput": true, | |
"outputKey": "Exists" | |
}, | |
{ | |
"conditions": { | |
"options": { | |
"caseSensitive": true, | |
"leftValue": "", | |
"typeValidation": "strict", | |
"version": 2 | |
}, | |
"conditions": [ | |
{ | |
"id": "cca12283-4180-474a-af5f-de387af538f9", | |
"leftValue": "={{ $json.output.alreadyExists }}", | |
"rightValue": "", | |
"operator": { | |
"type": "boolean", | |
"operation": "false", | |
"singleValue": true | |
} | |
} | |
], | |
"combinator": "and" | |
}, | |
"renameOutput": true, | |
"outputKey": "New" | |
} | |
] | |
}, | |
"options": {} | |
}, | |
"type": "n8n-nodes-base.switch", | |
"typeVersion": 3.2, | |
"position": [ | |
3440, | |
-48 | |
], | |
"id": "6f4b04da-7f68-4e6e-b16a-fb25558200c1", | |
"name": "Switch" | |
}, | |
{ | |
"parameters": { | |
"operation": "append", | |
"documentId": { | |
"__rl": true, | |
"value": "1tPB68nQttjQ8-n7I2e8W-gh8c6qLudSrkFjv9JQtD60", | |
"mode": "list", | |
"cachedResultName": "Subscription Management", | |
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1tPB68nQttjQ8-n7I2e8W-gh8c6qLudSrkFjv9JQtD60/edit?usp=drivesdk" | |
}, | |
"sheetName": { | |
"__rl": true, | |
"value": "gid=0", | |
"mode": "list", | |
"cachedResultName": "Sheet1", | |
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1tPB68nQttjQ8-n7I2e8W-gh8c6qLudSrkFjv9JQtD60/edit#gid=0" | |
}, | |
"columns": { | |
"mappingMode": "defineBelow", | |
"value": { | |
"Platform Name": "={{ $json.output.subscriptionName }}", | |
"Payment Aggregator": "={{ $('Loop Over Items').item.json.output.paymentAggregator }}", | |
"Payment Cycle Date": "={{ $('Loop Over Items').item.json.output.paymentCycleEndDate }}", | |
"Amount": "={{ $('Loop Over Items').item.json.output.paymentAmount }}", | |
"Payment Method": "={{ $('Loop Over Items').item.json.output.paymentMethod }}", | |
"Duration": "={{ $('Loop Over Items').item.json.output.paymentDuration }}" | |
}, | |
"matchingColumns": [], | |
"schema": [ | |
{ | |
"id": "Platform Name", | |
"displayName": "Platform Name", | |
"required": false, | |
"defaultMatch": false, | |
"display": true, | |
"type": "string", | |
"canBeUsedToMatch": true | |
}, | |
{ | |
"id": "Payment Aggregator", | |
"displayName": "Payment Aggregator", | |
"required": false, | |
"defaultMatch": false, | |
"display": true, | |
"type": "string", | |
"canBeUsedToMatch": true | |
}, | |
{ | |
"id": "Payment Cycle Date", | |
"displayName": "Payment Cycle Date", | |
"required": false, | |
"defaultMatch": false, | |
"display": true, | |
"type": "string", | |
"canBeUsedToMatch": true | |
}, | |
{ | |
"id": "Amount", | |
"displayName": "Amount", | |
"required": false, | |
"defaultMatch": false, | |
"display": true, | |
"type": "string", | |
"canBeUsedToMatch": true | |
}, | |
{ | |
"id": "Duration", | |
"displayName": "Duration", | |
"required": false, | |
"defaultMatch": false, | |
"display": true, | |
"type": "string", | |
"canBeUsedToMatch": true, | |
"removed": false | |
}, | |
{ | |
"id": "Payment Method", | |
"displayName": "Payment Method", | |
"required": false, | |
"defaultMatch": false, | |
"display": true, | |
"type": "string", | |
"canBeUsedToMatch": true | |
} | |
], | |
"attemptToConvertTypes": false, | |
"convertFieldsToString": false | |
}, | |
"options": {} | |
}, | |
"type": "n8n-nodes-base.googleSheets", | |
"typeVersion": 4.6, | |
"position": [ | |
3664, | |
268 | |
], | |
"id": "57698b31-acb4-4c71-88a4-4fd878bbc2e3", | |
"name": "Append row in sheet", | |
"credentials": { | |
"googleSheetsOAuth2Api": { | |
"id": "Rn3BYzXFYtmdsek1", | |
"name": "Google Sheets account" | |
} | |
} | |
}, | |
{ | |
"parameters": { | |
"promptType": "define", | |
"text": "=Below is the email content - \n\n\n{{ $json.text }}", | |
"hasOutputParser": true, | |
"options": { | |
"systemMessage": "=# Information\nYou are helpful email assistant. \nYou will be provided with the email content. You need to extract important information out of it.\n\n# Tools\n## Subscription Agent\n- This tool will help identify if the email isSubscription, isInvestment and paymentDone\n\n## Payment Info Agent\n- This tool will help identify the payment details along with subscription details needed.\n\n# Instructions\n- You must understand the email content, and identify the information needed.\n- You must call \"Subscription Agent\" tool to get if it is a subscription\n- You must call \"Payment Info Agent\" tool to get the payment and platform information\n\n# Strict Output format (Example)\npaymentDone: true\nisSubscription: false\nisInvestment: false\nplatformName: Google One\npaymentAggregator: Paypal\npaymentCycleEndDate: 03/15\npaymentStatus: Failed\npaymentAmount: USD 49\npaymentDuration: Yearly or Monthly\npaymentMethod: Mastercard (Card - 1392)" | |
} | |
}, | |
"type": "@n8n/n8n-nodes-langchain.agent", | |
"typeVersion": 2.1, | |
"position": [ | |
1544, | |
220 | |
], | |
"id": "ae5286a4-4310-4690-b600-b5d8f3d1542a", | |
"name": "AI Agent" | |
}, | |
{ | |
"parameters": { | |
"toolDescription": "AI Agent to identify if the email is subscription or not.", | |
"text": "=Below is the email content.\n\n{{ $json.text }}", | |
"options": { | |
"systemMessage": "=# Information\nYou are helpful email assistant. \nYou will be provided with the email content. You have only sole responsibility to check if the email content provided is related to any online flatform subscription update.\n\n# Instructions\n- You must understand the email content, and identify the information needed.\n- Make sure to extract the payment status, if it was \"Paid\", \"Failed\", or \"Cancelled\" \n- You must check if the email is about SIP or any other kind of investment then it's not a subscription.\n- You must extract payment cycle end date in MM/DD format\n- You must extract the exact amount paid in total inclusive of all other charges. Must be in \"<currency code> <amount in decimal>\" format.\n- The amount paid should be exactly in the currency mentioned in the email.\n- You must get the payment duration if it is monthly or yearly. (Must be either \"Monthly\" or \"Yearly\")\n- Must get the payment method used\n- isSubscription must only be true if the email is related to any update on the subscription, it can be payment success, payment failed, new subscription, cancelation of a subscription.\n- isSubscription key is used for identifying if the email is regarding the management of the subscription.\n- if the email is about a newsletter update and not related to subscription management, then isSubscription must be false.\n- paymentDone must only be true if the email is about the status on any payment done.\n\n# Strict Output format (Example)\npaymentDone: true\nisSubscription: false\nisInvestment: false" | |
} | |
}, | |
"type": "@n8n/n8n-nodes-langchain.agentTool", | |
"typeVersion": 2.2, | |
"position": [ | |
1248, | |
444 | |
], | |
"id": "b1eefbd1-a49d-4701-9349-9d29ebc8c356", | |
"name": "Subscription Agent" | |
}, | |
{ | |
"parameters": { | |
"toolDescription": "AI Agent to identify the payment details available in the email related to the subscription", | |
"text": "=Below is the email content.\n\n{{ $json.text }}", | |
"options": { | |
"systemMessage": "=# Information\nYou are helpful email assistant. \nYou will be provided with the email content. You have only sole responsibility to check if the email content provided is related to any online flatform subscription update.\n\n# Instructions\n- You must understand the email content, and identify the information needed.\n- Platform name is the name for which the subscription about is paid for.\n- paymentAggregator is the service which is used as payment gateway\n- paymentCycleEndDate is the date when the subscription cycle is ended.\n- paymentStatus is the status of the payment done towards the subscription\n- paymentAmount is the amount payed for the subscription.\n- paymentAmount must be in <currency code> <Amount> format\n- paymentAmount must have currency which was originally mentioned in the email\n- paymentDuration is the subscription type, if the subscription is Monthly or Yearly.\n- paymentMethod is the payment method used for the subscription purchase.\n- paymentMethod must be in format similar to Mastercard (Card - 1392).\n- paymentMethod must be \"Unavailable\" when there is no information available related to this.\n\n# Strict Output format (Example)\nplatformName: Google One\npaymentAggregator: Paypal\npaymentCycleEndDate: 03/15\npaymentStatus: Failed\npaymentAmount: USD 49\npaymentDuration: Yearly or Monthly\npaymentMethod: Mastercard (Card - 1392)" | |
} | |
}, | |
"type": "@n8n/n8n-nodes-langchain.agentTool", | |
"typeVersion": 2.2, | |
"position": [ | |
1536, | |
444 | |
], | |
"id": "72c58184-88e9-459c-992b-d941192c99ad", | |
"name": "Payment Info Agent" | |
}, | |
{ | |
"parameters": { | |
"options": {} | |
}, | |
"type": "n8n-nodes-base.splitInBatches", | |
"typeVersion": 3, | |
"position": [ | |
2416, | |
220 | |
], | |
"id": "01e8e2da-e63d-4b4d-8173-42e02f531494", | |
"name": "Loop Over Items" | |
}, | |
{ | |
"parameters": { | |
"promptType": "define", | |
"text": "=Clean this markdown content with relevant information only.\n\nMake sure that no information is missed at any place. Each information is extremely important.\n\nMake sure to remove all the links and URLs from the final output.\n\nMake sure to just return the Markdown enclosed in \"```md\" tag and nothing else other than that.\n\nHere's the content to clean- \n{{ $json.data }}", | |
"batching": {} | |
}, | |
"type": "@n8n/n8n-nodes-langchain.chainLlm", | |
"typeVersion": 1.7, | |
"position": [ | |
896, | |
220 | |
], | |
"id": "6aeb4e8c-fde4-4902-a37e-3d9461e5b22c", | |
"name": "Basic LLM Chain" | |
}, | |
{ | |
"parameters": { | |
"postProcessAction": "nothing", | |
"options": {} | |
}, | |
"type": "n8n-nodes-base.emailReadImap", | |
"typeVersion": 2.1, | |
"position": [ | |
224, | |
220 | |
], | |
"id": "343f6345-fe0f-45ab-bc90-d1f018593887", | |
"name": "Email Trigger (IMAP)", | |
"credentials": { | |
"imap": { | |
"id": "YAdrfeeAzTsvJWXI", | |
"name": "IMAP account" | |
} | |
} | |
} | |
], | |
"pinData": {}, | |
"connections": { | |
"Values": { | |
"main": [ | |
[ | |
{ | |
"node": "Markdown", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"Markdown": { | |
"main": [ | |
[ | |
{ | |
"node": "Basic LLM Chain", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"OpenRouter Chat Model": { | |
"ai_languageModel": [ | |
[ | |
{ | |
"node": "AI Agent", | |
"type": "ai_languageModel", | |
"index": 0 | |
}, | |
{ | |
"node": "Subscription Agent", | |
"type": "ai_languageModel", | |
"index": 0 | |
}, | |
{ | |
"node": "Payment Info Agent", | |
"type": "ai_languageModel", | |
"index": 0 | |
}, | |
{ | |
"node": "Structured Output Parser", | |
"type": "ai_languageModel", | |
"index": 0 | |
}, | |
{ | |
"node": "Basic LLM Chain", | |
"type": "ai_languageModel", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"Structured Output Parser": { | |
"ai_outputParser": [ | |
[ | |
{ | |
"node": "AI Agent", | |
"type": "ai_outputParser", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"If": { | |
"main": [ | |
[ | |
{ | |
"node": "Loop Over Items", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"Get all Subscriptions": { | |
"main": [ | |
[ | |
{ | |
"node": "Aggregate", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"Aggregate": { | |
"main": [ | |
[ | |
{ | |
"node": "Basic LLM Chain1", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"OpenRouter Chat Model1": { | |
"ai_languageModel": [ | |
[ | |
{ | |
"node": "Basic LLM Chain1", | |
"type": "ai_languageModel", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"Structured Output Parser1": { | |
"ai_outputParser": [ | |
[ | |
{ | |
"node": "Basic LLM Chain1", | |
"type": "ai_outputParser", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"Basic LLM Chain1": { | |
"main": [ | |
[ | |
{ | |
"node": "Switch", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"Switch": { | |
"main": [ | |
[ | |
{ | |
"node": "Update row in sheet", | |
"type": "main", | |
"index": 0 | |
} | |
], | |
[ | |
{ | |
"node": "Append row in sheet", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"AI Agent": { | |
"main": [ | |
[ | |
{ | |
"node": "If", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"Subscription Agent": { | |
"ai_tool": [ | |
[ | |
{ | |
"node": "AI Agent", | |
"type": "ai_tool", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"Payment Info Agent": { | |
"ai_tool": [ | |
[ | |
{ | |
"node": "AI Agent", | |
"type": "ai_tool", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"Loop Over Items": { | |
"main": [ | |
[], | |
[ | |
{ | |
"node": "Get all Subscriptions", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"Update row in sheet": { | |
"main": [ | |
[ | |
{ | |
"node": "Loop Over Items", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"Append row in sheet": { | |
"main": [ | |
[ | |
{ | |
"node": "Loop Over Items", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"Basic LLM Chain": { | |
"main": [ | |
[ | |
{ | |
"node": "AI Agent", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"Email Trigger (IMAP)": { | |
"main": [ | |
[ | |
{ | |
"node": "Values", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
} | |
}, | |
"active": false, | |
"settings": { | |
"executionOrder": "v1" | |
}, | |
"versionId": "6ddbc4e7-2574-44f1-a143-fbb865137286", | |
"meta": { | |
"templateCredsSetupCompleted": true, | |
"instanceId": "933df83c84196d70ce3ffd0bf5d3e1aca31b7366f2f84e1f3482640096e4a3a9" | |
}, | |
"id": "s763EY9SO8IJiv4i", | |
"tags": [] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment