AutomationMart
Home/Browse/Build a Telegram chatbot with Gemini
n8n

Build a Telegram chatbot with Gemini

n8nn8n10 modulesv1.0
DiscordWhatsAppOpenAITelegramLinkedInGemini

Overview - This workflow connects a Telegram bot to OpenAi/Google Gemini (PaLM API) so the bot can reply to users with AI-generated answers. - Useful for FAQs, assistants, classroom helpers, or bots that fetch document content to answer questions. Who is this for - Educators, creators, developers, and support teams who want a low-code Telegram chatbot powered by Gemini. What it does (quick) - Listens for messages sent to your Telegram bot. - Sends incoming text to Google Gemini and receives a ge

At a glance

Build a Telegram chatbot with Gemini is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Discord, WhatsApp, OpenAI, Telegram. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Discord, WhatsApp, OpenAI, Telegram, LinkedIn, Gemini
Modules
10
Price
Free
Version
v1.0
Build a Telegram chatbot with Gemini workflow diagram

About this workflow

Overview - This workflow connects a Telegram bot to OpenAi/Google Gemini (PaLM API) so the bot can reply to users with AI-generated answers. - Useful for FAQs, assistants, classroom helpers, or bots that fetch document content to answer questions. Who is this for - Educators, creators, developers, and support teams who want a low-code Telegram chatbot powered by Gemini. What it does (quick) - Listens for messages sent to your Telegram bot. - Sends incoming text to Google Gemini and receives a generated reply. - Optionally fetches content from Google Docs or an external API to enrich replies. - Sends the reply back to the original Telegram user. - Processes messages in batches and adds short delays to avoid spamming. Quick setup (5 steps) 1. Create a Telegram bot with @BotFather and copy the bot token. 2. Add Telegram credentials to n8n (Telegram node). 3. OpenAi API key and add it to n8n. 3. Get a Google Gemini (PaLM) API key and add it to n8n. 4. (Optional) Connect Google Docs OAuth2 if you want the bot to read documents. 5. Activate the workflow and test by messaging the bot. Required items - Telegram bot token - OpenAi API key - Google Gemini (PaLM) API key - n8n instance with Telegram and HTTP nodes enabled - (Optional) Google Docs OAuth2 credential How it works (step-by-step) 1. Telegram message arrives → Trigger node. 2. Workflow extracts message and user info. 3. (Optional) Pull supporting content from Google Docs or an API. 4. Send prompt + context to Gemini → receive reply. 5. Send reply back to the Telegram user. 6. Add small delays and batch processing to handle volume safely. How to customize - Edit the Gemini prompt to change response style and behavior. - OpenAi Chat model - Switch Gemini model (Flash vs Pro) for speed vs. quality. - Add conditions (If / Switch) to route different inputs to different behaviors. - Append more data sources (Sheets, external APIs) to enrich replies. - Add error handling to retry or log failed requests. Testing checklist - Send a test message to the bot and confirm a reply. - If using Google Docs, confirm the bot can read the target document. - Check logs and node outputs in n8n for any errors. Tips and best practices - Keep prompts concise and include only needed context to reduce costs. - Use rate limiting (Wait node) and batching to avoid API throttling. - Store API keys securely in n8n credentials. - Start with small tests before enabling automated production runs. 🙋 For Help & Community - 👾 Discord: n8n channel - 🌐 Website: devcodejourney.com - 🔗 LinkedIn: Connect with Shakil - 📱 WhatsApp Channel: Join Now - 💬 Direct Chat: Message Now

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Watch Google Sheets rows for updates and generate responses with ChatGPT

Monitor Google Sheets for row updates and automatically generate responses using ChatGPT, then log results back into Google Sheets.

Free

Intelligent web & local search with Brave Search API and Google Gemini MCP Server

Summary This n8n workflow implements an AI-powered agent that intelligently uses the Brave Search API (via an external MCP service like Smithery) to perform both web and local searches. It understands natural language queries, selects the appropriate search tool, and exposes this enhanced capability as a single, callable MCP tool. Key Features 🤖 Intelligent Tool Selection: AI agent decides between Brave's web search and local search tools based on user query context. 🌐 MCP Microservice: Expose

Free

Send Telegram messages for new Help Scout conversations

Every time a new conversation is created in Help Scout, Make will automatically send a message in Telegram.

Free

Post new Trello comments to Telegram

Every time a new comment is added in Trello, Make will automatically send a message in Telegram.

Free

Automated LinkedIn lead generation & DM outreach with Airtable, and Unipile.

LinkedIn DM Automation Overview Effortlessly scale personalized LinkedIn outreach using a no-code automation stack. This template provides a powerful, user-friendly system for harvesting leads from LinkedIn posts and managing outreach—all within Airtable and n8n. Features & Highlights - Actionable Input: Simply enter a LinkedIn post URL to kickstart the engine—no browser scraping or manual work needed. - Lead Harvesting: Automatically scrape commenters, likers, and profile data using Unipile’s A

Free

Generate & schedule social posts with Gemini/OpenAI for X and LinkedIn

LinkedIn Content Machine – AI-Powered Post Generator & Scheduler for X and LinkedIn How it works: This end-to-end workflow automates your personal or brand content strategy by: - 🧠 Using Google Gemini or OpenAI to generate engaging LinkedIn/X content from a title or trending posts. - 🗓️ Posting directly to LinkedIn and X (formerly Twitter). - 📊 Pulling high-performing LinkedIn posts to inspire new ideas. - ✍️ Saving AI-generated drafts to Google Sheets for review. - 🔔 Notifying your

Free

Automate real estate lead matching with Jotform, & Gemini AI to Zoho CRM

What Problem Does It Solve? In real estate, inquiries come from many sources and often require immediate, personalized attention. Brokers waste significant time manually: Qualifying leads: Determining if a prospect's budget, neighborhood, and needs match available inventory. Searching listings: Cross-referencing customer criteria against a large, static database. Data entry: Moving contact details and search summaries into a CRM like Zoho. Initial follow-up: Sending an email to confirm the s

Free

Enhance AI prompts with GPT-4o-mini and Telegram delivery

Workflow Documentation Description: This workflow is designed to optimize prompts by enhancing user inputs for clarity and specificity using AI. The workflow takes a user-provided prompt as input and uses a Natural Language Processing (NLP) model to refine and improve the prompt. The optimized prompt is then sent back to the user, ready for use in further workflows or processes. Setup: 1. This workflow is suitable for users who want to improve their prompts for better communication and understan

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free