# Telegram AI agent with tool access control via Airtable permissions
This automation enables secure use of AI agents in Telegram with role-based access control to tools defined in Airtable. Designed for internal bots where functionality must be restricted by user role or permission level.
## Who it´s for
- Companies using Telegram bots for internal operations with permission tiers
- Administrators who need to manage employee access to AI agent features
- Automation developers building role-based tool access systems
## What the automation does
- Triggers on incoming Telegram message from a user
- Retrieves user data (role, allowed tools) from Airtable
- Dynamically configures an AI agent with only permitted tools enabled
- Returns a denial message if a restricted tool is requested
- Includes a dedicated weather sub-agent with isolated memory and access rules
- Sends an error notification if the user is not found in the database
## What´s included
- Ready-to-use n8n workflow with LangChain agent logic
- Trigger and handler logic based on Telegram messages
- Integrations with Telegram, Airtable, OpenWeather API (via Open-Meteo), OpenAI API
- Basic text instructions for setup and adaptation
## Requirements for setup
- n8n account with workflow execution access
- Active Telegram bot and its API token
- Airtable base with fields: user_id, role, allowed_tools
- API keys: OpenAI, Open-Meteo (for weather queries)
## Benefits and outcomes
- Enables secure AI agent usage within teams
- Prevents unauthorized or accidental tool access
- Simplifies permission management via a single editable table
- Supports nested agents with isolated memory and access zones
- Allows rapid onboarding of new users with predefined access levels
## Important: template only
Important: you are purchasing a ready-made automation workflow template only. Rollout into your infrastructure, connecting specific accounts and services, 1:1 setup help, custom adjustments for non-standard stacks and any consulting support are provided as a separate paid service at an individual rate. To discuss custom work or 1:1 help, contact via chat
No feedback yet