{
  "name": "Multilingual email auto-replies with DeepL, GPT-4o and Slack human approval",
  "nodes": [
    {
      "id": "c1a5ba21-c74b-404a-bc72-af5329eb2d96",
      "name": "Gmail Trigger",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        192,
        848
      ]
    },
    {
      "id": "c45f19d1-0c2c-4102-b8c7-bf925c3ac604",
      "name": "Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        416,
        848
      ]
    },
    {
      "id": "92fb5d5c-d0b5-4cf9-9881-de0311e7866b",
      "name": "Translate Email",
      "type": "n8n-nodes-base.deepL",
      "position": [
        640,
        848
      ]
    },
    {
      "id": "d9c943cf-4a6b-40d7-ba42-8640b89f9675",
      "name": "Generate AI Response",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        864,
        848
      ]
    },
    {
      "id": "416e8388-fc58-4785-9af8-6d81e1deed3a",
      "name": "Request Approval",
      "type": "n8n-nodes-base.slack",
      "position": [
        1184,
        848
      ]
    },
    {
      "id": "679dd134-f1d1-4698-b04b-8fe01bd72a7b",
      "name": "Wait for Approval",
      "type": "n8n-nodes-base.wait",
      "position": [
        1392,
        848
      ]
    },
    {
      "id": "997f7385-b66b-4e04-ac9d-574842b8bfea",
      "name": "Send Email Reply",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1616,
        848
      ]
    },
    {
      "id": "5334a474-dbe0-4a50-a783-70a497da92df",
      "name": "Mark as Processed",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1840,
        848
      ]
    },
    {
      "id": "f43b85f6-e8cb-4864-810a-e082604c5258",
      "name": "📋 Template Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -336,
        496
      ],
      "parameters": {
        "width": 450,
        "height": 676,
        "content": "## 💡 How to Use This Template\n\nThis workflow creates an intelligent email assistant that:\n- **Translates** incoming emails to your preferred language\n- **Generates** AI-powered summaries and draft rep"
      }
    },
    {
      "id": "00a54c3e-c863-451f-988c-c3a8e3e1590b",
      "name": "Step 1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        144,
        1024
      ],
      "parameters": {
        "width": 200,
        "height": 96,
        "content": "### 1️⃣ Email Detection\nMonitors Gmail for emails with your specified label"
      }
    },
    {
      "id": "08fa9fac-4c89-4308-80c3-8425c2b38aeb",
      "name": "Step 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        368,
        1024
      ],
      "parameters": {
        "width": 200,
        "height": 80,
        "content": "### 2️⃣ Configuration\nSet your Slack channel ID for notifications"
      }
    },
    {
      "id": "9b8c3f04-a90e-43a8-b203-bc331bc39663",
      "name": "Step 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        592,
        1024
      ],
      "parameters": {
        "width": 200,
        "height": 112,
        "content": "### 3️⃣ Translation\nAutomatically translates email content using DeepL"
      }
    },
    {
      "id": "0c1565c4-2b3b-4195-b7d5-445821a784ae",
      "name": "Step 4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        880,
        1040
      ],
      "parameters": {
        "width": 200,
        "height": 80,
        "content": "### 4️⃣ AI Processing\nGenerates summary and professional reply draft"
      }
    },
    {
      "id": "ab1ecdfc-f613-4abb-9016-8b5964f3696a",
      "name": "Step 5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1232,
        1040
      ],
      "parameters": {
        "width": 200,
        "height": 80,
        "content": "### 5️⃣ Human Approval\nSends approval request to Slack with one-click link"
      }
    },
    {
      "id": "b41a1a15-4054-4306-b43f-8e1e4037a899",
      "name": "Step 6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1584,
        1040
      ],
      "parameters": {
        "width": 200,
        "height": 80,
        "content": "### 6️⃣ Send Reply\nAutomatically sends the approved email response"
      }
    }
  ],
  "connections": {
    "Configuration": {
      "main": [
        [
          {
            "node": "Translate Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gmail Trigger": {
      "main": [
        [
          {
            "node": "Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Translate Email": {
      "main": [
        [
          {
            "node": "Generate AI Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Request Approval": {
      "main": [
        [
          {
            "node": "Wait for Approval",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Email Reply": {
      "main": [
        [
          {
            "node": "Mark as Processed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait for Approval": {
      "main": [
        [
          {
            "node": "Send Email Reply",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate AI Response": {
      "main": [
        [
          {
            "node": "Request Approval",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}