AI Agents

Smart Telegram Responses Using AI Language Models

20 nodes 301 157 Automatic trigger
Download

Workflow Description

An automation that receives inquiries via Telegram and processes them using advanced language models with vector-based knowledge retrieval, delivering accurate and contextual answers instantly to users.

How it works

  1. 1.Receive incoming message from designated Telegram channel
  2. 2.Convert message to embeddings using OpenAI Embeddings service
  3. 3.Search relevant content in Pinecone Vector Store database
  4. 4.Process query through LLM Chain and retrieve answer from Groq model
  5. 5.Send intelligent response back to user on Telegram

Use cases

  • Automated customer support that answers client questions 24/7 through Telegram
  • Internal knowledge assistant providing information from company documents to employees

Requirements

  • Telegram bot with valid API token
  • OpenAI API key for text embeddings
  • Pinecone account for vector storage and retrieval
  • Groq API key for the language model

Service Value

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

Apps Used

Telegram OpenAI Document Default Data Loader Text Splitter LLM Chain Vector Store Lm Chat Groq

Details

Trigger Automatic trigger
Nodes 20
Apps 7
Views 301
Downloads 157

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

/

Telegram Trigger

Set

#1

Embeddings OpenAI

OpenAI

#2

Default Data Loader

Document Default Data Loader

#3

Recursive Character Text Splitter

Text Splitter Recursive Character Text Splitter

#4

Stop and Error

Stop And Error

#5

Question and Answer Chain

Chain Retrieval Qa

#6

Vector Store Retriever

Retriever Vector Store

#7

Pinecone Vector Store1

Vector Store Pinecone

#8

Groq Chat Model

Lm Chat Groq

#9

Sticky Note

Sticky Note

#10

Sticky Note1

Sticky Note

#11

Check If is a document

If

#12

Change to application/pdf

Code

#13

Telegram get File

Set

#14

Embeddings

OpenAI

#15

Telegram Response

Set

#16

Telegram Response about Database

Set

#17

Stop and Error1

Stop And Error

#18

Pinecone Vector Store

Vector Store Pinecone

#19

Limit to 1

Limit

#20