Automation library · Chat assistants

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.

LargeCalls a model: GeminiRetrieval

24 stepsLarge: read it before trusting it with anything live
3Branches: places the flow splits
0Loops or waits
3Services it connects to

The flow

Starts it 1Model 3Logic 10Service 10

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

  1. 1Telegram TriggerTelegram triggerStarts it
  2. 2Google Gemini Chat Model1Lm Chat Google GeminiModel
  3. 3Simple MemoryMemory Buffer WindowModel
  4. 4Supabase: Get SessionSupabaseService
  5. 5AI AgentAgentModel
  6. 6Logic EngineCodeLogic
  7. 7Code in JavaScriptCodeLogic
  8. 8Record Exists?IfLogic
  9. 9Supabase: Log Reading HistorySupabaseService
  10. 10Supabase: Update SessionSupabaseService
  11. 11Supabase: Insert SessionSupabaseService
  12. 12Telegram Bot ResponseTelegramService
  13. 13Is Pure Chat?IfLogic
  14. 14Download RAG JSONGoogle DriveService
  15. 15Calculate Reading Now?IfLogic
  16. 16Final Similarity FilterCodeLogic
  17. 17Parse Intake DataCodeLogic
  18. 18Send a text messageTelegramService
  19. 19Convert service output to contextCodeLogic
  20. 20Get CoordinatesHttp RequestService
  21. 21Prepare data for agentCodeLogic
  22. 22Get Timezone OffsetHttp RequestService
  23. 23Prepare input for natal/synastry calculationCodeLogic
  24. 24Astrology API EngineHttp RequestService

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.