AI Agents

Reply to Telegram messages using an intelligent AI agent

16 nodes 191 112 Automatic trigger
Download

Workflow Description

This automation template receives messages from Telegram and processes them through an AI agent powered by OpenAI's advanced language models, enabling dynamic conversation and intelligent responses to users directly within the chat platform.

How it works

  1. 1.Receive incoming message from Telegram when a user sends text
  2. 2.Route the message content to an AI agent running OpenAI language model
  3. 3.Process the request and generate an appropriate response using available tools
  4. 4.Send the intelligent reply directly back to the user in Telegram

Use cases

  • Automated customer support: respond to frequent inquiries without human intervention
  • Personal intelligent assistant: provide quick information and answers to user questions via Telegram
  • Search and information retrieval: answer user questions through real-time information gathering

Requirements

  • Active Telegram account with a valid Bot Token for your chatbot
  • OpenAI API key with proper access to language models
  • Stable internet connection to ensure reliable message reception and processing

Service Value

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

Apps Used

Telegram OpenAI AI Agent Tool Output Parser

Details

Trigger Automatic trigger
Nodes 16
Apps 5
Views 191
Downloads 112

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

/

Receive Telegram Messages

Set

#1

Voice or Text?

Switch

#2

Fetch Voice Message

Set

#3

Transcribe Voice to Text

OpenAI

#4

Prepare for LLM

Set

#5

Sticky Note2

Sticky Note

#6

Sticky Note3

Sticky Note

#7

AI Agent

Agent

#8

OpenAI Chat Model

OpenAI

#9

SerpAPI

Tool Serp Api

#10

Structured Output Parser

Output Parser Structured

#11

Extract from File

Extract From File

#12

Sticky Note

Sticky Note

#13

Prepare Final Output

Set

#14

Generate Image

HTTP Request

#15

Sticky Note1

Sticky Note

#16