This workflow follows the Postgres → Telegram recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"name": "wf_event_ok_handler",
"nodes": [
{
"parameters": {
"path": "zabbix/ok",
"httpMethod": "POST"
},
"id": "1",
"name": "Webhook OK",
"type": "n8n-nodes-base.webhook",
"typeVersion": 2,
"position": [
200,
300
]
},
{
"parameters": {
"operation": "executeQuery",
"query": "UPDATE isp.tickets SET estado='CERRADO' WHERE ticket_id='{{$json.ticket_id}}';"
},
"id": "2",
"name": "Close Ticket",
"type": "n8n-nodes-base.postgres",
"typeVersion": 2.5,
"position": [
500,
300
]
},
{
"parameters": {
"chatId": "={{$env.TELEGRAM_CHAT_ID}}",
"text": "Ticket {{$json.ticket_id}} resuelto por Zabbix (estado OK)."
},
"id": "3",
"name": "Notify Telegram",
"type": "n8n-nodes-base.telegram",
"typeVersion": 1,
"position": [
800,
300
]
}
],
"connections": {
"Webhook OK": {
"main": [
[
{
"node": "Close Ticket",
"type": "main",
"index": 0
}
]
]
},
"Close Ticket": {
"main": [
[
{
"node": "Notify Telegram",
"type": "main",
"index": 0
}
]
]
}
}
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
wf_event_ok_handler. Uses postgres, telegram. Webhook trigger; 3 nodes.
Source: https://github.com/tecno-consultores/ISP-Copilot/blob/main/workflows/wf_event_ok_handler.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
Admin Handler. Uses telegram, postgres. Webhook trigger; 50 nodes.
Settings. Uses httpRequest, postgres, telegram. Webhook trigger; 38 nodes.
This n8n workflow automates task creation and scheduled reminders for users via a Telegram bot, ensuring timely notifications across multiple channels like email and Slack. It streamlines task managem
Teams that need a manager approval step before a ticket or request can change status. Great for internal ops, IT requests, or any workflow where “a human must sign off.” 📨 Manager receives approval/re