Developer & DevOps

Reply to Telegram messages using Supabase cached responses

17 nodes 345 159 Automatic trigger
Download

Workflow Description

Automation receives messages from Telegram, checks Supabase database for previously stored answers, and returns cached responses to users instantly. Reduces processing overhead and accelerates reply times for frequently asked questions.

How it works

  1. 1.Receive incoming message from Telegram channel or group
  2. 2.Query Supabase database to find matching cached response
  3. 3.Send stored answer to user immediately without additional processing

Use cases

  • Auto-respond to recurring questions in Telegram groups efficiently
  • Reduce API calls and server load by serving cached answers

Requirements

  • Active Telegram Bot with valid API token
  • Supabase project with configured database for caching
  • Read and write permissions to database tables

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 345
Downloads 159

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