# Analyze articles with Telegram and Groq: n8n workflow template

> Started by an incoming Telegram message, and works across Telegram. It puts Groq behind a retrieval step, so answers are drawn from documents you supply...

Source: https://millionrounds.com/workflow/analyze-articles-with-telegram-and-groq (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Content](https://millionrounds.com/workflows?category=Content#library)

# Analyze articles with Telegram and Groq

Started by an incoming Telegram message, and works across Telegram. It puts Groq behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 23 steps, 2 branches: large, and worth reading before you trust it with anything live.

Large Calls a model: Groq Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fanalyze-articles-with-telegram-and-groq)

**23 steps** Large: read it before trusting it with anything live

**2** Branches: places the flow splits

**0** Loops or waits

**1** Service it connects to

## The flow

Starts it 1 Model 11 Logic 7 Service 4

The steps in the order they run, from what starts it.

- 1 **Telegram Trigger** Telegram trigger *Starts it*
- 2 **Groq - URL Summary - English** Lm Chat Groq *Model*
- 3 **Groq - URL chat- English** Lm Chat Groq *Model*
- 4 **Groq Model for language detection** Lm Chat Groq *Model*
- 5 **Zep** Memory Zep *Model*
- 6 **Zep1** Memory Zep *Model*
- 7 **Zep2** Memory Zep *Model*
- 8 **Detect if initiation or reply with question as chat** If *Logic*
- 9 **Detect if "delete" command received** If *Logic*
- 10 **Reply - AI Agent** Agent *Model*
- 11 **AI Agent** Agent *Model*
- 12 **Language detection - English** Chain Llm *Model*
- 13 **Chat Memory Manager - Delete** Memory Manager *Model*
- 14 **First delete the memory** Memory Manager *Model*
- 15 **Build hash key based on "chatID" - for reply flow** Crypto *Service*
- 16 **Filter: check if prompt command received** Filter *Logic*
- 17 **Crypto - delete** Crypto *Service*
- 18 **Telegram** Telegram *Service*
- 19 **Build hash key based on "chatID" - for initial flow** Crypto *Service*
- 20 **Build an "output" message after deletion of the memory** Set *Logic*
- 21 **Reply case - Build the prompt and the key fields to be sent to the AI model** Set *Logic*
- 22 **regex: get the URL part from the text** Code *Logic*
- 23 **Build the prompt and the key fields to be sent to the AI model** Set *Logic*

## How it's built

- **Starts on:** An incoming Telegram message
- **Steps:** 23, with 2 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Telegram
- **Model:** Groq
- **Retrieval:** Answers are drawn from documents you supply, not from the model alone

## Questions

What does it need to run?

An n8n account, plus your own Telegram account, and a key for Groq. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an incoming Telegram message.

Does it use AI?

Yes. It calls Groq. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 23 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 23 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fanalyze-articles-with-telegram-and-groq)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Telegram](https://millionrounds.com/workflows?service=Telegram#library)

## Workflows like it

Also content, with the same services where possible, closest in size first.

- [**Create daily historical AI videos with Gemini and Telegram** 23 steps · calls a model · Telegram, YouTube](https://millionrounds.com/workflow/create-daily-historical-ai-videos-with-gemini-and-telegram)
- [**Generate UGC videos from product images with Gemini and VEO3** 23 steps · calls a model · Telegram](https://millionrounds.com/workflow/generate-ugc-videos-from-product-images-with-gemini-and-veo3)
- [**Publish Google Drive videos to Instagram, TikTok, and YouTube** 23 steps · calls a model · Airtable, Google Drive](https://millionrounds.com/workflow/publish-google-drive-videos-to-instagram-tiktok-and-youtube)
- [**Publish RSS articles to WordPress and social media platforms** 23 steps · calls a model · Discord, Gmail](https://millionrounds.com/workflow/publish-rss-articles-to-wordpress-and-social-media-platforms)
- [**Generate 360° product videos from photos with Veo 3** 23 steps · Google Sheets, Telegram](https://millionrounds.com/workflow/generate-360-product-videos-from-photos-with-veo-3)
- [**Analyze YouTube comments and generate video ideas with Gemini** 22 steps · calls a model · Google Sheets, Telegram](https://millionrounds.com/workflow/analyze-youtube-comments-and-generate-video-ideas-with-gemin)
