Deploy a robust, multilingual Telegram bot using this advanced n8n workflow. It tracks new/returning users in NocoDB and delivers localized, dynamic responses for /start and /help commands.
Download this n8n workflow template and start using it instantly.
Building scalable bots requires smart handling of localization and user data. This specific n8n workflow template solves the challenge of creating a truly multilingual Telegram bot by centralizing all bot messages in a database (NocoDB) and dynamically switching the response language based on the user's settings. Crucially, the n8n workflow tracks whether a user is new or returning, ensuring a customized welcome or welcome-back message. By using a combination of the Telegram n8n node, database lookups, and flow control logic, this n8n automation provides a resilient, easily maintainable solution for international communication.
The entire process is initiated by the Telegram Trigger n8n node.
chatID) extracts the user's chat ID and determines the appropriate language based on the user's Telegram settings (defaulting to English if the language is not supported).CheckUser n8n node to determine if the chatID already exists in the 'TGusers' table.Merge node combines the initial trigger data and the user check result. A subsequent Switch n8n node examines the message text, routing the flow based on commands like /start (Output 0), /help (Output 1), or any other unrecognized command (Fallback Output).New user? Function node checks the database result. The IF n8n node then splits the flow: new users are registered via HTTP AddUser and receive the msggreet localization; returning users are updated via HTTP UpdateUser and receive the msgwelcomeback localization.msghelp or msg_wrongcommand) use expressions combined with the dictionary data and the language code determined earlier to send the perfectly localized message back to the user via the Telegram n8n node. This ensures every interaction driven by this n8n template is correctly translated.To deploy this comprehensive n8n workflow, follow these steps:
TG_users (for user tracking) and botmessages (containing your dictionary key-value pairs for localization).CheckUser and LoadDictionary n8n node operations, as well as the HTTP Header Auth credentials required for the HTTP AddUser and HTTP UpdateUser nodes (which replace temporarily broken NocoDB functionality). Telegram Trigger (n8n trigger): The starting point of this n8n workflow. It listens for incoming messages, essential for any Telegram bot automation.
LoadDictionary & botmessages (NocoDB & Function): Loads all localized bot messages from NocoDB. The subsequent botmessages n8n node restructures this array data into an accessible object, keyed by message name, simplifying lookups.
chatID (Function n8n node): Determines the user's current language preference. Key Configuration: Contains logic to enforce supported languages ('ru', 'en') or default to 'en'.
CheckUser (NocoDB n8n node): Queries the NocoDB TGusers table using the chatID to check for prior activity, central to the user tracking functionality of this n8n workflow.
Switch (n8n node): Routes the flow based on the text of the incoming message, enabling command handling for /start and /help.
IF (n8n node): A critical flow control element. It checks the output of the New user? Function to route traffic either to the Add User path or the Update User path.
HTTP AddUser / HTTP UpdateUser (HTTP Request n8n node): Handles persistence by adding new users or updating returning users in the NocoDB database. These are configured with a POST (Add) or PATCH (Update) method using Header Authentication.
msggreet, msg_help, etc. (Telegram n8n node): The final action nodes. Key Configuration: Uses complex expressions (e.g., {{$evaluateExpression($node["botmessages"].json["greeting"][$node["chatID"].json["lang"]])}}) to pull the correct language string based on the user's determined language code.
Use this advanced n8n workflow template to automate B2B lead generation, enrichment, AI-powered email personalization using GPT-4o, and intelligent reply classification. Maximize your sales efficiency with a compliant n8n solution.

Build a powerful personal AI assistant using n8n that connects Telegram, xAI Grok, Gmail, Google Calendar, and persistent memory storage. This advanced n8n workflow handles text and voice inputs.

Use this powerful n8n workflow to deploy a Telegram-based AI Quant Agent. It provides multi-timeframe trading reports (15m/1h/4h/1d) for WEEX Spot Market using OpenAI and real-time market data.

Implement an advanced n8n workflow to automatically translate, summarize, and draft replies to multilingual Gmail messages using DeepL and GPT-4o, requiring human approval via Slack before sending. Get started with these powerful n8n templates.

Use this advanced n8n workflow to automatically scrape RSS feeds, rewrite and translate content into multiple languages using OpenAI, generate unique featured images via Replicate, and publish directly to WordPress ACF fields. Essential n8n templates for multilingual content creators.

Deploy an advanced, multilingual Telegram bot using this n8n workflow. It uses the n8n trigger for inputs, ElevenLabs for TTS/STT, and LangChain agents powered by Gemini and Groq for intelligent responses.








































