Skip to main content

Collect astrology feedback with Telegram and Supabase

Workflow preview

Workflow preview
100%
Collect astrology feedback with Telegram and Supabase preview
Open on n8n.io

1. Workflow Overview

Quick Overview This workflow runs a Telegram bot that guides users through a multi step chat flow, stores session state in Supabase, logs completed astrology reading requests to a Supabase history ...

Best for

  • Support Chatbot automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.telegramtrigger, n8n-nodes-base.supabase, n8n-nodes-base.code, n8n-nodes-base.if, n8n-nodes-base.telegram

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Salome Tkhilaishvili.

Original n8n.io source

1.1 Workflow description

Title
Collect astrology feedback with Telegram and Supabase
Workflow name
Collect astrology feedback with Telegram and Supabase

Quick Overview

This workflow runs a Telegram bot that guides users through a multi-step chat flow, stores session state in Supabase, logs completed astrology reading requests to a Supabase history table, and replies to the user in Telegram.

How it works

  1. Receives incoming messages and callback queries from Telegram.
  2. Looks up the sender’s session in a Supabase sessions table using the Telegram chat ID.
  3. Evaluates the user’s message against the current session state to choose the next prompt, update stored inputs, and decide whether the interaction is complete.
  4. Updates the existing Supabase session record or inserts a new one when the chat ID has no prior session.
  5. When a reading flow is marked complete, inserts a record into the Supabase astrology_readings table with the captured input details.
  6. Sends the generated reply back to the user in Telegram using HTML parse mode.

Setup

  1. Create a Telegram bot with BotFather, add your Telegram credentials in n8n, and configure the workflow’s Telegram trigger to use that bot.
  2. Add Supabase API credentials in n8n and ensure you have sessions and astrology_readings tables with fields matching chat_id, state, mode, p1_data, and p2_data.
  3. Update the Supabase table names/field mappings in the Supabase nodes if your schema differs from the workflow defaults.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - When Telegram Message Received

Type / Role
n8n-nodes-base.telegramTrigger - telegramTrigger
Config choices
Version 1.1

Block 7 - Get Session from Supabase

Type / Role
n8n-nodes-base.supabase - supabase
Config choices
Version 1

Block 8 - Evaluate Feedback Logic

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 9 - Check If Record Exists

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 10 - Update Session in Supabase

Type / Role
n8n-nodes-base.supabase - supabase
Config choices
Version 1

Block 11 - Insert Session into Supabase

Type / Role
n8n-nodes-base.supabase - supabase
Config choices
Version 1

Block 12 - Send Telegram Reply

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 13 - Check If Run Complete

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 14 - Log Reading History in Supabase

Type / Role
n8n-nodes-base.supabase - supabase
Config choices
Version 1

Block 15 - Check for User Input

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

3. Summary Table

Workflow Collect astrology feedback with Telegram and Supabase
Complexity advanced
Nodes 15
Categories Support Chatbot, AI Chatbot
Author Salome Tkhilaishvili
Published 25 May 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15943/15943.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Collect astrology feedback with Telegram and Supabase do?

Quick Overview This workflow runs a Telegram bot that guides users through a multi step chat flow, stores session state in Supabase, logs completed astrology reading requests to a Supabase history ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Support Chatbot, AI Chatbot use case.