Skip to main content

Manage User Authentication with Telegram, Redis Cache and Google Sheets

Workflow preview

Workflow preview
100%
Manage User Authentication with Telegram, Redis Cache and Google Sheets preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

How It Works Telegram bot listens for messages and uses chat ID as the unique user identifier. Checks Google Sheets for existing users; registers new users if not found. Caches active sessions in R...

Best for

  • Engineering automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.telegramtrigger, n8n-nodes-base.googlesheets, n8n-nodes-base.switch, n8n-nodes-base.code, n8n-nodes-base.merge, n8n-nodes-base.redis, n8n-nodes-base.stickynote, n8n-nodes-base.executeworkflowtrigger

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Manage User Authentication with Telegram, Redis Cache and Google Sheets
Workflow name
Manage User Authentication with Telegram, Redis Cache and Google Sheets

How It Works

  • Telegram bot listens for messages and uses chat ID as the unique user identifier.
  • Checks Google Sheets for existing users; registers new users if not found.
  • Caches active sessions in Redis for fast lookup and login-state handling.
  • Stores and retrieves user data (UserID, Name, Telegram Chat ID) in Google Sheets.
  • Can be triggered by other n8n workflows to fetch or update user/session data.

Setup Steps

  • Obtain Telegram Bot token, Google Sheets “Users” sheet with API credentials, and a Redis instance.
  • Import the n8n workflow and configure Redis, Telegram Bot, and Google Sheets credentials.
  • Expect 30–45 minutes to complete workflow import, Redis setup, and API wiring.
  • Refer to sticky notes inside the workflow for exact field mappings and node configurations.

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 - Get Message

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

Block 2 - Find User

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 3 - Is New User

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 4 - Get UserId

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

Block 5 - Create User

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 6 - UserId

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.1

Block 7 - Find Cached User

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

Block 8 - Is Cached

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 9 - Cache User

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

Block 10 - Sticky Note

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

Block 11 - When Executed by Another Workflow

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

Block 12 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.1

Block 13 - Get User

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 14 - Edit Fields

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 15 - Edit Fields2

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

3. Summary Table

Workflow Manage User Authentication with Telegram, Redis Cache and Google Sheets
Complexity advanced
Nodes 15
Categories Engineering
Author Archit Jain
Published 01 Jun 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4548/4548.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 Manage User Authentication with Telegram, Redis Cache and Google Sheets do?

How It Works Telegram bot listens for messages and uses chat ID as the unique user identifier. Checks Google Sheets for existing users; registers new users if not found. Caches active sessions in R...

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 Engineering use case.