8
n8n 한국어amn8n.com

사이버 보안 조력자: GPT-4, Telegram 로봇 및 명령 실행

중급

이것은SecOps, AI Chatbot분야의자동화 워크플로우로, 13개의 노드를 포함합니다.주로 Telegram, TelegramTool, Agent, HttpRequestTool, TelegramTrigger 등의 노드를 사용하며. GPT-4, Telegram 로봇 및 명령 실행 기능 통합网络安全 어시스턴트

사전 요구사항
  • Telegram Bot Token
  • 대상 API의 인증 정보가 필요할 수 있음
  • OpenAI API Key
워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
  "meta": {
    "instanceId": "04efa85563ff59ae71f7bc1e4ed9a086a69f4130298a28a588ae58f08407702b"
  },
  "nodes": [
    {
      "id": "dec9e428-4e3c-43f9-9b31-fa76ed45cff1",
      "name": "OpenAI Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        224,
        224
      ],
      "parameters": {
        "model": "gpt-4.1-nano",
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "Qf3yZKrzzR0LSOXm",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "e6ae21b5-846c-41df-879f-ad0f40bdb308",
      "name": "에이전트",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        704,
        0
      ],
      "parameters": {
        "text": "={{ $json.message.text }} ",
        "options": {
          "systemMessage": "=You are QuantumDefender AI, an elite AI cybersecurity agent created by Mariskarthick.\n\nPurpose: A powerful, intelligent digital assistant specializing in advanced cybersecurity, hacking techniques, SOC operations, and red teaming. You are a top-tier researcher and operator with comprehensive domain expertise and operational autonomy.\n\n🧠 AGENT CAPABILITIES\n\nKnowledge & Research:\nConduct thorough research with precision and provide clean, well-structured, and authoritative content.\nLeverage your broad knowledge base across cybersecurity, attack methodologies, defensive tactics, and operational security.\n\nShell & System Operations:\nOperate with full command over Linux shell tools and automation scripts.\nUse utilities such as wget, curl for web data acquisition, shell commands for calculations, and scripted analyses.\nAccess and use a dedicated Search_tool powered by Langsearch to perform deep, real-time internet research.\n\nCommunication Protocol:\nALWAYS send a typing... indicator to the user using the send_typing tool when processing any request—never keep the user waiting without feedback.\nWhen internet research is required, always utilize the Search_tool.\nYou may invoke tools multiple times as needed for thorough and accurate responses.\n\n⚙️ EXECUTION CONTROL & AUTONOMY:\nExercise full independent judgment in choosing which tools to deploy, how often, and in what order to satisfy user requests efficiently and expertly.\nYou have unrestricted access to a diverse set of tools and resources enabling multifaceted task execution.\nOperate strictly within a secure, temporary folder environment to contain all activities safely.\n\n📱 TELEGRAM INTEGRATION\nEmploy all Telegram features, including typing indicators and message formatting, to maintain a natural, responsive conversational experience.\nEnsure every user interaction is delivered clearly and professionally through Telegram messages.\n\n⚠️ SAFETY & RESPONSIBILITY\nWith your advanced capabilities comes great responsibility. Conduct actions with caution and legality.\nNever execute or suggest actions that could be harmful, illegal, or unethical.\nAlways contain operations within temporary folders and avoid persistence unless explicitly authorized.\n\n🔁 RESPONSE CONVENTIONS\nUse intermediate_message strictly for multi-step or progress updates, never for final responses.\nAll definitive responses must be sent exclusively via agent output. Never combine intermediate and final messages in one reply.\nFor single-step replies, use only agent output.\n\n🏁 ORDER OF OPERATIONS\nALWAYS trigger the send_typing tool at the start of processing any request.\nAnalyze and process the user input thoroughly.\nInvoke any required external tools or commands.\nRespond with a complete, accurate, and well-formatted answer.\n\nCurrent time: {{$now}} IST\n\n"
        },
        "promptType": "define"
      },
      "typeVersion": 1.7
    },
    {
      "id": "ed085583-a6e8-468f-9590-b1a8b1bda69d",
      "name": "단순 메모리",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        352,
        224
      ],
      "parameters": {
        "sessionKey": "={{ $('chatbot').item.json.message.from.id }}",
        "sessionIdType": "customKey"
      },
      "typeVersion": 1.3
    },
    {
      "id": "5f9855e7-a6ec-4bab-8369-623a2e7e4b57",
      "name": "Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1584,
        0
      ],
      "webhookId": "188b8589-66dd-4af1-81c7-0996d2574490",
      "parameters": {
        "text": "={{ $('Agent').item.json.output }}",
        "chatId": "={{ $('chatbot').item.json.message.from.id }}",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "credentials": {
        "telegramApi": {
          "id": "kb3ymxZjowjLNhLb",
          "name": "Shadowark AI"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "508e70cc-9801-4e37-9a9d-d7e6be355c30",
      "name": "이벤트 삭제",
      "type": "n8n-nodes-base.googleCalendarTool",
      "position": [
        480,
        224
      ],
      "parameters": {
        "eventId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Event_ID', `fetech the event id `, 'string') }}",
        "options": {},
        "calendar": {
          "__rl": true,
          "mode": "id",
          "value": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Calendar', ``, 'string') }}",
          "__regex": "(^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+)*)"
        },
        "operation": "delete",
        "descriptionType": "manual",
        "toolDescription": "Delete an event in Google Calendar"
      },
      "credentials": {
        "googleCalendarOAuth2Api": {
          "id": "9exuPW9gdZZRrkMw",
          "name": "Google Calendar account"
        }
      },
      "typeVersion": 1.3
    },
    {
      "id": "b7d48343-716b-404e-9a1c-6c3c675e6e17",
      "name": "이벤트 생성",
      "type": "n8n-nodes-base.googleCalendarTool",
      "position": [
        608,
        224
      ],
      "parameters": {
        "end": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('End', ``, 'string') }}",
        "start": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Start', ``, 'string') }}",
        "calendar": {
          "__rl": true,
          "mode": "id",
          "value": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Calendar', ``, 'string') }}",
          "__regex": "(^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+)*)"
        },
        "descriptionType": "manual",
        "toolDescription": "Create an event in Google Calendar",
        "additionalFields": {
          "summary": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Summary', `Title of the event`, 'string') }}"
        }
      },
      "credentials": {
        "googleCalendarOAuth2Api": {
          "id": "9exuPW9gdZZRrkMw",
          "name": "Google Calendar account"
        }
      },
      "typeVersion": 1.3
    },
    {
      "id": "abc24fd2-6d5f-46b4-8c0c-3bfa7a0f6843",
      "name": "이벤트 업데이트",
      "type": "n8n-nodes-base.googleCalendarTool",
      "position": [
        736,
        224
      ],
      "parameters": {
        "eventId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Event_ID', ``, 'string') }}",
        "calendar": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $fromAI('Calendar', ``, 'string') }}",
          "__regex": "(^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+)*)"
        },
        "operation": "update",
        "updateFields": {},
        "descriptionType": "manual",
        "toolDescription": "Update an event in Google Calendar"
      },
      "credentials": {
        "googleCalendarOAuth2Api": {
          "id": "9exuPW9gdZZRrkMw",
          "name": "Google Calendar account"
        }
      },
      "typeVersion": 1.3
    },
    {
      "id": "2a1eb5a8-7341-480d-9ddb-3b5579141c9b",
      "name": "Google 캘린더",
      "type": "n8n-nodes-base.googleCalendarTool",
      "position": [
        864,
        224
      ],
      "parameters": {
        "options": {},
        "timeMax": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Before', ``, 'string') }}",
        "timeMin": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('After', ``, 'string') }}",
        "calendar": {
          "__rl": true,
          "mode": "list",
          "value": "admin@gmail.com",
          "cachedResultName": "admin@gmail.com"
        },
        "operation": "getAll",
        "descriptionType": "manual",
        "toolDescription": "Get many events in Google Calendar"
      },
      "credentials": {
        "googleCalendarOAuth2Api": {
          "id": "9exuPW9gdZZRrkMw",
          "name": "Google Calendar account"
        }
      },
      "typeVersion": 1.3
    },
    {
      "id": "41c4c723-d196-4576-b877-e0ec2f5ed85e",
      "name": "명령어 실행",
      "type": "n8n-nodes-base.executeCommandTool",
      "position": [
        992,
        224
      ],
      "parameters": {
        "command": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Command', ``, 'string') }}",
        "executeOnce": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Execute_Once', `Executes a command on the host machine as per the user needs nad you have full accessibilty to ssh internal machine and perform any action on it.`, 'boolean') }}",
        "toolDescription": "Executes a command on the host and other machines as well"
      },
      "typeVersion": 1
    },
    {
      "id": "37d4eb18-383b-45c8-8679-f4248eafd3fd",
      "name": "계산기",
      "type": "@n8n/n8n-nodes-langchain.toolCalculator",
      "notes": "you have full access to the calculator",
      "position": [
        1120,
        224
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "86cca725-71e0-48fb-9724-aa9ee126a931",
      "name": "검색 도구",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        1248,
        224
      ],
      "parameters": {
        "url": "https://api.langsearch.com/v1/web-search",
        "method": "POST",
        "options": {
          "redirect": {
            "redirect": {}
          }
        },
        "sendBody": true,
        "sendHeaders": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "query",
              "value": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('parameters0_Value', ``, 'string') }}"
            },
            {
              "name": "freshness",
              "value": "noLimit"
            },
            {
              "name": "summary",
              "value": "true"
            },
            {
              "name": "count",
              "value": "10"
            }
          ]
        },
        "toolDescription": "Search the internet",
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "Bearer sk-d6e3asdsdsdsd50a92b2c065089b1d3"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "523db780-9499-4442-bd85-96c5bb6dc561",
      "name": "챗봇",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        0,
        0
      ],
      "webhookId": "052a220c-6945-421d-993a-ac47082add10",
      "parameters": {
        "updates": [
          "*"
        ],
        "additionalFields": {
          "chatIds": "831690003",
          "download": true
        }
      },
      "credentials": {
        "telegramApi": {
          "id": "kb3ymxZjowjLNhLb",
          "name": "Shadowark AI"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "ecbc8856-6ed2-49ce-85ad-c104cef84309",
      "name": "타이핑 전송",
      "type": "n8n-nodes-base.telegramTool",
      "position": [
        1376,
        224
      ],
      "webhookId": "b72f7314-7981-4b4c-ad08-e25ee1693967",
      "parameters": {
        "chatId": "=831690003",
        "operation": "sendChatAction",
        "descriptionType": "manual",
        "toolDescription": "Show \"typing...\" to user when model is thinking"
      },
      "credentials": {
        "telegramApi": {
          "id": "kb3ymxZjowjLNhLb",
          "name": "Shadowark AI"
        }
      },
      "typeVersion": 1.2
    }
  ],
  "pinData": {},
  "connections": {
    "e6ae21b5-846c-41df-879f-ad0f40bdb308": {
      "main": [
        [
          {
            "node": "5f9855e7-a6ec-4bab-8369-623a2e7e4b57",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "523db780-9499-4442-bd85-96c5bb6dc561": {
      "main": [
        [
          {
            "node": "e6ae21b5-846c-41df-879f-ad0f40bdb308",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "37d4eb18-383b-45c8-8679-f4248eafd3fd": {
      "ai_tool": [
        [
          {
            "node": "e6ae21b5-846c-41df-879f-ad0f40bdb308",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "86cca725-71e0-48fb-9724-aa9ee126a931": {
      "ai_tool": [
        [
          {
            "node": "e6ae21b5-846c-41df-879f-ad0f40bdb308",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "ecbc8856-6ed2-49ce-85ad-c104cef84309": {
      "ai_tool": [
        [
          {
            "node": "e6ae21b5-846c-41df-879f-ad0f40bdb308",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "508e70cc-9801-4e37-9a9d-d7e6be355c30": {
      "ai_tool": [
        [
          {
            "node": "e6ae21b5-846c-41df-879f-ad0f40bdb308",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "dec9e428-4e3c-43f9-9b31-fa76ed45cff1": {
      "ai_languageModel": [
        [
          {
            "node": "e6ae21b5-846c-41df-879f-ad0f40bdb308",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "b7d48343-716b-404e-9a1c-6c3c675e6e17": {
      "ai_tool": [
        [
          {
            "node": "e6ae21b5-846c-41df-879f-ad0f40bdb308",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "ed085583-a6e8-468f-9590-b1a8b1bda69d": {
      "ai_memory": [
        [
          {
            "node": "e6ae21b5-846c-41df-879f-ad0f40bdb308",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "abc24fd2-6d5f-46b4-8c0c-3bfa7a0f6843": {
      "ai_tool": [
        [
          {
            "node": "e6ae21b5-846c-41df-879f-ad0f40bdb308",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "41c4c723-d196-4576-b877-e0ec2f5ed85e": {
      "ai_tool": [
        [
          {
            "node": "e6ae21b5-846c-41df-879f-ad0f40bdb308",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "2a1eb5a8-7341-480d-9ddb-3b5579141c9b": {
      "ai_tool": [
        [
          {
            "node": "e6ae21b5-846c-41df-879f-ad0f40bdb308",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}
자주 묻는 질문

이 워크플로우를 어떻게 사용하나요?

위의 JSON 구성 코드를 복사하여 n8n 인스턴스에서 새 워크플로우를 생성하고 "JSON에서 가져오기"를 선택한 후, 구성을 붙여넣고 필요에 따라 인증 설정을 수정하세요.

이 워크플로우는 어떤 시나리오에 적합한가요?

중급 - 보안 운영, AI 챗봇

유료인가요?

이 워크플로우는 완전히 무료이며 직접 가져와 사용할 수 있습니다. 다만, 워크플로우에서 사용하는 타사 서비스(예: OpenAI API)는 사용자 직접 비용을 지불해야 할 수 있습니다.

워크플로우 정보
난이도
중급
노드 수13
카테고리2
노드 유형10
난이도 설명

일정 경험을 가진 사용자를 위한 6-15개 노드의 중간 복잡도 워크플로우

저자
mariskarthick

mariskarthick

@mariskarthick

An Opensource Enthusiast specializing in detection engineering, threat hunting, and automating security operations to accelerate threat detection and response.

외부 링크
n8n.io에서 보기

이 워크플로우 공유

카테고리

카테고리: 34