Developer & DevOps

Save Telegram Messages to Supabase Database

17 nodes 179 103 Automatic trigger
Download

Workflow Description

Automation that receives incoming Telegram messages and stores them automatically in Supabase tables, with conditional processing and confirmation notifications sent back to users.

How it works

  1. 1.Receive incoming message from the specified Telegram channel
  2. 2.Process and format message data for database storage
  3. 3.Insert the record into the appropriate Supabase table
  4. 4.Verify successful operation with confirmation message
  5. 5.Send Telegram reply to user with save status

Use cases

  • Collect user data and inquiries from Telegram channels
  • Store records and reports submitted via bot
  • Build centralized request and complaint tracking system
  • Automatically document conversations for audit purposes

Requirements

  • Active API token for Telegram Bot
  • Supabase project with pre-defined tables
  • Write access permissions to database

Service Value

Ready-made workflow template for automation delivery and service execution.

Apps Used

Telegram Supabase

Details

Trigger Automatic trigger
Nodes 17
Apps 2
Views 179
Downloads 103

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (17)

/

Get New Message

Set

#1

OPENAI - Create thread

HTTP Request

#2

Create User

Supabase

#3

Merge

Merge

#4

OPENAI - Send message

HTTP Request

#5

OPENAI - Run assistant

HTTP Request

#6

OPENAI - Get messages

HTTP Request

#7

Send Message to User

Set

#8

If User exists

If

#9

Find User

Supabase

#10

Sticky Note1

Sticky Note

#11

Sticky Note2

Sticky Note

#12

Sticky Note3

Sticky Note

#13

Sticky Note4

Sticky Note

#14

Sticky Note5

Sticky Note

#15

Sticky Note6

Sticky Note

#16

Sticky Note7

Sticky Note

#17