diff --git a/backups/2025-12-27/pars_tg2.json b/backups/2025-12-27/pars_tg2.json new file mode 100644 index 0000000..1053dc7 --- /dev/null +++ b/backups/2025-12-27/pars_tg2.json @@ -0,0 +1 @@ +{"updatedAt":"2025-12-03T21:09:16.854Z","createdAt":"2025-12-03T20:55:08.726Z","id":"Hx3uO2aSTDEtCIWj","name":"pars_tg2","active":false,"isArchived":false,"nodes":[{"parameters":{"inputSource":"passthrough"},"type":"n8n-nodes-base.executeWorkflowTrigger","typeVersion":1.1,"position":[-320,-48],"id":"66d86dac-706e-49ae-afdb-1f8a5dcdae95","name":"When Executed by Another Workflow"},{"parameters":{"promptType":"define","text":"={{ $json.query }}","options":{"systemMessage":"=You are a smart assistant, whose sole task is to correctly form a link depending on the user's request, send it to the tool – Request, receive a selection of posts from this tool, and then send it further in the form of a brief summary.\n\nTo form the link, use the following data:\nLink format – http://5.181.20.197:3000/parse?channel={channel}&limit={limit}&offsetDate={date}\n\nWhere the following parameters need to be substituted:\n{channel} - channel id\n{limit} - a number indicating the number of posts to parse\n{date} - a number indicating the required date from which to start parsing, for example 2025-05-15 (This is May 15, 2025)\n{channel} - provided to us by the user\n{limit} - You must decide for yourself how many posts to get\n{date} - The date starting from which we parse posts backwards\n\nWe receive posts in the following format:\n{\n\"id\": 1575162,\n\"text\": \"Here is the post text\",\n\"date\": 1747671550\n}\n\nThe post date comes in UNIX timestamp format in seconds (not milliseconds), for example: 1747733735. Use UTC when converting. Convert such numbers to ISO or YYYY-MM-DD format correctly.\n\nExample of a formed link for passing to the tool – Request:\n\n\"http://5.181.20.197:3000/parse?channel=1577983092&limit=10&offsetDate=2025-05-15\""}},"type":"@n8n/n8n-nodes-langchain.agent","typeVersion":3,"position":[-112,-48],"id":"2e7c5107-d612-4454-88d0-da05254d0e8c","name":"AI Agent"},{"parameters":{"options":{}},"type":"@n8n/n8n-nodes-langchain.lmChatOpenRouter","typeVersion":1,"position":[-256,160],"id":"00b513a6-547d-4c4a-b929-5a68529326db","name":"OpenRouter Chat Model","credentials":{"openRouterApi":{"id":"zF58stjgF5xdkTLm","name":"OpenRouter account"}}},{"parameters":{"sessionIdType":"customKey","sessionKey":"={{ $json.query }}","contextWindowLength":500},"type":"@n8n/n8n-nodes-langchain.memoryBufferWindow","typeVersion":1.3,"position":[-112,160],"id":"d78c52b3-e9a2-429c-8e30-5f59032d3205","name":"Simple Memory"},{"parameters":{"toolDescription":"=Your task is to substitute the following data into the link http://5.181.20.197:3000/parse?channel={channel}&limit={limit}&offsetDate={date} \n\n{channel} - channel id\n{limit} - a number indicating the number of posts to parse\n{date} - a number indicating the date from which to start parsing","url":"http://5.181.20.197:3000/parse?channel={channel}&limit={limit}&offsetDate={date}","options":{}},"type":"n8n-nodes-base.httpRequestTool","typeVersion":4.3,"position":[144,160],"id":"7d4f02db-67f0-403f-bc90-95d8288b3deb","name":"Request"}],"connections":{"When Executed by Another Workflow":{"main":[[{"node":"AI Agent","type":"main","index":0}]]},"OpenRouter Chat Model":{"ai_languageModel":[[{"node":"AI Agent","type":"ai_languageModel","index":0}]]},"Simple Memory":{"ai_memory":[[{"node":"AI Agent","type":"ai_memory","index":0}]]},"Request":{"ai_tool":[[{"node":"AI Agent","type":"ai_tool","index":0}]]}},"settings":{"executionOrder":"v1"},"staticData":null,"meta":null,"pinData":{},"versionId":"a98f78a4-889a-4e5e-aa96-8e9716bdfc06","activeVersionId":null,"triggerCount":0,"shared":[{"updatedAt":"2025-12-03T20:55:08.726Z","createdAt":"2025-12-03T20:55:08.726Z","role":"workflow:owner","workflowId":"Hx3uO2aSTDEtCIWj","projectId":"sYuiFAb87pAir6jV"}],"activeVersion":null,"tags":[]} \ No newline at end of file