Skip to main content
Glama
leeguooooo
by leeguooooo
email_translate_workflow.json5.42 kB
{ "name": "邮件翻译总结与通知", "nodes": [ { "parameters": { "rule": { "interval": [ { "field": "cronExpression", "expression": "*/10 * * * *" } ] } }, "id": "schedule-trigger", "name": "定时触发", "type": "n8n-nodes-base.scheduleTrigger", "typeVersion": 1.1, "position": [240, 300] }, { "parameters": { "url": "={{ $env.EMAIL_API_URL }}/api/translate-unread", "method": "POST", "sendHeaders": true, "headerParameters": { "parameters": [ { "name": "Content-Type", "value": "application/json" }, { "name": "X-API-Key", "value": "={{ $env.EMAIL_API_KEY }}" } ] }, "options": { "timeout": 120000, "response": { "response": { "responseFormat": "json" } } } }, "id": "translate-emails", "name": "翻译未读邮件", "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.1, "position": [460, 300] }, { "parameters": { "conditions": { "options": { "caseSensitive": true, "leftValue": "", "typeValidation": "strict" }, "conditions": [ { "id": "success-check", "leftValue": "={{ $json.success }}", "rightValue": true, "operator": { "type": "boolean", "operation": "equals" } }, { "id": "has-emails", "leftValue": "={{ $json.count }}", "rightValue": 0, "operator": { "type": "number", "operation": "gt" } } ], "combinator": "and" }, "options": {} }, "id": "check-has-emails", "name": "检查是否有邮件", "type": "n8n-nodes-base.if", "typeVersion": 2, "position": [680, 300] }, { "parameters": { "url": "={{ $env.FEISHU_WEBHOOK }}", "method": "POST", "sendBody": true, "specifyBody": "json", "jsonBody": "={{ $json.lark_message }}", "options": { "timeout": 10000 } }, "id": "send-lark", "name": "发送飞书通知", "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.1, "position": [900, 240] }, { "parameters": { "url": "={{ $env.EMAIL_API_URL }}/api/mark-read", "method": "POST", "sendHeaders": true, "sendBody": true, "specifyBody": "json", "headerParameters": { "parameters": [ { "name": "Content-Type", "value": "application/json" }, { "name": "X-API-Key", "value": "={{ $env.EMAIL_API_KEY }}" } ] }, "jsonBody": "={{ $json.email_ids }}", "options": { "timeout": 30000 } }, "id": "mark-read", "name": "标记已读", "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.1, "position": [1120, 240] }, { "parameters": { "content": "## ✅ 完成\n\n已发送通知并标记已读", "height": 80, "width": 150 }, "id": "done", "name": "完成", "type": "n8n-nodes-base.stickyNote", "typeVersion": 1, "position": [1340, 240] }, { "parameters": { "content": "## 📭 无邮件\n\n没有未读邮件", "height": 80, "width": 150 }, "id": "no-emails", "name": "无未读邮件", "type": "n8n-nodes-base.stickyNote", "typeVersion": 1, "position": [900, 360] } ], "pinData": {}, "connections": { "定时触发": { "main": [ [ { "node": "翻译未读邮件", "type": "main", "index": 0 } ] ] }, "翻译未读邮件": { "main": [ [ { "node": "检查是否有邮件", "type": "main", "index": 0 } ] ] }, "检查是否有邮件": { "main": [ [ { "node": "发送飞书通知", "type": "main", "index": 0 } ], [ { "node": "无未读邮件", "type": "main", "index": 0 } ] ] }, "发送飞书通知": { "main": [ [ { "node": "标记已读", "type": "main", "index": 0 } ] ] }, "标记已读": { "main": [ [ { "node": "完成", "type": "main", "index": 0 } ] ] } }, "active": false, "settings": { "executionOrder": "v1" }, "versionId": "1", "id": "email-translate-workflow", "meta": { "instanceId": "default" }, "tags": [ { "name": "邮件翻译" } ] }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/leeguooooo/email-mcp-service'

If you have feedback or need assistance with the MCP directory API, please join our Discord server