This n8n workflow lets you control access to your internal Telegram bots and automation systems based on user roles and departments.
It ensures that only authorized team members โ defined in your employee database โ can interact with specific parts of your workflow.
Perfect for agencies, internal tools, or multi-team organizations where permissions differ across roles (e.g., Marketing, Sales, Administration).
โก Receive Message (Telegram Trigger)
Purpose: Captures incoming messages from users interacting with your Telegram bot.
When a user sends any message to the bot, the workflow retrieves their Telegram username and triggers the process.
Provides a secure and instant entry point for validating user identity before running any internal logic.
๐ Employee Database (Data Table Node)
Purpose: Fetches user details such as Position and Type from your internal employee table.
Structure Example:
UserName===Position===Type
User_1===Marketing===SEO
User_2===Administration===Manager
User_3===Marketing===Target
Centralized employee management โ you can update access levels (roles or departments) directly in the data table without editing the workflow.
Purpose: Determines the userโs department or role level (e.g., Marketing, Sales, Administration).
Purpose: Performs a second-level check โ filters users by Type (e.g., SEO, SMM, Target).
Marketing โ SEO โ Send to SEO workflow branch
Marketing โ Target โ Send to Ads branch
Administration โ Manager โ Grant full access
Sales โ Employee โ Limited access
Allows multi-level, role-based logic with different automation paths for each team or position.
๐ฌ No Operation Nodes (Placeholders)
Purpose: Represent different action branches โ each can later be replaced with the logic specific to that department.
โTargetโ branch โ connect to ad performance automation
โSEOโ branch โ connect to Google Search Console reports
โSalesโ branch โ connect to CRM updates
A flexible access framework โ ready to integrate with any process per department.
๐ Workflow Overview Table
Section Node Name Purpose
๐ Granular Access Control: Multi-level permission logic (Position + Role).
โ๏ธ Dynamic Role Management: Update access directly in your data table โ no redeployment needed.
๐งฑ Modular Design: Add or replace department branches without affecting core logic.
๐ Scalable Foundation: Perfect base for enterprise-grade permission systems or multi-team bots.
๐ Cross-Platform Ready: Can be adapted for Slack, Discord, or internal chat tools.