Restore from Gitea ZIP snapshot (12.08.2026) after full instance reinstall

Git history was lost when the previous Gitea instance was wiped and
reinstalled due to an unresolved corruption bug — this commit is the
last known-good file content, exported before the reinstall. Prior
commit history is not recoverable through this path.
This commit is contained in:
Claude Sonnet 5
2026-08-12 19:23:56 +00:00
commit e148cd9218
24 changed files with 24 additions and 0 deletions
@@ -0,0 +1 @@
{"updatedAt":"2025-12-03T08:57:06.038Z","createdAt":"2025-12-03T08:27:21.172Z","id":"0J4i0Xlku6iq8SrC","name":"AI Assistant which answers questions with a RAG MCP and a Search Engine MCP","active":false,"isArchived":true,"nodes":[{"parameters":{"options":{"systemMessage":"You are a helpful assistant\n\nYou answer questions about MCP (Model Context Protocol). You have access to two MCP servers:\n\n- The RAG MCP Server which answers general questions about MCP\n- The Search Engine MCP Server which allows you to use a Search Engine in realtime.\n\nThe Search Engine MCP Server has two tools;\n- list tool - which shows all the available tools\n- execute tool - which allows you to execute a search query on a search engine.\n\nYou DO NOT answer questions with your internal knowledge, you ONLY use the knowledge provided by the two MCP servers to answer questions."}},"id":"7d21346c-f225-4cc8-85d6-6dd68fc9a035","name":"AI Agent","type":"@n8n/n8n-nodes-langchain.agent","position":[592,240],"typeVersion":2},{"parameters":{"model":{"__rl":true,"mode":"list","value":"gpt-4.1-mini"},"options":{}},"id":"ab24be4f-acbd-47b9-abe1-1db621150971","name":"OpenAI Chat Model","type":"@n8n/n8n-nodes-langchain.lmChatOpenAi","position":[352,528],"typeVersion":1.2,"credentials":{"openAiApi":{"id":"PvUURuR361IXH0ve","name":"OpenAi account"}}},{"parameters":{"contextWindowLength":15},"id":"71e5008a-2e56-4588-a4c3-a8724026b998","name":"Simple Memory","type":"@n8n/n8n-nodes-langchain.memoryBufferWindow","position":[560,528],"typeVersion":1.3},{"parameters":{},"id":"aa1ae334-de5d-4cd3-a4a5-60f48ca37bbe","name":"MCP_Search_List_Tools","type":"n8n-nodes-mcp.mcpClientTool","position":[1040,528],"typeVersion":1},{"parameters":{"content":"## RAG MCP Server","height":220,"width":280,"color":3},"id":"cef78817-9d96-4e16-80d1-6c8a2e7b574b","name":"Sticky Note","type":"n8n-nodes-base.stickyNote","position":[688,464],"typeVersion":1},{"parameters":{"content":"## Search Engine MCP Server","height":220,"width":360,"color":5},"id":"62d8bad6-50f4-4eec-b553-2107c7e5ee28","name":"Sticky Note1","type":"n8n-nodes-base.stickyNote","position":[992,464],"typeVersion":1},{"parameters":{"operation":"executeTool","toolName":"search_engine","toolParameters":"={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Tool_Parameters', ``, 'json') }}"},"id":"4522cb25-9a05-4509-a3cb-0f4275c95bb3","name":"MCP_Search_Search_Engine","type":"n8n-nodes-mcp.mcpClientTool","position":[1232,528],"typeVersion":1},{"parameters":{"sseEndpoint":"http://localhost:5678/mcp/f88b9b77-40f2-4fad-8e14-0fc7faed7a0b","options":{}},"id":"e96335a9-cc8a-4d29-85d2-905321fba47c","name":"RAG MCP Server","type":"@n8n/n8n-nodes-langchain.mcpClientTool","position":[800,528],"typeVersion":1},{"parameters":{},"id":"76531f2c-8f92-455f-a618-8fc1dd579d03","name":"MCP Client","type":"n8n-nodes-mcp.mcpClientTool","position":[1024,192],"typeVersion":1},{"parameters":{"updates":["message"],"additionalFields":{}},"type":"n8n-nodes-base.telegramTrigger","typeVersion":1.2,"position":[336,240],"id":"8ec4db09-107a-4501-b70e-8c1e030a4992","name":"Telegram Trigger","webhookId":"dc3bef1c-7eef-4572-85dc-b835d0b96a8f","credentials":{"telegramApi":{"id":"L9KHcMiteyKROF5r","name":"Telegram main n8n"}}}],"connections":{"MCP Client":{"ai_tool":[[{"node":"AI Agent","type":"ai_tool","index":0}]]},"Simple Memory":{"ai_memory":[[{"node":"AI Agent","type":"ai_memory","index":0}]]},"RAG MCP Server":{"ai_tool":[[{"node":"AI Agent","type":"ai_tool","index":0}]]},"OpenAI Chat Model":{"ai_languageModel":[[{"node":"AI Agent","type":"ai_languageModel","index":0}]]},"MCP_Search_List_Tools":{"ai_tool":[[{"node":"AI Agent","type":"ai_tool","index":0}]]},"MCP_Search_Search_Engine":{"ai_tool":[[{"node":"AI Agent","type":"ai_tool","index":0}]]},"Telegram Trigger":{"main":[[{"node":"AI Agent","type":"main","index":0}]]}},"settings":{},"staticData":null,"meta":{"templateId":"5398"},"pinData":{},"versionId":"6e9b526a-8d62-44d8-b2fa-2b66cfd11cb8","activeVersionId":null,"triggerCount":0,"shared":[{"updatedAt":"2025-12-03T08:27:21.172Z","createdAt":"2025-12-03T08:27:21.172Z","role":"workflow:owner","workflowId":"0J4i0Xlku6iq8SrC","projectId":"sYuiFAb87pAir6jV"}],"activeVersion":null,"tags":[]}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
{"updatedAt":"2025-12-03T08:56:41.048Z","createdAt":"2025-11-29T21:38:38.667Z","id":"QkcQOlUlhxvB4Urv","name":"My workflow","active":false,"isArchived":true,"nodes":[{"parameters":{"updates":["*"],"additionalFields":{}},"name":"Telegram Trigger","type":"n8n-nodes-base.telegramTrigger","typeVersion":1,"position":[-400,208],"id":"67242ab2-91ef-45ed-b065-7f3464a6d373","webhookId":"8da6a665-bf05-49f4-b17d-2a302fd2ecda","credentials":{"telegramApi":{"id":"L9KHcMiteyKROF5r","name":"Telegram account"}}},{"parameters":{"functionCode":"// Парсим сообщение из Telegram\nconst message = $input.all()[0].json.message.text;\nconst chatId = $input.all()[0].json.message.chat.id;\n\n// Проверяем формат сообщения (пример: /addip 192.168.1.100 trusted_ips 1d \"Комментарий\")\nconst match = message.match(/^\\/addip (\\d+\\.\\d+\\.\\d+\\.\\d+)(?: (\\S+)(?: (\\S+)(?: \"(.+)\")?)?)?/);\n\nif (!match) {\n return [{\n json: {\n chatId,\n error: 'Неверный формат. Используйте: /addip IP [list] [timeout] \"[comment]\"'\n }\n }];\n}\n\n// Извлекаем параметры\nconst [, ipAddress, addressList = 'trusted_hosts', timeout = '1d', comment = 'Added via Telegram'] = match;\n\nreturn [{\n json: {\n chatId,\n ipAddress,\n addressList,\n timeout,\n comment,\n success: true\n }\n}];"},"name":"Parse Telegram Command","type":"n8n-nodes-base.function","typeVersion":1,"position":[-208,208],"id":"cd42faf3-6552-4055-bba0-a0f0742e02ee"},{"parameters":{"authentication":"basicAuth","requestMethod":"POST","url":"http://10.33.33.1:8738/rest/ip/firewall/address-list","jsonParameters":true,"options":{},"bodyParametersJson":"{\n \"address\": \"{{$node['Parse Telegram Command'].json['ipAddress']}}\",\n \"list\": \"{{$node['Parse Telegram Command'].json['addressList']}}\",\n \"timeout\": \"{{$node['Parse Telegram Command'].json['timeout']}}\",\n \"comment\": \"{{$node['Parse Telegram Command'].json['comment']}}\"\n}"},"name":"MikroTik API Request","type":"n8n-nodes-base.httpRequest","typeVersion":1,"position":[0,208],"id":"8f7a7535-0423-4111-a4ad-fa1d8d57334c","credentials":{"httpBasicAuth":{"id":"gBAUOrSceRAWqNfB","name":"mikrot api"}}},{"parameters":{"operation":"send"},"name":"Telegram Success","type":"n8n-nodes-base.telegram","typeVersion":1,"position":[208,112],"id":"16fb0c34-49e5-48d5-b1a4-0eeb44b40e13","webhookId":"0260be7d-496c-4728-a861-e41d14cbdd5e","credentials":{"telegramApi":{"id":"L9KHcMiteyKROF5r","name":"Telegram account"}}},{"parameters":{"operation":"send"},"name":"Telegram Error","type":"n8n-nodes-base.telegram","typeVersion":1,"position":[208,304],"id":"976d6166-60de-4b06-99bb-c2e027229050","webhookId":"06a8453c-242e-48c4-b5b7-b868a23dc102","credentials":{"telegramApi":{"id":"L9KHcMiteyKROF5r","name":"Telegram account"}}}],"connections":{"Telegram Trigger":{"main":[[{"node":"Parse Telegram Command","type":"main","index":0}]]},"Parse Telegram Command":{"main":[[{"node":"MikroTik API Request","type":"main","index":0}]]},"MikroTik API Request":{"main":[[{"node":"Telegram Success","type":"main","index":0},{"node":"Telegram Error","type":"main","index":0}]]}},"settings":{"executionOrder":"v1"},"staticData":null,"meta":{"templateCredsSetupCompleted":true},"pinData":{},"versionId":"8955e382-3a25-4495-aa00-7f7aeef3e9eb","activeVersionId":null,"triggerCount":0,"shared":[{"updatedAt":"2025-11-29T21:38:38.667Z","createdAt":"2025-11-29T21:38:38.667Z","role":"workflow:owner","workflowId":"QkcQOlUlhxvB4Urv","projectId":"sYuiFAb87pAir6jV"}],"activeVersion":null,"tags":[]}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
{"updatedAt":"2025-12-05T13:44:57.168Z","createdAt":"2025-12-05T13:12:22.196Z","id":"pbxJhgKargb04QBi","name":"TG to AI (Final Fixed)","active":false,"isArchived":false,"nodes":[{"parameters":{"updates":["message"],"additionalFields":{"download":true}},"id":"a80f3e49-fabb-4d68-96d9-aee529d8b518","name":"Telegram Trigger","type":"n8n-nodes-base.telegramTrigger","typeVersion":1.1,"position":[-576,400],"webhookId":"tg-webhook","credentials":{"telegramApi":{"id":"L9KHcMiteyKROF5r","name":"Telegram main n8n"}}},{"parameters":{"method":"POST","url":"https://api.stability.ai/v1/generation/stable-diffusion-xl-1024-v1-0/image-to-image","authentication":"genericCredentialType","genericAuthType":"httpHeaderAuth","sendHeaders":true,"headerParameters":{"parameters":[{"name":"Accept","value":"application/json"}]},"sendBody":true,"contentType":"multipart-form-data","bodyParameters":{"parameters":[{"name":"text_prompts[0][text]","value":"={{ $json.message.caption || \"high quality, detailed\" }}"},{"name":"text_prompts[0][weight]","value":"1"},{"name":"init_image_mode","value":"IMAGE_STRENGTH"},{"name":"image_strength","value":"0.35"},{"name":"samples","value":"2"},{"name":"steps","value":"30"},{"parameterType":"formBinaryData","name":"init_image","inputDataFieldName":"data"}]},"options":{}},"id":"e3559163-6cfb-4722-af60-122dfd0137c5","name":"Stability AI Request","type":"n8n-nodes-base.httpRequest","typeVersion":4.1,"position":[-144,400],"credentials":{"httpHeaderAuth":{"id":"U4iKTPOIVsBzAyTa","name":"stable.ai"}}},{"parameters":{"jsCode":"// Получаем артефакты (картинки) из JSON ответа\n// Stability AI возвращает массив 'artifacts'\nconst artifacts = items[0].json.artifacts;\nconst results = [];\n\n// Проходимся по всем картинкам (их будет 2, так как samples=2)\nif (artifacts && artifacts.length > 0) {\n artifacts.forEach((image, index) => {\n results.push({\n json: {\n finishReason: image.finishReason,\n seed: image.seed,\n info: `Вариант ${index + 1}`\n },\n binary: {\n data: {\n data: image.base64,\n mimeType: 'image/png',\n fileExtension: 'png',\n fileName: `generated_${index}.png`\n }\n }\n });\n });\n} else {\n // Если что-то пошло не так и картинок нет\n return [];\n}\n\nreturn results;"},"id":"0ccdeca0-0975-402d-917a-c339b4aaa4f0","name":"Process Response","type":"n8n-nodes-base.code","typeVersion":2,"position":[80,400]},{"parameters":{"operation":"sendPhoto","chatId":"={{ $('Telegram Trigger').item.json.message.chat.id }}","binaryData":true,"additionalFields":{}},"id":"5963fd17-15d7-471d-8a43-a48eff236139","name":"Send Photo to TG","type":"n8n-nodes-base.telegram","typeVersion":1.1,"position":[304,400],"webhookId":"dbde12a9-bb16-4e39-8e79-447addb70b92","credentials":{"telegramApi":{"id":"L9KHcMiteyKROF5r","name":"Telegram main n8n"}}},{"parameters":{"operation":"resize","width":1024,"height":1024,"resizeOption":"ignoreAspectRatio","options":{}},"type":"n8n-nodes-base.editImage","typeVersion":1,"position":[-352,400],"id":"6237fa02-50df-4df0-915b-5c39973ce931","name":"Edit Image"}],"connections":{"Stability AI Request":{"main":[[{"node":"Process Response","type":"main","index":0}]]},"Process Response":{"main":[[{"node":"Send Photo to TG","type":"main","index":0}]]},"Edit Image":{"main":[[{"node":"Stability AI Request","type":"main","index":0}]]},"Telegram Trigger":{"main":[[{"node":"Edit Image","type":"main","index":0}]]}},"settings":{"executionOrder":"v1"},"staticData":null,"meta":{"templateCredsSetupCompleted":true},"pinData":{},"versionId":"333e1db5-0737-4667-adca-6f9cc9d549a0","activeVersionId":null,"triggerCount":0,"shared":[{"updatedAt":"2025-12-05T13:12:22.196Z","createdAt":"2025-12-05T13:12:22.196Z","role":"workflow:owner","workflowId":"pbxJhgKargb04QBi","projectId":"sYuiFAb87pAir6jV"}],"activeVersion":null,"tags":[]}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
{"updatedAt":"2025-12-11T07:09:10.104Z","createdAt":"2025-12-11T07:09:10.104Z","id":"gxObHp6a909HAR7n","name":"Webflow_Lead_Slack_Airtable","active":false,"isArchived":false,"nodes":[{"parameters":{"path":"c646a064-5ba1-425d-8b8a-9817a9c2ebce","options":{}},"name":"Webhook","type":"n8n-nodes-base.webhook","position":[0,0],"typeVersion":2,"id":"3d5e69fa-3b24-4473-b0c6-3ff97f184b98","webhookId":"c646a064-5ba1-425d-8b8a-9817a9c2ebce"},{"parameters":{"url":"https://company.clearbit.com/v2/companies/find","options":{}},"name":"Clearbit Enrichment","type":"n8n-nodes-base.httpRequest","position":[208,0],"typeVersion":2,"id":"25f17850-b893-4a40-be0f-f61dc218f3da"},{"parameters":{},"name":"Airtable","type":"n8n-nodes-base.airtable","position":[400,0],"typeVersion":4,"id":"f03e3c72-21d0-4508-bf45-76049e97ed35","credentials":{}},{"parameters":{},"name":"Slack Alerts","type":"n8n-nodes-base.slack","position":[608,0],"typeVersion":4,"id":"33be5d0e-17b4-4462-b76d-85d22db89fef","credentials":{}}],"connections":{"Webhook":{"main":[[{"node":"Clearbit Enrichment","type":"main","index":0}]]}},"settings":{"executionOrder":"v1"},"staticData":null,"meta":null,"pinData":{},"versionId":"34b1e410-55a1-4039-8b4b-1abf120312db","activeVersionId":null,"triggerCount":0,"shared":[{"updatedAt":"2025-12-11T07:09:10.104Z","createdAt":"2025-12-11T07:09:10.104Z","role":"workflow:owner","workflowId":"gxObHp6a909HAR7n","projectId":"sYuiFAb87pAir6jV"}],"activeVersion":null,"tags":[]}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
{"updatedAt":"2025-11-29T21:59:25.882Z","createdAt":"2025-11-29T20:59:52.613Z","id":"ToDRzIsMSKmFdU22","name":"mikrotik","active":false,"isArchived":false,"nodes":[{"parameters":{"functionCode":"const message = $input.all()[0].json.message.text;\nconst chatId = $input.all()[0].json.message.chat.id;\n\nconst match = message.match(/^\\/addip (\\d+\\.\\d+\\.\\d+\\.\\d+)(?: (\\S+)(?: (\\S+)(?: \"(.+)\")?)?)?/);\n\nif (!match) {\n return [{ json: { chatId, error: 'Формат: /addip IP [список] [таймаут] \"[комментарий]\"' } }];\n}\n\nconst [, ip, list = 'trusted', timeout = '1d', comment = 'Добавлено через Telegram'] = match;\nreturn [{ json: { chatId, ip, list, timeout, comment } }];"},"name":"Parse Command","type":"n8n-nodes-base.function","typeVersion":1,"position":[-960,976],"id":"4a48ea56-0bd0-467f-acb4-24aa6228dcd7"},{"parameters":{"authentication":"basicAuth","requestMethod":"POST","url":"http://10.33.33.1:8738/rest/ip/firewall/address-list/add","jsonParameters":true,"options":{},"bodyParametersJson":"={\n \"address\": \"{{ $json.ip }}\",\n \"list\": \"{{ $json.list }}\",\n \"timeout\": \"{{ $json.timeout }}\",\n \"comment\": \"{{ $json.comment }}\"\n}"},"name":"Add to MikroTik","type":"n8n-nodes-base.httpRequest","typeVersion":1,"position":[-720,976],"id":"03cd0c69-269b-46e3-84a9-af04ad098f6a","credentials":{"httpBasicAuth":{"id":"gBAUOrSceRAWqNfB","name":"mikrot api"}}},{"parameters":{"updates":["*"],"additionalFields":{}},"name":"Telegram Trigger1","type":"n8n-nodes-base.telegramTrigger","typeVersion":1,"position":[-1152,976],"id":"416be817-5533-4dc2-8c2e-87f266bdd2a5","webhookId":"d90faed7-0985-4037-95d5-1d5faa092ae2","credentials":{"telegramApi":{"id":"L9KHcMiteyKROF5r","name":"Telegram account"}}},{"parameters":{"chatId":"1171589143","text":"ip dobalen","additionalFields":{}},"name":"Telegram Success1","type":"n8n-nodes-base.telegram","typeVersion":1,"position":[-480,976],"id":"7374248f-553c-49b3-8b34-4412faa04c70","webhookId":"321b1665-3f87-409b-a855-2e92fb4155a4","credentials":{"telegramApi":{"id":"L9KHcMiteyKROF5r","name":"Telegram account"}}}],"connections":{"Parse Command":{"main":[[{"node":"Add to MikroTik","type":"main","index":0}]]},"Add to MikroTik":{"main":[[{"node":"Telegram Success1","type":"main","index":0}]]},"Telegram Trigger1":{"main":[[{"node":"Parse Command","type":"main","index":0}]]}},"settings":{"executionOrder":"v1"},"staticData":null,"meta":{"templateCredsSetupCompleted":true},"pinData":{},"versionId":"a540ad77-73fa-4395-9ec4-fca15113edcf","activeVersionId":null,"triggerCount":0,"shared":[{"updatedAt":"2025-11-29T20:59:52.613Z","createdAt":"2025-11-29T20:59:52.613Z","role":"workflow:owner","workflowId":"ToDRzIsMSKmFdU22","projectId":"sYuiFAb87pAir6jV"}],"activeVersion":null,"tags":[]}
+1
View File
@@ -0,0 +1 @@
{"updatedAt":"2025-12-27T21:49:21.541Z","createdAt":"2025-12-27T18:31:30.486Z","id":"BlRmzgPv0m7n7rCfoFaQE","name":"n8n_backup_gitea","active":false,"isArchived":false,"nodes":[{"parameters":{"chatId":"1171589143","text":"n8n успешно запушен","additionalFields":{}},"type":"n8n-nodes-base.telegram","typeVersion":1.2,"position":[1040,-64],"id":"1a613417-3efd-4417-a7a0-5ac05f5fe068","name":"Send a text message","webhookId":"cd1430e6-5895-4ecd-b0df-41bb5c311f75","credentials":{"telegramApi":{"id":"L9KHcMiteyKROF5r","name":"Telegram main n8n"}}},{"parameters":{"rule":{"interval":[{"field":"cronExpression","expression":"0 0 * * *"}]}},"id":"c8765d52-406e-4de1-8353-7ec6cd6fb54c","name":"Schedule Trigger","type":"n8n-nodes-base.scheduleTrigger","typeVersion":1.1,"position":[-528,-64]},{"parameters":{"url":"http://10.33.33.70:30109/api/v1/workflows","authentication":"genericCredentialType","genericAuthType":"httpHeaderAuth","options":{}},"id":"fc778077-ceb1-40ea-9ecf-2cff1bd31771","name":"Get All Workflows","type":"n8n-nodes-base.httpRequest","typeVersion":4.1,"position":[-304,-64],"credentials":{"httpHeaderAuth":{"id":"bXtIMzDotX8HKyWy","name":"n8n-api"}}},{"parameters":{"fieldToSplitOut":"data","options":{}},"id":"9a7e423c-dad6-4d2f-959b-1515a176188b","name":"Split into Items","type":"n8n-nodes-base.itemLists","typeVersion":3,"position":[-80,-64]},{"parameters":{"jsCode":"return items.map((item) => {\n const workflow = item.json;\n // Убираем спецсимволы из имени файла\n const safeName = workflow.name.replace(/[/\\\\?%*:|\"<>]/g, '-');\n \n // Кодируем ВЕСЬ объект воркфлоу в Base64\n const base64 = Buffer.from(JSON.stringify(workflow)).toString('base64');\n \n return {\n json: {\n safeName: safeName,\n base64Content: base64,\n today: new Date().toISOString().split('T')[0]\n }\n };\n});"},"id":"e62ffc50-788d-4ebd-96ba-e7e456617ef4","name":"Prepare Data (Base64)","type":"n8n-nodes-base.code","typeVersion":2,"position":[144,-64]},{"parameters":{"options":{}},"id":"40140d3a-3a99-4f4c-abaf-2c376fb6d3a9","name":"Loop (Split in Batches)","type":"n8n-nodes-base.splitInBatches","typeVersion":3,"position":[352,-64]},{"parameters":{"method":"POST","url":"=http://10.33.33.70:30008/api/v1/repos/ogrechko/n8n/contents/backups/{{ $json.today }}/{{ $json.safeName }}.json","authentication":"predefinedCredentialType","nodeCredentialType":"giteaApi","sendBody":true,"specifyBody":"json","jsonBody":"={\n \"content\": \"{{ $json.base64Content }}\",\n \"message\": \"Backup: {{ $json.safeName }}\",\n \"branch\": \"master\"\n}","options":{}},"id":"91ab5dc5-9ac9-4eed-9a1d-f811969bfeff","name":"Push to Gitea","type":"n8n-nodes-base.httpRequest","typeVersion":4.1,"position":[576,-64],"credentials":{"giteaApi":{"id":"JpwYw1CY65zUadHB","name":"Gitea account"}}},{"parameters":{"amount":2},"id":"bfe90672-384c-4f7d-b783-0ee0f2082f2e","name":"Wait 2s","type":"n8n-nodes-base.wait","typeVersion":1.1,"position":[800,-64],"webhookId":"4113ef8c-8ada-4b32-acdb-8ba96426bd86"}],"connections":{"Schedule Trigger":{"main":[[{"node":"Get All Workflows","type":"main","index":0}]]},"Get All Workflows":{"main":[[{"node":"Split into Items","type":"main","index":0}]]},"Split into Items":{"main":[[{"node":"Prepare Data (Base64)","type":"main","index":0}]]},"Prepare Data (Base64)":{"main":[[{"node":"Loop (Split in Batches)","type":"main","index":0}]]},"Loop (Split in Batches)":{"main":[[{"node":"Send a text message","type":"main","index":0}],[{"node":"Push to Gitea","type":"main","index":0}]]},"Push to Gitea":{"main":[[{"node":"Wait 2s","type":"main","index":0}]]},"Wait 2s":{"main":[[{"node":"Loop (Split in Batches)","type":"main","index":0}]]}},"settings":{"executionOrder":"v1","availableInMCP":false},"staticData":null,"meta":{"templateCredsSetupCompleted":true},"pinData":{},"versionId":"7dc6e5ca-386c-450d-82a9-8dab29661d39","activeVersionId":null,"triggerCount":0,"shared":[{"updatedAt":"2025-12-27T18:31:30.486Z","createdAt":"2025-12-27T18:31:30.486Z","role":"workflow:owner","workflowId":"BlRmzgPv0m7n7rCfoFaQE","projectId":"sYuiFAb87pAir6jV"}],"activeVersion":null,"tags":[]}
+1
View File
@@ -0,0 +1 @@
{"updatedAt":"2025-12-03T21:09:54.768Z","createdAt":"2025-12-03T20:47:48.689Z","id":"WNwF7L3mikoSfdwv","name":"pars_tg","active":false,"isArchived":false,"nodes":[{"parameters":{"options":{}},"type":"@n8n/n8n-nodes-langchain.chatTrigger","typeVersion":1.4,"position":[-480,-80],"id":"ece42184-9786-4fdd-8532-6ed6d3b412e3","name":"When chat message received","webhookId":"67c19089-9e45-4e3d-96db-390962f84509"},{"parameters":{"options":{"systemMessage":"=You are a smart agent\n\nToday's date is - {{ $now }}\n\nYour primary tool for generating responses is \"open and close tg\".\n\nAlways answer only based on these tools. [ ]\n\nAlways after the user's question, send a message using the tool - \"telegram tool\" stating that you have started the process and a response will be provided soon.\n\n1 Tool - \"open and close tg\"\nUse it when you need to parse data from the specified channel for any date in order to answer.\n\nChannel ID for parsing - -1001138673901\n\nBe sure to send the channel ID to this tool and formulate a prompt that can solve the user's request. Send the prompt along with the channel ID."}},"type":"@n8n/n8n-nodes-langchain.agent","typeVersion":3,"position":[-112,-96],"id":"1fe1c47f-2a4a-4a39-9e1f-0cfc14c9de04","name":"AI Agent"},{"parameters":{"contextWindowLength":500},"type":"@n8n/n8n-nodes-langchain.memoryBufferWindow","typeVersion":1.3,"position":[-64,192],"id":"2a19bd8b-97a3-4066-8a4c-2bef14ac3bbb","name":"Simple Memory"},{"parameters":{"options":{}},"type":"@n8n/n8n-nodes-langchain.lmChatOpenRouter","typeVersion":1,"position":[-272,128],"id":"0a7bf2fa-c60a-497e-8b0b-94c670048417","name":"OpenRouter Chat Model","credentials":{"openRouterApi":{"id":"zF58stjgF5xdkTLm","name":"OpenRouter account"}}},{"parameters":{"description":"you should go in this tool if you need data on telegram chanell (closed and opened)","workflowId":{"__rl":true,"value":"Hx3uO2aSTDEtCIWj","mode":"list","cachedResultUrl":"/workflow/Hx3uO2aSTDEtCIWj","cachedResultName":"pars_tg2"},"workflowInputs":{"mappingMode":"defineBelow","value":{},"matchingColumns":[],"schema":[],"attemptToConvertTypes":false,"convertFieldsToString":false}},"type":"@n8n/n8n-nodes-langchain.toolWorkflow","typeVersion":2.2,"position":[208,192],"id":"11a57857-034a-44ab-8ff8-92d1d256b552","name":"open and close tg"}],"connections":{"When chat message received":{"main":[[{"node":"AI Agent","type":"main","index":0}]]},"Simple Memory":{"ai_memory":[[{"node":"AI Agent","type":"ai_memory","index":0}]]},"OpenRouter Chat Model":{"ai_languageModel":[[{"node":"AI Agent","type":"ai_languageModel","index":0}]]},"open and close tg":{"ai_tool":[[{"node":"AI Agent","type":"ai_tool","index":0}]]}},"settings":{"executionOrder":"v1"},"staticData":null,"meta":{"templateCredsSetupCompleted":true},"pinData":{},"versionId":"2d12300a-0eaa-4165-8807-c3c40472b97b","activeVersionId":null,"triggerCount":0,"shared":[{"updatedAt":"2025-12-03T20:47:48.689Z","createdAt":"2025-12-03T20:47:48.689Z","role":"workflow:owner","workflowId":"WNwF7L3mikoSfdwv","projectId":"sYuiFAb87pAir6jV"}],"activeVersion":null,"tags":[]}
+1
View File
@@ -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":[]}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long