AI Agents

Automate Telegram Responses Using OpenAI Intelligence

15 nodes 285 139 Automatic trigger
Download

Workflow Description

This automation receives messages from Telegram, processes them through an OpenAI-powered AI agent, maintains conversation history in memory, and can create calendar events or send emails as needed. Perfect for building intelligent customer support or internal task management bots.

How it works

  1. 1.Receive incoming messages from Telegram channels or groups
  2. 2.Process user queries through an AI agent connected to OpenAI
  3. 3.Generate and send intelligent responses back to Telegram users
  4. 4.Store conversation context and data in memory buffer for continuity
  5. 5.Optionally create calendar events or email summaries for complex requests

Use cases

  • Build a customer support bot that answers inquiries automatically on Telegram
  • Create a team assistant that manages tasks, reminders, and scheduling via chat
  • Automate request processing and complaint handling with integrated documentation

Requirements

  • Active OpenAI account with valid API key
  • Telegram bot with authentication token (API key)
  • Google Calendar and Gmail credentials (optional for advanced workflows)

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 285
Downloads 139

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