Skip to main content

AI-Powered Employee Database Management via Telegram using OpenAI and Airtable

Workflow preview

Workflow preview
100%
AI-Powered Employee Database Management via Telegram using OpenAI and Airtable preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Who is this for? This workflow is perfect for: HR professionals seeking to automate employee and department management Startups and SMBs that want an AI powered HR assistant on Telegram Internal op...

Best for

  • HR automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.telegramtrigger, @n8n/n8n-nodes-langchain.toolworkflow, n8n-nodes-base.airtabletool, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.memorybufferwindow, n8n-nodes-base.telegram, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.executeworkflowtrigger

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Billy Christi.

Original n8n.io source

1.1 Workflow description

Title
AI-Powered Employee Database Management via Telegram using OpenAI and Airtable
Workflow name
AI-Powered Employee Database Management via Telegram using OpenAI and Airtable

Who is this for?

This workflow is perfect for:

  • HR professionals seeking to automate employee and department management
  • Startups and SMBs that want an AI-powered HR assistant on Telegram
  • Internal operations teams that want to simplify onboarding and employee data tracking

What problem is this workflow solving?

Managing employee databases manually is error-prone and inefficient—especially for growing teams. This workflow solves that by:

  • Enabling natural language-based HR operations directly through Telegram
  • Automating the creation, retrieval, and deletion of employee records in Airtable
  • Dynamically managing related data such as departments and job titles
  • Handling data consistency and linking across relational tables automatically
  • Providing a conversational interface backed by OpenAI for smart decision-making

What this workflow does

Using Telegram as the interface and Airtable as the backend database, this intelligent HR workflow allows users to:

  1. Chat in natural language (e.g. “Show me all employees” or “Create employee: Sarah, Marketing…”)

  2. Interpret and route requests via an AI Agent that acts as the orchestrator

  3. Query employee, department, and job title data from Airtable

  4. Create or update records as needed:

    • Add new departments and job titles automatically if they don’t exist
    • Create new employees and link them to the correct department and job title
  5. Delete employees based on ID

  6. Respond directly in Telegram, providing user-friendly feedback


Setup

  1. View & Copy the Airtable base here: 👉 Employee Database Management – Airtable Base Template

  2. Telegram Bot: Set up a Telegram bot and connect it to the Telegram Trigger node

  3. Airtable: Prepare three Airtable tables:

    • Employees with links to Departments and Job Titles
    • Departments with Name & Description
    • Job Titles with Title & Description
  4. Connect your Airtable API key and base/table IDs into the appropriate Airtable nodes

  5. Add your OpenAI API key to the AI Agent nodes

  6. Deploy both workflows: the main chatbot workflow and the employee creation sub-workflow

  7. Test with sample messages like:

    • “Create employee: John Doe, [email protected], Engineering, Software Engineer”
    • “Remove employee ID rec123xyz”

How to customize this workflow to your needs

  • Switch databases: Replace Airtable with Notion, PostgreSQL, or Google Sheets if desired
  • Enhance security: Add authentication and validation before allowing deletion
  • Add approval flows: Integrate Telegram button-based approvals for sensitive actions
  • Multi-language support: Expand system prompts to support multiple languages
  • Add logging: Store every user action in a log table for auditability
  • Expand capabilities: Integrate payroll, time tracking, or Slack notifications

Extra Tips

  • This is a two-workflow setup. Make sure the sub-workflow is deployed and accessible from the main agent.
  • Use Simple Memory per chat ID to preserve context across user queries.
  • You can expand the orchestration logic by adding more tools to the main agent—such as “Get active employees only” or “List employees by job title.”

Contact me for consulting and support:
📧 [email protected]

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Telegram Trigger

Type / Role
n8n-nodes-base.telegramTrigger - telegramTrigger
Config choices
Version 1.2

Block 2 - Create Employee AI Agent tool

Type / Role
@n8n/n8n-nodes-langchain.toolWorkflow - toolWorkflow
Config choices
Version 2.2

Block 3 - Get departments data from airtable tool

Type / Role
n8n-nodes-base.airtableTool - airtableTool
Config choices
Version 2.1

Block 4 - Get job titles data from airtable tool

Type / Role
n8n-nodes-base.airtableTool - airtableTool
Config choices
Version 2.1

Block 5 - Get employees data from airtable tool

Type / Role
n8n-nodes-base.airtableTool - airtableTool
Config choices
Version 2.1

Block 6 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 7 - Simple Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 8 - Send Message to User

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 9 - Create Department Tool

Type / Role
n8n-nodes-base.airtableTool - airtableTool
Config choices
Version 2.1

Block 10 - Create Job Title Tool

Type / Role
n8n-nodes-base.airtableTool - airtableTool
Config choices
Version 2.1

Block 11 - Delete employee tool

Type / Role
n8n-nodes-base.airtableTool - airtableTool
Config choices
Version 2.1

Block 12 - Employee Management AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.9

Block 13 - Get departments data from airtable

Type / Role
n8n-nodes-base.airtableTool - airtableTool
Config choices
Version 2.1

Block 14 - Get job titles data from airtable

Type / Role
n8n-nodes-base.airtableTool - airtableTool
Config choices
Version 2.1

Block 15 - Create Employee AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.9

Block 16 - When Executed by Another Workflow

Type / Role
n8n-nodes-base.executeWorkflowTrigger - executeWorkflowTrigger
Config choices
Version 1.1

Block 17 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.2

Block 18 - Create Department

Type / Role
n8n-nodes-base.airtableTool - airtableTool
Config choices
Version 2.1

Block 19 - Create Job Title

Type / Role
n8n-nodes-base.airtableTool - airtableTool
Config choices
Version 2.1

Block 20 - Create employee

Type / Role
n8n-nodes-base.airtableTool - airtableTool
Config choices
Version 2.1

Block 21 - Update Employee Data

Type / Role
n8n-nodes-base.airtable - airtable
Config choices
Version 2.1

Block 22 - OpenAI Chat Model1

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 23 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 24 - Sticky Note8

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Showing the first 24 of 26 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow AI-Powered Employee Database Management via Telegram using OpenAI and Airtable
Complexity advanced
Nodes 26
Categories HR, AI Chatbot
Author Billy Christi
Published 01 Jun 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4545/4545.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does AI-Powered Employee Database Management via Telegram using OpenAI and Airtable do?

Who is this for? This workflow is perfect for: HR professionals seeking to automate employee and department management Startups and SMBs that want an AI powered HR assistant on Telegram Internal op...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your HR, AI Chatbot use case.