# Provide Telegram astrology readings with Supabase: n8n workflow

> Started by an incoming Telegram message, and works across Google Drive, Supabase and Telegram.

Source: https://millionrounds.com/workflow/provide-telegram-astrology-readings-with-supabase (Millionrounds; every figure on the page links to its filing or article)

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

# Provide Telegram astrology readings with Supabase

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

Large Calls a model: Gemini Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fprovide-telegram-astrology-readings-with-supabase)

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

**3** Branches: places the flow splits

**0** Loops or waits

**3** Services it connects to

## The flow

Starts it 1 Model 3 Logic 10 Service 10

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

- 1 **Telegram Trigger** Telegram trigger *Starts it*
- 2 **Google Gemini Chat Model1** Lm Chat Google Gemini *Model*
- 3 **Simple Memory** Memory Buffer Window *Model*
- 4 **Supabase: Get Session** Supabase *Service*
- 5 **AI Agent** Agent *Model*
- 6 **Logic Engine** Code *Logic*
- 7 **Code in JavaScript** Code *Logic*
- 8 **Record Exists?** If *Logic*
- 9 **Supabase: Log Reading History** Supabase *Service*
- 10 **Supabase: Update Session** Supabase *Service*
- 11 **Supabase: Insert Session** Supabase *Service*
- 12 **Telegram Bot Response** Telegram *Service*
- 13 **Is Pure Chat?** If *Logic*
- 14 **Download RAG JSON** Google Drive *Service*
- 15 **Calculate Reading Now?** If *Logic*
- 16 **Final Similarity Filter** Code *Logic*
- 17 **Parse Intake Data** Code *Logic*
- 18 **Send a text message** Telegram *Service*
- 19 **Convert service output to context** Code *Logic*
- 20 **Get Coordinates** Http Request *Service*
- 21 **Prepare data for agent** Code *Logic*
- 22 **Get Timezone Offset** Http Request *Service*
- 23 **Prepare input for natal/synastry calculation** Code *Logic*
- 24 **Astrology API Engine** Http Request *Service*

## How it's built

- **Starts on:** An incoming Telegram message
- **Steps:** 24, with 3 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Drive, Supabase, Telegram
- **Model:** Gemini
- **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 Drive, Supabase and Telegram accounts, and a key for Gemini. 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 Gemini. 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 24 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 24 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%2Fprovide-telegram-astrology-readings-with-supabase)
- **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 Drive](https://millionrounds.com/workflows?service=Google+Drive#library)[Supabase](https://millionrounds.com/workflows?service=Supabase#library)[Telegram](https://millionrounds.com/workflows?service=Telegram#library)

## Workflows like it

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

- [**Agents with OpenRouter and Telegram** 24 steps · calls a model · Telegram](https://millionrounds.com/workflow/agents-with-openrouter-and-telegram)
- [**Compare products and generate visual scorecards in Telegram** 24 steps · calls a model · Google Sheets, Telegram](https://millionrounds.com/workflow/compare-products-and-generate-visual-scorecards-in-telegram)
- [**Create branded LinkedIn carousels with OpenAI** 24 steps · calls a model · Telegram](https://millionrounds.com/workflow/create-branded-linkedin-carousels-with-openai)
- [**Generate Images on Telegram from Text and Voice** 24 steps · calls a model · FTP, Telegram](https://millionrounds.com/workflow/generate-images-on-telegram-from-text-and-voice)
- [**Manage employee offboarding checklists with DeepSeek** 24 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/manage-employee-offboarding-checklists-with-deepseek)
- [**Reply to Facebook and Instagram comments with Groq** 24 steps · calls a model · Google Sheets, Telegram](https://millionrounds.com/workflow/reply-to-facebook-and-instagram-comments-with-groq)
