8
n8n ํ•œ๊ตญ์–ดamn8n.com

๐Ÿ“จ Gmail ์ด๋ฉ”์ผ AI ์š”์•ฝ์„ Telegram์œผ๋กœ ์ „์†ก

์ค‘๊ธ‰

์ด๊ฒƒ์€Other, AI๋ถ„์•ผ์˜์ž๋™ํ™” ์›Œํฌํ”Œ๋กœ์šฐ๋กœ, 7๊ฐœ์˜ ๋…ธ๋“œ๋ฅผ ํฌํ•จํ•ฉ๋‹ˆ๋‹ค.์ฃผ๋กœ Set, Telegram, GmailTrigger, Agent, LmChatOpenAi ๋“ฑ์˜ ๋…ธ๋“œ๋ฅผ ์‚ฌ์šฉํ•˜๋ฉฐ์ธ๊ณต์ง€๋Šฅ ๊ธฐ์ˆ ์„ ๊ฒฐํ•ฉํ•˜์—ฌ ์Šค๋งˆํŠธ ์ž๋™ํ™”๋ฅผ ๊ตฌํ˜„ํ•ฉ๋‹ˆ๋‹ค. Gmail์—์„œ Telegram์œผ๋กœ: OpenAI GPT-4o๋ฅผ ์‚ฌ์šฉํ•œ ๋ฉ”์ผ ์š”์•ฝ

์‚ฌ์ „ ์š”๊ตฌ์‚ฌํ•ญ
  • โ€ขTelegram Bot Token
  • โ€ขGoogle ๊ณ„์ • ๋ฐ Gmail API ์ธ์ฆ ์ •๋ณด
  • โ€ขOpenAI API Key

์‚ฌ์šฉ๋œ ๋…ธ๋“œ (7)

์นดํ…Œ๊ณ ๋ฆฌ

