AI Agents

Connect Telegram with OpenAI

21 nodes 234 124 Automatic trigger
Download

Workflow Description

An automation template that connects Telegram with OpenAI to create an intelligent agent that receives user messages and processes them using AI models, while maintaining conversation context and executing requested tasks automatically.

How it works

  1. 1.Enable Telegram trigger to receive incoming messages
  2. 2.Route messages through an AI agent connected to OpenAI's language model
  3. 3.Maintain conversation memory and context between interactions
  4. 4.Execute tasks and commands through specialized tools integrated in the workflow
  5. 5.Send responses and results back to users via Telegram

Use cases

  • Build a conversational AI assistant on Telegram that answers questions and provides analysis
  • Automate customer support and inquiry handling directly in Telegram
  • Create a context-aware bot that remembers past interactions and conversation history

Requirements

  • Active Telegram account with registered bot token
  • Valid API key for OpenAI service
  • Access to configure memory and agent nodes in n8n

Service Value

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

Apps Used

Telegram Mcp Trigger AI Agent Tool OpenAI Memory

Details

Trigger Automatic trigger
Nodes 21
Apps 6
Views 234
Downloads 124

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

/

Incoming Message

Set

#1

MCP Server Trigger

Mcp Trigger

#2

AI Agent

Agent

#3

MCP Client

Mcp Client Tool

#4

OpenAI Chat Model

OpenAI

#5

Simple Memory

Memory Buffer Window

#6

chatInput

Set

#7

create_todays_task

Google Tasks Tool

#8

chatOutput

Set

#9

sendMessage

Set

#10

create_upcoming_task

Google Tasks Tool

#11

complete_task

Google Tasks Tool

#12

get_todays_tasks

Google Tasks Tool

#13

get_upcoming_tasks

Google Tasks Tool

#14

Switch

Switch

#15

audio_id

Set

#16

download_audio

Set

#17

transcribeAudio

OpenAI

#18

audioInput

Set

#19

Sticky Note

Sticky Note

#20

Sticky Note1

Sticky Note

#21