AI Agents

Process Telegram messages with AI agent and save results to Airtable

18 nodes 298 156 Automatic trigger
Download

Workflow Description

Automation that receives messages from Telegram, processes them through an AI agent using OpenAI and Gemini with search and calculation tools, then stores responses and data in Airtable tables for later review and analysis.

How it works

  1. 1.Receive message from Telegram user
  2. 2.Route message through AI agent for processing
  3. 3.Generate response using OpenAI and Gemini models
  4. 4.Execute calculations or Wikipedia searches as needed
  5. 5.Store result and original message in Airtable
  6. 6.Send reply back to user via Telegram

Use cases

  • Automatically handle customer inquiries and log them in a centralized database
  • Build an intelligent assistant combining search, calculations, and persistent storage
  • Automate support service that answers and records interactions for analysis

Requirements

  • Telegram account with bot token
  • API keys for OpenAI and Google Gemini
  • Airtable base with fields for messages and responses
  • Permission to use search and calculation tools in the agent

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 18
Apps 7
Views 298
Downloads 156

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 (18)

/

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

Email Agent

Tool Workflow

#18