AI Agents

Connect Telegram with OpenAI

15 nodes 272 125 Automatic trigger
Download

Workflow Description

An automation blueprint that connects Telegram with OpenAI intelligence, receiving user messages and processing them through a smart agent linked to email, calendar, and databases, delivering contextual responses with persistent learning capabilities.

How it works

  1. 1.Receive incoming messages from Telegram via the dedicated trigger node
  2. 2.Process message content through an intelligent agent connected to OpenAI and conversation memory
  3. 3.Execute relevant actions using email delivery, calendar queries, and data retrieval tools
  4. 4.Send the AI-generated response back to the user on Telegram

Use cases

  • Intelligent assistant that answers user questions while retaining conversation history and context
  • Automate appointment scheduling and administrative tasks through Telegram messaging
  • Process and categorize incoming emails using AI-powered analysis and sorting

Requirements

  • Active OpenAI account with a valid API key configured
  • Registered Telegram bot token with proper authentication setup
  • Access permissions to Gmail and Google Calendar services

Service Value

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

Apps Used

Google Calendar Memory Gmail OpenAI Telegram AI Agent Tool

Details

Trigger Automatic trigger
Nodes 15
Apps 7
Views 272
Downloads 125

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

/

Google Calendar

Google Calendar Tool

#1

Window Buffer Memory

Memory Buffer Window

#2

Get Email

Gmail

#3

OpenAI Chat Model

OpenAI

#4

Listen for incoming events

Set

#5

Telegram

Set

#6

If

If

#7

Speech to Text

OpenAI

#8

Voice or Text

Set

#9

Get Voice File

Set

#10

Angie, AI Assistant 👩🏻‍🏫

Agent

#11

Sticky Note

Sticky Note

#12

Tasks

Baserow Tool

#13

Contacts

Baserow Tool

#14

Sticky Note5

Sticky Note

#15