add v1.0.0

This commit is contained in:
2025-11-14 16:04:24 +08:00
commit 2c9bfc79dc
3 changed files with 181 additions and 0 deletions

166
Translator v1.json Normal file
View File

@@ -0,0 +1,166 @@
{
"name": "Translator v1",
"nodes": [
{
"parameters": {
"updates": [
"message"
],
"additionalFields": {}
},
"type": "n8n-nodes-base.telegramTrigger",
"typeVersion": 1.2,
"position": [
0,
0
],
"id": "af668019-6241-4418-b4ce-7823e040d50e",
"name": "on_message",
"webhookId": "db204581-7202-478a-a323-65317651c8da",
"credentials": {
"telegramApi": {
"id": "kQZ4x776AaBcsI9x",
"name": "Telegram Translator"
}
}
},
{
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4.1-mini"
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"typeVersion": 1.2,
"position": [
240,
224
],
"id": "16fa5bc3-972a-4c07-a783-0e4458b65e43",
"name": "OpenAI Chat Model",
"credentials": {
"openAiApi": {
"id": "UHvoxHxQOuL4uxn7",
"name": "OpenAI Personal"
}
}
},
{
"parameters": {
"promptType": "define",
"text": "={{ $json.message.text }}",
"options": {
"systemMessage": "You are a translator. You goal is to translate accurately and also take care of the culture of the translated language, to reduce misunderstandings.\n\nUse this information to translate using my writing character:\nI am 20, Computer scientist and German, I am normally less formal. I prefer to be direct, but not as rude. I like to write using daily language, I want to sound more native, so they feel more comfortable to listen to me.\n\ntranslate to Chinese, take care of culture when translating meanings.\n\nevery message incoming is meant to be translated!\nevery message needs a transcription below to check meaning"
}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 3,
"position": [
224,
0
],
"id": "9566c0ed-6a0a-478c-ab33-0d0f613c5873",
"name": "agent_translator"
},
{
"parameters": {
"sessionIdType": "customKey",
"sessionKey": "chat_lukas",
"contextWindowLength": 2
},
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"typeVersion": 1.3,
"position": [
368,
224
],
"id": "9e97ff43-9dd5-431d-bf83-db769fd10127",
"name": "Simple Memory"
},
{
"parameters": {
"chatId": "7821765661",
"text": "={{ $json.output }}",
"additionalFields": {
"appendAttribution": false
}
},
"type": "n8n-nodes-base.telegram",
"typeVersion": 1.2,
"position": [
576,
0
],
"id": "621db78d-f1f1-48df-9792-fa8bec095f86",
"name": "send_message",
"webhookId": "bc01c31d-e12d-4469-8b71-41a508e88bcb",
"credentials": {
"telegramApi": {
"id": "kQZ4x776AaBcsI9x",
"name": "Telegram Translator"
}
}
}
],
"pinData": {},
"connections": {
"on_message": {
"main": [
[
{
"node": "agent_translator",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "agent_translator",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Simple Memory": {
"ai_memory": [
[
{
"node": "agent_translator",
"type": "ai_memory",
"index": 0
}
]
]
},
"agent_translator": {
"main": [
[
{
"node": "send_message",
"type": "main",
"index": 0
}
]
]
}
},
"active": true,
"settings": {
"executionOrder": "v1"
},
"versionId": "db0b119f-0603-4c28-8e0d-87f369861d9a",
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "2800f470acf5c664a3ebbbdd83daeca862a9287ce93d00a797a05db263f5159b"
},
"id": "A986VOqEy5u5BYZp",
"tags": []
}