Templates / Access control for AI agents (RBAC) using Airtable and Telegram

Access control for AI agents (RBAC) using Airtable and Telegram

Needs changes

by Mario ✓ · 1,800 views · created 2025-05-11 · Engineering, AI Chatbot

Needs changes. This template uses 3 thing(s) that n8n 3.0 removes: LangChain Code (legacy), HTTP Request Tool (legacy), AI Agent v1 (old agent modes). 3 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 23 nodes and runs on Telegram events (message) (plus 1 other trigger). Along the way it connects OpenAI Chat Model, Telegram, Airtable and Wikipedia and 1 more. It also calls geocoding-api.open-meteo.com and api.open-meteo.com over HTTP.

How it runs

Trigger: On Telegram events (message) (plus 1 other trigger).

  1. Get user permissions (Airtable): search
  2. Settings (Edit Fields (Set)): sets 3 fields: chatInput, sessionId, allowed_tools
  3. Unknown user (If): checks a condition and branches into true / false
  4. Weather Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (Check permissions); memory: Simple Memory
  5. Reply: unknown user (Telegram): uses Telegram
  6. Set input (Edit Fields (Set)): sets 3 fields: name, granted_roles, allowed_tools
  7. Main Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 2 tools (Wikipedia, Check permissions); memory: Simple Memory
  8. Reply with results (Telegram): uses Telegram

Services it uses

OpenAI Chat ModelTelegramAirtableWikipediaHTTP Request

HTTP calls to: geocoding-api.open-meteo.com, api.open-meteo.com

Before you upgrade to n8n 3.0

3 things in this workflow are removed in n8n 3.0. Fix them before you upgrade:

  • LangChain Code (legacy) in Check permissions, Check permissions1: no direct replacement.
  • HTTP Request Tool (legacy) in get_coordinates, get_weather: replace with HTTP Request node connected to the AI Agent's Tool input.
  • AI Agent v1 (old agent modes) in Weather Agent (v1.8), Main Agent (v1.8): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
LangChain Code (legacy)
Check permissions, Check permissions1
No direct replacement
HTTP Request Tool (legacy)
get_coordinates, get_weather
HTTP Request node connected to the AI Agent's Tool input
AI Agent v1 (old agent modes)
Weather Agent (v1.8), Main Agent (v1.8)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (15)

From the author

Purpose This workflow allows granular control over the access to tools connected to AI Agents (including Multi-Agent setups) using Role Based Access Control. Demo & Explanation How it works - User permissions are managed in Airtable where every restricted AI…

Excerpt from Mario's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.