← All N8N workflows
AI & researchAgentAirtableCodeExecute Workflow TriggerIf

Agent Access Control Template

Configured with Agent, Airtable, Execute Workflow Trigger, OpenAI Chat Model, and additional nodes. Review the connections and setup before adapting this template.

Workflow preview
Data storeSimple MemoryMemory Buffer WindowAI & modelsOpenAI Chat ModelOpenAI Chat ModelCodeCheck permissionsCodeTriggerTelegram TriggerTelegram TriggerTransformSet inputEdit FieldsData storeGet user permissionsAirtableTriggerWhen Executed byAnother WorkflowExecute Workflow TriggerTransformSettingsEdit FieldsAI & modelsOpenAI Chat Model1OpenAI Chat ModelData storeSimple Memory1Memory Buffer WindowCodeCheck permissions1CodeCodelist_granted_rolesTool CodeCodelist_allowed_toolsTool CodeIntegrationcalculatorTool CalculatorIntegrationWikipediaTool WikipediaWeb / APIget_coordinatesTool Http RequestWeb / APIget_weatherTool Http RequestSubworkflowweather_agentTool WorkflowAI & modelsWeather AgentAgentRoutingUnknown userIfMessagingReply: unknown userTelegramMessagingReply with resultsTelegramAI & modelsMain AgentAgent

Node categories in this workflow

  • Data store
  • AI & models
  • Code
  • Trigger
  • Transform
  • Integration
  • Web / API
  • Subworkflow
  • Routing
  • Messaging

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
Simple MemoryData storeMemory Buffer WindowSee node parameters
OpenAI Chat ModelAI & modelsOpenAI Chat ModelSee node parameters
Check permissionsCodeCodeSee node parameters
Telegram TriggerTriggerTelegram TriggerSee node parameters
Set inputTransformEdit FieldsSee node parameters
Get user permissionsData storeAirtablesearch
When Executed by Another WorkflowTriggerExecute Workflow TriggerSee node parameters
SettingsTransformEdit FieldsSee node parameters
OpenAI Chat Model1AI & modelsOpenAI Chat ModelSee node parameters
Simple Memory1Data storeMemory Buffer WindowSee node parameters
Check permissions1CodeCodeSee node parameters
list_granted_rolesCodeTool CodeSee node parameters
list_allowed_toolsCodeTool CodeSee node parameters
calculatorIntegrationTool CalculatorSee node parameters
WikipediaIntegrationTool WikipediaSee node parameters
get_coordinatesWeb / APITool Http RequestSee node parameters
get_weatherWeb / APITool Http RequestSee node parameters
weather_agentSubworkflowTool WorkflowSee node parameters
Weather AgentAI & modelsAgentSee node parameters
Unknown userRoutingIfSee node parameters
Reply: unknown userMessagingTelegramSee node parameters
Reply with resultsMessagingTelegramSee node parameters
Main AgentAI & modelsAgentSee node parameters

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

  • airtableTokenApi
  • openAiApi
  • telegramApi

Workflow notes

Choose Base

Choose Base

Copy this Airtable Template into your workspace and select that Base here

Choose workflow

Choose workflow

Select the current workflow as the workflow that should be called

Sticky Note2

Uses list of allowed tools gathered from Airtable to check for permissions and replaces denied tools with a fixed instruction to return a message to the user.

Sticky Note3

Tools can also be connected without a permission check

Sticky Note4

Main agent with the instruction to always use the connected tools instead of general knowledge

Sticky Note5

Collects input and formats it using required keys

Sticky Note7

Collects and formats input from parent workflow / agent

Sticky Note8

Uses the same technique as the main agent to check for permissions using the same parameters which were passed to this sub-agent.

Sticky Note9

Sub-agent with specific role to handle weather information. Also having the instruction to strictly only use the connected tools.

Sticky Note6

Be aware, that previous responses may still exist after permission changes

Sticky Note10

Uses different session ID (suffix), since every agent needs its own memory

Sticky Note11

Listens to messages directly sent to the bot

Sticky Note12

Checks if the user was found in Airtable

Agent Access Control Template

Agent Access Control Template

Purpose and structure

This folder contains the Agent Access Control Template workflow. Its executable nodes use agent, airtable, code, executeWorkflowTrigger, if, lmChatOpenAi, memoryBufferWindow, set, telegram, telegramTrigger, toolCalculator, toolCode, toolHttpRequest, toolWikipedia, toolWorkflow. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

Telegram Trigger, When Executed by Another Workflow

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Telegram/1856_Telegram_Stickynote_Automation_Webhook.json MIT; preserve source notices.

More in AI & research