Skip to main content

Simple scheduling and internal document query bot with Telegram

Workflow preview

Workflow preview
100%
Simple scheduling and internal document query bot with Telegram preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Template Overview This workflow demonstrates how to build a simple Telegram bot that can schedule events, check service prices, and query company documents using AI integrated with MCP and RAG. It’...

Best for

  • Internal Wiki automation workflows
  • AI RAG automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.mcptrigger, n8n-nodes-base.googlesheetstool, n8n-nodes-base.googledocstool, @n8n/n8n-nodes-langchain.mcpclienttool, n8n-nodes-base.datetimetool, n8n-nodes-base.telegram, n8n-nodes-base.telegramtrigger

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Curso Bot com IA.

Original n8n.io source

1.1 Workflow description

Title
Simple scheduling and internal document query bot with Telegram
Workflow name
Simple scheduling and internal document query bot with Telegram

Template Overview This workflow demonstrates how to build a simple Telegram bot that can schedule events, check service prices, and query company documents using AI integrated with MCP and RAG. It’s designed to show how n8n can connect conversational interfaces with internal tools in a clear and scalable way.

Key Concepts (explained simply):

MCP (Multi‑Channel Processing): A framework that lets the AI agent connect to external services (like Google Calendar, Docs, Sheets) through MCP Clients and Servers. Think of it as the “bridge” between the bot and your tools.

RAG (Retrieval‑Augmented Generation): A method where the AI retrieves information from documents before generating a response. This ensures answers are accurate and based on your actual data, not just the AI’s memory.

⚙️ Setup Instructions (step‑by‑step) Create a Telegram Bot

Use BotFather to generate a bot and get the API token.

Configure Google Services

Make sure you have access to Google Calendar, Docs, and Sheets.

Connect them via MCP Server so the agent can call these tools.

Set up Redis Memory

Create an Upstash Redis account.

Configure it in the workflow to store conversation history.

Import the Template into n8n

Load the workflow and update credentials (Telegram, Google, Redis).

Test the Bot

Send a message like “Schedule laptop maintenance tomorrow” and check if it creates an event in Google Calendar.

🛠 Troubleshooting Section Bot not responding?

Verify your Telegram API token is correct.

Google services not working?

Check that your MCP Server is running and properly connected to Calendar, Docs, and Sheets.

Conversation context lost?

Ensure Redis memory is configured and accessible.

Wrong date/time?

Confirm that relative dates (“tomorrow”, “next week”) are being converted into ISO format correctly.

Customization Examples This template is flexible and can be adapted to different scenarios. Here are some ideas:

Change the communication channel Replace the Telegram Trigger with WhatsApp, Slack, or a Webhook to fit your preferred platform.

Expand document sources Connect additional Google Docs or Sheets, or integrate with other storage (e.g., Notion, Confluence, or internal databases) to broaden the bot’s knowledge base.

Add new services Extend the workflow to handle more requests, such as booking meeting rooms, checking inventory, or creating support tickets.

Personalize responses Customize the AI Agent’s tone and style to match your company’s branding (formal, friendly, or technical).

Segment agents by role Create specialized agents (e.g., one for scheduling, one for pricing, one for troubleshooting) to keep the workflow modular and scalable.

Integrate external APIs Connect to services like Google Calendar, CRM systems, or helpdesk platforms to automate more complex tasks.

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 - Sticky Note7

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

Block 2 - Sticky Note6

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

Block 3 - Sticky Note2

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

Block 4 - MCP Google Docs e Sheet

Type / Role
@n8n/n8n-nodes-langchain.mcpTrigger - mcpTrigger
Config choices
Version 2

Block 5 - Troubleshooting - Lista de Problemas e Soluções

Type / Role
n8n-nodes-base.googleSheetsTool - googleSheetsTool
Config choices
Version 4.7

Block 6 - Valores dos Serviços

Type / Role
n8n-nodes-base.googleSheetsTool - googleSheetsTool
Config choices
Version 4.7

Block 7 - Guia da Loja de TI

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

Block 8 - MCP Client Google Calendario

Type / Role
@n8n/n8n-nodes-langchain.mcpClientTool - mcpClientTool
Config choices
Version 1.2

Block 9 - MCP Client Google Docs

Type / Role
@n8n/n8n-nodes-langchain.mcpClientTool - mcpClientTool
Config choices
Version 1.2

Block 10 - Date & Time

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

Block 11 - Send a text message

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

Block 12 - Telegram Trigger

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

Block 13 - Update an event in Google Calendar

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

Block 14 - Get many events in Google Calendar

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

Block 15 - Delete an event in Google Calendar

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

Block 16 - Create an event in Google Calendar

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

Block 17 - MCP Google Calendario

Type / Role
@n8n/n8n-nodes-langchain.mcpTrigger - mcpTrigger
Config choices
Version 2

Block 18 - Google Gemini Chat Model

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

Block 19 - AI Agent

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

Block 20 - Sticky Note

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

Block 21 - Redis Chat Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryRedisChat - memoryRedisChat
Config choices
Version 1.5

3. Summary Table

Workflow Simple scheduling and internal document query bot with Telegram
Complexity advanced
Nodes 21
Categories Internal Wiki, AI RAG
Author Curso Bot com IA
Published 25 Nov 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/11234/11234.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 Simple scheduling and internal document query bot with Telegram do?

Template Overview This workflow demonstrates how to build a simple Telegram bot that can schedule events, check service prices, and query company documents using AI integrated with MCP and RAG. It’...

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 Internal Wiki, AI RAG use case.