Skip to main content

Auto-reply to Telegram messages using BrowserAct and Google Gemini

Workflow preview

Workflow preview
100%
Auto-reply to Telegram messages using BrowserAct and Google Gemini preview
Open on n8n.io

1. Workflow Overview

Auto reply to Telegram messages using BrowserAct & Google Gemini This workflow acts as a smart, 24/7 personal assistant for your Telegram chats. It runs on a schedule to monitor your message histor...

Best for

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

Tools used

n8n-nodes-base.splitinbatches, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.switch, n8n-nodes-base.scheduletrigger, n8n-nodes-browseract.browseract, n8n-nodes-base.wait, n8n-nodes-base.httprequest, n8n-nodes-base.code

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Madame AI Team | Kai.

Original n8n.io source

1.1 Workflow description

Title
Auto-reply to Telegram messages using BrowserAct and Google Gemini
Workflow name
Auto-reply to Telegram messages using BrowserAct and Google Gemini

Auto-reply to Telegram messages using BrowserAct & Google Gemini

This workflow acts as a smart, 24/7 personal assistant for your Telegram chats. It runs on a schedule to monitor your message history, uses AI to decide if a reply is necessary, drafts a personalized response, and sends it back to the user, all while handling delivery verification and potential CAPTCHA challenges via BrowserAct.

Target Audience

Community managers, busy professionals, and customer support teams who need to manage Telegram communications efficiently.

How it works

  1. Scheduled Check: Every 15 minutes, the workflow triggers BrowserAct to fetch the latest chat history.
  2. Analysis: An AI Agent (using Google Gemini) reviews the conversation. It determines if the last message requires a response (e.g., a question) or if the chat is idle.
  3. Drafting: If a reply is needed, the AI drafts a personalized message that includes the user's name and a standard footer disclaimer.
  4. Formatting: A Code node cleans up the text to ensure proper line breaks and formatting for Telegram.
  5. Delivery: BrowserAct executes the task to send the drafted reply. The workflow loops to check the task status, ensuring the message is delivered successfully.

How to set up

  1. Configure Credentials: Connect your BrowserAct and Google Gemini accounts in n8n.
  2. Prepare BrowserAct: Ensure the Telegram Personal Assistant template is saved in your BrowserAct account.
  3. Set Schedule: The default trigger interval is 15 minutes. Adjust the Schedule Trigger node if you need a different frequency.
  4. Activate: Turn on the workflow to start monitoring your chats.

Requirements

  • BrowserAct account with the Telegram Personal Assistant template.
  • Google Gemini account.
  • Telegram account (accessed via BrowserAct).

How to customize the workflow

  1. Change AI Persona: Modify the system prompt in the Chatting & Answering AI agent to change the tone from "Professional Support" to "Casual Assistant" or "Sales Representative."
  2. Adjust Frequency: Change the Schedule Trigger interval to run every 5 minutes for faster responses or hourly for less urgency.
  3. Add Notification: Add a Slack or Email node after the delivery step to get notified whenever the bot sends a reply.

Need Help?


Workflow Guidance and Showcase Video

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 - Loop Over Items

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 2 - Structured Output

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 3 - Human Verification Switch

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

Block 4 - Every 15 minutes

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.3

Block 5 - Read Telegram Message

Type / Role
n8n-nodes-browseract.browserAct - browserAct
Config choices
Version 1

Block 6 - Give Time to Complete Verification

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

Block 7 - Get Data From BrowserAct

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 8 - Splitting Extracted Items

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

Block 9 - Generate Answers for Messages

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3

Block 10 - Check If Message Requires Response

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

Block 11 - Run Answering Workflow

Type / Role
n8n-nodes-browseract.browserAct - browserAct
Config choices
Version 1

Block 12 - Human Verification Switch2

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

Block 13 - Give Time to Complete Verification2

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

Block 14 - Get Data From BrowserAct2

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 15 - Wait for Workflow Completion

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

Block 16 - Google Gemini

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 17 - Cleaning Output Text

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

Block 18 - Documentation

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

Block 19 - Step 1 Explanation

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

Block 20 - Step 2 Explanation

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

Block 21 - Step 3 Explanation

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

Block 22 - Sticky Note

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

3. Summary Table

Workflow Auto-reply to Telegram messages using BrowserAct and Google Gemini
Complexity advanced
Nodes 22
Categories Support Chatbot, AI Chatbot
Author Madame AI Team | Kai
Published 01 Jan 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/12359/12359.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 Auto-reply to Telegram messages using BrowserAct and Google Gemini do?

Auto reply to Telegram messages using BrowserAct & Google Gemini This workflow acts as a smart, 24/7 personal assistant for your Telegram chats. It runs on a schedule to monitor your message histor...

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.