Monitor VPS security with GPT-4 mini analysis via SSH and Telegram alerts
Ready for 3.0What this workflow does
This AI workflow has 10 nodes and runs on a schedule (every 6 hours). Along the way it connects OpenAI Chat Model and Telegram.
How it runs
Trigger: On a schedule (every 6 hours).
- Configuration - User Settings (Edit Fields (Set)): sets 3 fields: admin_telegram_id, server_name, alert_level
- SSH: uses SSH
- AI Security Analysis (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI GPT-4 Mini Model; output parser: Parse Security Analysis Results
- Check for Malicious Activity (If): checks a condition and branches into true / false
- Check for Suspicious Activity (If): checks a condition and branches into true / false
- Send Malicious Activity Alert (Telegram): uses Telegram
- Send Suspicious Activity Notice (Telegram): uses Telegram
Services it uses
Other Telegram + OpenAI templates (807)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (8)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - SSH
n8n-nodes-base.ssh - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - If
n8n-nodes-base.if - Telegram
n8n-nodes-base.telegram - Edit Fields (Set)
n8n-nodes-base.set
From the author
Monitor VPS security with AI analysis via SSH and Telegram alerts This n8n template automatically monitors your VPS for suspicious processes and network connections using AI analysis. It connects to your server via SSH, analyzes running processes, and sends…