AI Agents

Automated replies on Telegram powered by OpenAI

15 nodes 274 125 Automatic trigger
Download

Workflow Description

Receive Telegram messages through an intelligent agent that processes them with OpenAI for immediate smart responses, maintains conversation context, and optionally accesses Gmail and Calendar data for enhanced context awareness.

How it works

  1. 1.Trigger automation when a message arrives on Telegram
  2. 2.Route the message through an AI agent using OpenAI's language model
  3. 3.Store conversation history in memory buffer to maintain context across interactions
  4. 4.Query Gmail and Calendar when needed to retrieve relevant information for better responses
  5. 5.Send the generated reply back to the user automatically via Telegram

Use cases

  • Real-time customer support bot that answers common questions without human involvement
  • Intelligent personal assistant that schedules meetings and responds based on calendar and email data

Requirements

  • Active Telegram account with bot created via Telegram BotFather
  • Valid OpenAI API key with sufficient credits
  • Gmail and Calendar integration enabled for data retrieval (optional based on use case)

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 274
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