์›Œํฌํ”Œ๋กœ์šฐ ๋ฏธ๋ฆฌ๋ณด๊ธฐ
๋…ธ๋“œ ์—ฐ๊ฒฐ ๊ด€๊ณ„๋ฅผ ์‹œ๊ฐ์ ์œผ๋กœ ํ‘œ์‹œํ•˜๋ฉฐ, ํ™•๋Œ€/์ถ•์†Œ ๋ฐ ์ด๋™์„ ์ง€์›ํ•ฉ๋‹ˆ๋‹ค
์›Œํฌํ”Œ๋กœ์šฐ ๋‚ด๋ณด๋‚ด๊ธฐ
๋‹ค์Œ JSON ๊ตฌ์„ฑ์„ ๋ณต์‚ฌํ•˜์—ฌ n8n์— ๊ฐ€์ ธ์˜ค๋ฉด ์ด ์›Œํฌํ”Œ๋กœ์šฐ๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค
{
  "id": "c0Ti00TfFE1MdpZd",
  "meta": {
    "instanceId": "a059b3dfdab56aa587cc6a2c8635f6f2700cf0c7064dbfb5981c26f7ad9eab88",
    "templateCredsSetupCompleted": true
  },
  "name": "๐Ÿ“จ Send AI summaries of incoming emails from Gmail to Telegram",
  "tags": [],
  "nodes": [
    {
      "id": "28581eaf-47f8-43ad-81cf-688d8f77a630",
      "name": "์—์ด์ „ํŠธ ํ•„๋“œ ์ค€๋น„",
      "type": "n8n-nodes-base.set",
      "position": [
        -80,
        -160
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "ffff425d-cd86-498a-9984-d4c97c082a7b",
              "name": "summary_language",
              "type": "string",
              "value": "={{ $json.summary_language }}"
            },
            {
              "id": "a6dc9f16-faa1-4d82-be3c-b80937563605",
              "name": "from",
              "type": "string",
              "value": "={{ $json.from?.text || $json.from?.value?.[0]?.address || 'Unknown sender' }}"
            },
            {
              "id": "c4f8daff-77e0-453f-82c2-751a8d6b8061",
              "name": "subject",
              "type": "string",
              "value": "={{ $json.subject }}"
            },
            {
              "id": "43c37703-1f05-4f20-9d6f-0f7c08be6462",
              "name": "message",
              "type": "string",
              "value": "={{ $json.html || $json.text || 'No message content available' }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "f72c5973-cc9d-4815-993c-ed7bd853fcc4",
      "name": "์ƒˆ ๋ฉ”์ผ ๋„์ฐฉ ์‹œ",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        -520,
        -160
      ],
      "parameters": {
        "simple": false,
        "filters": {},
        "options": {},
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        }
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "52DG6yepye2Q3ivM",
          "name": "Main email"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "95fb2d1e-efbb-4163-9e75-b85cf3fd50bf",
      "name": "์š”์•ฝ ์–ธ์–ด ์„ค์ •",
      "type": "n8n-nodes-base.set",
      "position": [
        -300,
        -160
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "148dcae1-3b72-4c28-b143-18b4b9877295",
              "name": "summary_language",
              "type": "string",
              "value": "english"
            }
          ]
        },
        "includeOtherFields": true
      },
      "typeVersion": 3.4
    },
    {
      "id": "8db9747f-c0a6-4044-837a-04212c8dbe56",
      "name": "OpenAI ๋ชจ๋ธ",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        228,
        60
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "hezW67W6g8iheWed",
          "name": "OpenAI"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "8823b3ab-4e9b-4be6-bf6c-9772f1fcd17e",
      "name": "Telegram๋กœ ์š”์•ฝ ์ „์†ก",
      "type": "n8n-nodes-base.telegram",
      "position": [
        516,
        -160
      ],
      "webhookId": "b38c3ed8-da48-4c6c-b5a3-181889dd3dd3",
      "parameters": {
        "text": "={{ $json.output }}",
        "chatId": "SAMPLE CHAT ID - CHANGE IT",
        "additionalFields": {
          "parse_mode": "Markdown",
          "appendAttribution": false
        }
      },
      "credentials": {
        "telegramApi": {
          "id": "tFFmBDMsBJhTfMxK",
          "name": "Sample Telegram account"
        }
      },
      "retryOnFail": true,
      "typeVersion": 1.2,
      "waitBetweenTries": 3000
    },
    {
      "id": "ad603819-26e0-41e8-b4bb-99d30cbc4902",
      "name": "์š”์•ฝ ์ƒ์„ฑ ์—์ด์ „ํŠธ",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        140,
        -160
      ],
      "parameters": {
        "text": "=Summarize the following email in this language: {{ $json.summary_language }}\n\nFrom: {{ $json.from }}\nSubject: {{ $json.subject }}\n\n{{ $json.message }}",
        "options": {
          "systemMessage": "You summarize emails in a short, natural, and informal way. Use a casual tone, like you're talking to a friend. Always write in the language specified by the user. Include who sent the email, what itโ€™s about, the most relevant details (like purchase info, prices, discounts, dates, or refund conditions), and ignore anything redundant or overly formal. Avoid robotic language, lists, or instructions like โ€œkeep this email.โ€ Just say what matters."
        },
        "promptType": "define"
      },
      "retryOnFail": true,
      "typeVersion": 1.9,
      "waitBetweenTries": 3000
    },
    {
      "id": "89b1c4b0-3de4-4a81-a57b-a5e4951ea654",
      "name": "์Šคํ‹ฐ์ปค ๋…ธํŠธ",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -540,
        -680
      ],
      "parameters": {
        "color": 5,
        "width": 1240,
        "height": 480,
        "content": "## ๐Ÿ“จ Send AI summaries of incoming emails from Gmail to Telegram\n\n### โ„น๏ธ ABOUT THIS WORKFLOW\nThis workflow will send you AI-generated summaries of all your Gmail incoming emails to Telegram.\n\n### ๐Ÿ› ๏ธ SETUP\n1. Create credentials for Gmail, Telegram, and OpenAI.\n2. Add the Gmail credential to the Gmail node.\n3. Add the OpenAI credential to the OpenAI Model node.\n4. Add the Telegram credential to the Telegram node.\n5. Set your Chat ID in the Telegram node; you can find it out by using Telegram's get ID bot.\n\n### ๐ŸŽจ CUSTOMIZING THE SUMMARIES\nYou can customize the generated summaries by:\n- Changing the language in the \"Set summary language\" node. You can type anything you want here, you can even specify a specific zone dialect.\n- Modifying the prompts (in the \"Summary generation agent\" node)\n- Selecting another model (in the \"OpenAI Model\" node)\n- You can also replace the \"OpenAI Model\" node with another provider, such as Anthropic or DeepSeek."
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "callerPolicy": "workflowsFromSameOwner",
    "executionOrder": "v1",
    "executionTimeout": -1
  },
  "versionId": "c6cbf099-6fdf-45c0-bb63-32132f175d10",
  "connections": {
    "8db9747f-c0a6-4044-837a-04212c8dbe56": {
      "ai_languageModel": [
        [
          {
            "node": "ad603819-26e0-41e8-b4bb-99d30cbc4902",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "95fb2d1e-efbb-4163-9e75-b85cf3fd50bf": {
      "main": [
        [
          {
            "node": "28581eaf-47f8-43ad-81cf-688d8f77a630",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "28581eaf-47f8-43ad-81cf-688d8f77a630": {
      "main": [
        [
          {
            "node": "ad603819-26e0-41e8-b4bb-99d30cbc4902",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ad603819-26e0-41e8-b4bb-99d30cbc4902": {
      "main": [
        [
          {
            "node": "8823b3ab-4e9b-4be6-bf6c-9772f1fcd17e",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "f72c5973-cc9d-4815-993c-ed7bd853fcc4": {
      "main": [
        [
          {
            "node": "95fb2d1e-efbb-4163-9e75-b85cf3fd50bf",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
์ž์ฃผ ๋ฌป๋Š” ์งˆ๋ฌธ

์ด ์›Œํฌํ”Œ๋กœ์šฐ๋ฅผ ์–ด๋–ป๊ฒŒ ์‚ฌ์šฉํ•˜๋‚˜์š”?

์œ„์˜ JSON ๊ตฌ์„ฑ ์ฝ”๋“œ๋ฅผ ๋ณต์‚ฌํ•˜์—ฌ n8n ์ธ์Šคํ„ด์Šค์—์„œ ์ƒˆ ์›Œํฌํ”Œ๋กœ์šฐ๋ฅผ ์ƒ์„ฑํ•˜๊ณ  "JSON์—์„œ ๊ฐ€์ ธ์˜ค๊ธฐ"๋ฅผ ์„ ํƒํ•œ ํ›„, ๊ตฌ์„ฑ์„ ๋ถ™์—ฌ๋„ฃ๊ณ  ํ•„์š”์— ๋”ฐ๋ผ ์ธ์ฆ ์„ค์ •์„ ์ˆ˜์ •ํ•˜์„ธ์š”.

์ด ์›Œํฌํ”Œ๋กœ์šฐ๋Š” ์–ด๋–ค ์‹œ๋‚˜๋ฆฌ์˜ค์— ์ ํ•ฉํ•œ๊ฐ€์š”?

์ค‘๊ธ‰ - ๊ธฐํƒ€, ์ธ๊ณต์ง€๋Šฅ

์œ ๋ฃŒ์ธ๊ฐ€์š”?

์ด ์›Œํฌํ”Œ๋กœ์šฐ๋Š” ์™„์ „ํžˆ ๋ฌด๋ฃŒ์ด๋ฉฐ ์ง์ ‘ ๊ฐ€์ ธ์™€ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๋‹ค๋งŒ, ์›Œํฌํ”Œ๋กœ์šฐ์—์„œ ์‚ฌ์šฉํ•˜๋Š” ํƒ€์‚ฌ ์„œ๋น„์Šค(์˜ˆ: OpenAI API)๋Š” ์‚ฌ์šฉ์ž ์ง์ ‘ ๋น„์šฉ์„ ์ง€๋ถˆํ•ด์•ผ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๊ด€๋ จ ์›Œํฌํ”Œ๋กœ์šฐ ์ถ”์ฒœ

AI ์ž๋™ํ™” ๋ฐ ์—์ด์ „ํŠธ ๊ตฌ์ถ• ๋ฐ ํŒ๋งค
ๆž„ๅปบไธŽํŒ๋งคAI์ž๋™ํ™”ไธŽ์Šค๋งˆํŠธไฝ“
If
Set
Wait
+
If
Set
Wait
74 ๋…ธ๋“œNICKYAI
๊ธฐํƒ€
MCP ์„œ๋ฒ„ ๊ธฐ๋ฐ˜ AI Telegram ์ž‘์—… ๊ด€๋ฆฌ์ž
MCP ์„œ๋ฒ„ ํ†ตํ•ฉ AI Telegram ์ž‘์—… ๊ด€๋ฆฌ ์‹œ์Šคํ…œ
Set
Switch
Telegram
+
Set
Switch
Telegram
21 ๋…ธ๋“œFrancis Njenga
๊ธฐํƒ€
Telegram์—์„œ AI๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์†Œ์…œ ๋ฏธ๋””์–ด ์ฝ˜ํ…์ธ  ์ƒ์„ฑ
Telegram์—์„œ AI๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์†Œ์…œ ๋ฏธ๋””์–ด ์ฝ˜ํ…์ธ ๋ฅผ ๋งŒ๋“ค๊ธฐ
Set
Switch
Telegram
+
Set
Switch
Telegram
16 ๋…ธ๋“œOnur
๊ธฐํƒ€
GPT-4์™€ Telegram์„ ํ†ตํ•ด ๋งค์ผ AI ๋‰ด์Šค ๋ฒˆ์—ญ ๋ฐ ์š”์•ฝ
GPT-4์™€ Telegram์„ ํ†ตํ•ด ๋ฐœ์†ก๋œ ์ผ์ผ AI ๋‰ด์Šค ๋ฒˆ์—ญ ๋ฐ ์š”์•ฝ
Set
Merge
Telegram
+
Set
Merge
Telegram
12 ๋…ธ๋“œSamirLiu
๊ธฐํƒ€
๋ฎค์ง ์ƒ์„ฑ ์›Œํฌํ”Œ๋กœ์šฐ
Suno API, Flux, Runway ๋ฐ Creatomate๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ AI ๋…ธ๋ž˜ ๋ฐ ์Œ์•… ๋น„๋””์˜ค ์ƒ์„ฑ
Set
Wait
Merge
+
Set
Wait
Merge
60 ๋…ธ๋“œJoseph
๊ธฐํƒ€
Telegram์—์„œ AI ์—์ด์ „ํŠธ๋ฅผ ํ†ตํ•ด ์‹์‚ฌ ์˜์–‘์„ Google Sheets์— ๊ธฐ๋ก
Telegram์—์„œ ์‹์‚ฌ ์˜์–‘ ์ •๋ณด๋ฅผ Google Sheets์— ๊ธฐ๋กํ•˜๋Š” AI ๋Œ€๋ฆฌ์ž ์‚ฌ์šฉ
If
Set
Code
+
If
Set
Code
23 ๋…ธ๋“œPollupAI
๊ธฐํƒ€
์›Œํฌํ”Œ๋กœ์šฐ ์ •๋ณด
๋‚œ์ด๋„
์ค‘๊ธ‰
๋…ธ๋“œ ์ˆ˜7
์นดํ…Œ๊ณ ๋ฆฌ2
๋…ธ๋“œ ์œ ํ˜•6
๋‚œ์ด๋„ ์„ค๋ช…

์ผ์ • ๊ฒฝํ—˜์„ ๊ฐ€์ง„ ์‚ฌ์šฉ์ž๋ฅผ ์œ„ํ•œ 6-15๊ฐœ ๋…ธ๋“œ์˜ ์ค‘๊ฐ„ ๋ณต์žก๋„ ์›Œํฌํ”Œ๋กœ์šฐ

์ €์ž
Lucรญa Maio Brioso

Lucรญa Maio Brioso

@luciamb

I'm a backend software developer who loves n8n โš™๏ธ I enjoy automating everything and share templates I personally find helpful ๐Ÿ’ก

์™ธ๋ถ€ ๋งํฌ
n8n.io์—์„œ ๋ณด๊ธฐ โ†’

์ด ์›Œํฌํ”Œ๋กœ์šฐ ๊ณต์œ 

์นดํ…Œ๊ณ ๋ฆฌ

์นดํ…Œ๊ณ ๋ฆฌ: 34