AI Agents

Connect Telegram with OpenAI

15 nodes 207 120 Automatic trigger
Download

Workflow Description

An intelligent automation that connects Telegram with OpenAI to receive user inquiries and process them using AI, with access to calendar, email, and contextual memory for accurate and context-aware responses.

How it works

  1. 1.Receive messages from Telegram users through the trigger
  2. 2.Process the inquiry using an AI agent powered by OpenAI with Google Calendar and Gmail tools
  3. 3.Maintain conversation context in memory buffer to ensure natural continuity
  4. 4.Send the intelligent response directly back to the Telegram user
  5. 5.Store interaction data in Baserow for review and analysis

Use cases

  • Smart bot for answering customer questions linked to calendar and email information
  • Personal assistant that manages tasks and appointments through Telegram conversations

Requirements

  • Valid OpenAI API key with sufficient credit balance
  • Telegram account with registered bot and authentication token
  • Access authorization to Google Calendar and Gmail
  • Baserow database for logging interactions

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 207
Downloads 120

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