AI Agents

Connect Telegram with OpenAI andAirtable

17 nodes 214 122 Automatic trigger
Download

Workflow Description

An advanced automation that connects Telegram with an intelligent agent powered by OpenAI and Gemini, employing specialized tools like calculator and Wikipedia, while storing data in Airtable and managing context through memory.

How it works

  1. 1.Receive messages from Telegram and trigger the workflow
  2. 2.Route requests to a multi-model intelligent agent (OpenAI and Gemini)
  3. 3.Execute specialized tools based on query type (calculations, research, data processing)
  4. 4.Aggregate results and merge outputs from multiple sources
  5. 5.Save results and context to Airtable with memory management

Use cases

  • Build a Telegram chatbot that answers complex questions and performs diverse tasks
  • Automate data collection and querying with precise documentation in a database
  • Create an intelligent customer support system that leverages multiple language models and specialized tools

Requirements

  • Active Telegram account with a channel or group configured
  • Valid API keys for OpenAI and Gemini services
  • Airtable database with tables designed to store queries and results
  • Basic understanding of n8n agent configuration and memory management

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

Telegram OpenAI AI Agent Gemini Tool Airtable Memory

Details

Trigger Automatic trigger
Nodes 17
Apps 7
Views 214
Downloads 122

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (17)

/

Telegram Trigger

Set

#1

Switch

Switch

#2

Edit Fields

Set

#3

Telegram

Set

#4

OpenAI

OpenAI

#5

AI Agent

Agent

#6

Google Gemini Chat Model

Gemini Model

#7

Telegram1

Set

#8

Calculator

Tool Calculator

#9

Wikipedia

Tool Wikipedia

#10

Airtable

Airtable

#11

Aggregate

Aggregate

#12

Merge

Merge

#13

Simple Memory

Memory Buffer Window

#14

OpenAI Chat Model

OpenAI

#15

memory_tool

Airtable Tool

#16

contentCreatorAgent

Tool Workflow

#17