Automate multi-channel task reminders using a powerful n8n workflow, PostgreSQL, Slack, Telegram, and Email. Use this robust n8n template for reliable scheduling and delivery.
Download this n8n workflow template and start using it instantly.
System administrators and developers building notification microservices.
Teams needing centralized, configurable reminder scheduling.
Users looking for robust, complex n8n templates for multi-channel communication.
Anyone requiring a resilient, database-backed automation solution using n8n.
This robust automation solves the challenge of creating a reliable, multi-channel task notification system. By utilizing an n8n workflow, tasks are ingested via a dedicated webhook and stored securely in a PostgreSQL database. A crucial part of this system is the scheduled n8n trigger that periodically checks for due tasks. The primary value proposition lies in its dynamic routing capability, allowing the user to specify their preferred communication channel—Email, Slack, or Telegram—upon task creation. This advanced n8n workflow architecture ensures that mission-critical reminders are delivered reliably where they are most likely to be seen, making it a highly valuable addition to any n8n automation collection. This template showcases best practices for using the PostgreSQL n8n node for data management and flow control within an n8n workflow.
The n8n workflow is structured into two main components: Task Ingestion and Reminder Distribution.
Webhook - Receive Task n8n trigger, submitting a JSON payload containing the task details.Validate Input n8n node enforces constraints, ensuring that userId, taskName, and reminderTime are provided. Failure here results in an immediate Error Response.Save Task to Database n8n node, where they are stored in PostgreSQL with a 'pending' status. A successful operation sends a positive Success Response.Schedule Trigger - Every 5 Minutes n8n trigger, which runs on a cron schedule (/5 *).Fetch Due Tasks n8n node queries PostgreSQL for pending tasks where the reminder_time is approaching or passed.Check Tasks Exist n8n node ensures the flow only continues if records were retrieved. The flow then splits records using the Split Into Items n8n node to process each task independently.Route by Channel n8n node dynamically routes the task based on the value in the channel field (email, slack, or telegram).Send Email Reminder, Send Slack Reminder, or Send Telegram Reminder) delivers the customized notification message.Update Task Status n8n node updates the task in PostgreSQL to 'sent', preventing duplicate notifications in future runs of this powerful n8n workflow.To deploy this comprehensive n8n workflow, follow these steps:
Save Task to Database, Fetch Due Tasks, and Update Task Status n8n nodes. Ensure your database contains the tasks table with the schema provided in the sticky note.Send Email Reminder n8n node.Send Slack Reminder n8n node.Send Telegram Reminder n8n node.Webhook - Receive Task n8n trigger and integrate it into your task creation system.This n8n workflow uses several critical n8n nodes to achieve robust functionality:
Webhook - Receive Task (n8n trigger): The primary entry point. It listens on a specific path (task-YOUROPENAIKEYHERE-webhook) to receive new task creation requests.
Postgres Node (Save Task to Database): Stores the validated task data. Key configurations include setting the operation to 'Insert' and specifying the target table (implied tasks table).
Schedule Trigger - Every 5 Minutes (n8n trigger): Periodically initiates the reminder checking process using the cron expression /5 .
Postgres Node (Fetch Due Tasks): Executes a custom SQL query (SELECT FROM tasks WHERE status = 'pending' AND remindertime <= NOW() + INTERVAL '5 minutes' AND remindertime > NOW()) to retrieve relevant records.
If Node (Validate Input & Check Tasks Exist): Essential for flow control. The validation node checks if key inputs are non-empty. The existence check verifies if the database returned any items.
Switch Node (Route by Channel): Determines the reminder delivery path based on the task's channel field, connecting the n8n flow to Email (Output 0), Slack (Output 1), or Telegram (Output 2).
Email Send Node (Send Email Reminder): Configured to send a personalized subject line (⏰ Task Reminder: {{ $json.taskname }}) and body content to the userid.
Slack Node (Send Slack Reminder): Sends a formatted markdown message, dynamically addressing the user via the userid retrieved from the database item.
Telegram Node (Send Telegram Reminder): Sends a message using Markdown formatting to the target chatId ({{ $json.userid }}).
Postgres Node (Update Task Status): Executes an UPDATE query to set status = 'sent' and sentat = NOW(), completing the loop for this powerful n8n node implementation.
Automate product feedback intake using an n8n workflow. Consolidate Telegram, Gmail, and Google Forms data, score via AI (RICE method), create Jira tickets, and generate Notion reports.

Automate event reminders across multiple channels (Slack, Email) using this robust, scheduled n8n workflow. Perfect for project managers needing reliable countdown alerts.

Automate customer support tickets from email and web forms using this advanced n8n workflow. Features automatic categorization, smart prioritization, templated auto-responses, and Slack alerts for efficient handling.

Centralize error management for your automations. This robust n8n workflow captures failures using the specialized n8n trigger and routes detailed alerts to Telegram, Gmail, and other channels. Download this n8n templates for reliable monitoring.

The AI Squad Initiative is a pioneering effort to build, automate and scale AI-powered workflows using n8n.io. Our mission is to help individuals and businesses integrate AI agents seamlessly into their daily operations from automating tasks and enhancing productivity to creating innovative, intelligent solutions. We design modular, reusable AI workflow templates that empower creators, developers and teams to supercharge their automation with minimal effort and maximum impact.







































