# Macro tracker with Groq and OpenAI: n8n workflow template

> Started by an incoming Telegram message, and works across Google Sheets, Qdrant and Telegram.

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

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

# Macro tracker with Groq and OpenAI

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

Large Calls a model: Groq, OpenAI Retrieval

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

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

**4** Branches: places the flow splits

**0** Loops or waits

**3** Services it connects to

## The flow

Starts it 1 Model 6 Logic 8 Service 17

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

- 1 **Telegram Trigger** Telegram trigger *Starts it*
- 2 **Groq Chat Model** Lm Chat Groq *Model*
- 3 **Get row(s) in sheet in Google Sheets** Google Sheets Tool *Service*
- 4 **Append row in sheet in Google Sheets** Google Sheets Tool *Service*
- 5 **SerpAPI** Tool Serp Api *Model*
- 6 **Embeddings OpenAI** Embeddings Open Ai *Model*
- 7 **Reranker Cohere** Reranker Cohere *Model*
- 8 **Switch** Switch *Logic*
- 9 **AI Agent** Agent *Model*
- 10 **Qdrant Vector Store** Vector Store Qdrant *Model*
- 11 **Get_message** Set *Logic*
- 12 **Get a file** Telegram *Service*
- 13 **Get a file1** Telegram *Service*
- 14 **If** If *Logic*
- 15 **Rename Keys** Rename Keys *Service*
- 16 **Extract from File** Extract From File *Service*
- 17 **Extract from File1** Extract From File *Service*
- 18 **Send a text message** Telegram *Service*
- 19 **Groq Whisper Model1** Http Request *Service*
- 20 **Get_message2** Set *Logic*
- 21 **Convert to Mp3** Convert To File *Service*
- 22 **Groq llama Model2** Http Request *Service*
- 23 **Send an audio file** Telegram *Service*
- 24 **Groq Whisper Model** Http Request *Service*
- 25 **Edit Fields** Set *Logic*
- 26 **Rename Keys1** Rename Keys *Service*
- 27 **If2** If *Logic*
- 28 **HTTP Request** Http Request *Service*
- 29 **Send a text message2** Telegram *Service*
- 30 **If1** If *Logic*
- 31 **Edit Fields2** Set *Logic*
- 32 **Send a text message1** Telegram *Service*

## How it's built

- **Starts on:** An incoming Telegram message
- **Steps:** 32, with 4 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Sheets, Qdrant, Telegram
- **Model:** Groq, OpenAI
- **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 Google Sheets, Qdrant and Telegram accounts, and a key for Groq and OpenAI. 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 and OpenAI. 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 32 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 32 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%2Fmacro-tracker-with-groq-and-openai)
- **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.

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

## Workflows like it

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

- [**AI-powered auto-generate exam questions** 32 steps · calls a model · Google Docs, Google Sheets](https://millionrounds.com/workflow/ai-powered-auto-generate-exam-questions)
- [**Auto-generate product comparison pages with OpenAI** 32 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/auto-generate-product-comparison-pages-with-openai)
- [**Telegram crypto assistant - trade, send & track wallets** 32 steps · calls a model · Telegram](https://millionrounds.com/workflow/telegram-crypto-assistant-trade-send-and-track-wallets)
- [**Track fitness class attendance and retention** 32 steps · calls a model · Discord, Gmail](https://millionrounds.com/workflow/track-fitness-class-attendance-and-retention)
- [**24/7 shorts automation system for busy people with OpenRouter** 33 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/24-7-shorts-automation-system-for-busy-people-with-openroute)
- [**Automate Google My Business responses with Gemini** 31 steps · calls a model · Google Business Profile, Google Sheets](https://millionrounds.com/workflow/automate-google-my-business-responses-with-gemini)
