Telegram Bot Webhook Configuration Tool - n8n Workflow

Use this free n8n workflow to instantly configure Telegram bot webhooks. Input your API token and URL to automate setup using a simple n8n form.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Developers and automation specialists who frequently configure Telegram integrations.
Users looking for plug-and-play n8n templates for specific configuration tasks.
Anyone who wants to utilize n8n to create a public utility tool.
Teams needing a quick, reliable way to set up an n8n trigger endpoint as a Telegram webhook.

Overview

This is a highly practical n8n workflow designed to eliminate the manual, error-prone process of configuring Telegram bot webhooks. Instead of manually constructing complex API requests or using external scripts, this automation provides a public-facing form built using an n8n node. The user simply supplies their Telegram Bot API Token and the target Webhook URL (typically the HTTP Request n8n trigger endpoint). The n8n workflow instantly constructs the required setWebhook API URL and redirects the user's browser to execute the command. This utility is privacy-focused, ensuring no sensitive data is stored, and serves as an excellent example of advanced automation capabilities within n8n.

How it Works

This n8n workflow functions as a three-step configuration utility driven by a public form.


  1. Input Collection: The n8n trigger is the Webhook Configuration Form n8n node. This form collects two critical inputs: the Bot API Token and the Webhook URL (the destination where Telegram should send updates).

  2. URL Construction: The Build Telegram API URL n8n node takes these two variables and uses a dynamic expression to assemble the complete Telegram API URL in the format: https://api.telegram.org/bot{TOKEN}/setWebhook?url={WEBHOOK_URL}. This ensures the URL is correctly structured for the Telegram API. This key logic node is essential for the n8n workflow.

  3. API Execution (Redirect): The final Redirect to Telegram API n8n node is configured to respond to the initial form submission with a browser redirect. The destination of the redirect is the dynamically constructed API URL. By redirecting the user's browser to this URL, the Telegram API is called directly, configuring the webhook instantly and completing the execution of this n8n workflow.

Installation Guide

To start using this n8n template, follow these steps:


  1. Import the JSON: Copy the provided n8n workflow JSON and paste it into your n8n instance via the 'Import from JSON' option.

  2. Activate the Workflow: Ensure the n8n workflow is set to 'Active' in the top right corner.

  3. Access the Form: Click on the Webhook Configuration Form n8n trigger node and copy the 'Public URL' for the form. This URL is what you will share or use to input the data.

  4. Usage: Input your Bot API Token and the desired Webhook URL (e.g., the test URL of a different n8n trigger or an active n8n endpoint).

  5. Run: Submit the form. Your browser will instantly redirect to Telegram's API endpoint, showing a confirmation message (success or error) from Telegram itself.

Node Details

Webhook Configuration Form (n8n node): This acts as the primary n8n trigger, exposing a user-friendly web interface. It requires the 'Bot API Token' and the 'Webhook URL' as mandatory fields. The sticky note emphasizes that this n8n node ensures no data is stored for privacy.
Build Telegram API URL (Set n8n node): This core logic node is responsible for synthesizing the API call structure. It uses expressions to combine the two user inputs into a single string variable named telegramapiurl, which holds the complete setWebhook command.


  • Redirect to Telegram API (Form n8n node): This node handles the final action. Instead of returning a traditional success message, it utilizes the 'redirect' response type, forcing the user's browser to execute the Telegram API call constructed by the previous n8n node. This is the critical step that configures the webhook.

Related n8n Workflows

Free

Nodes: 4 Nodes
Updated: December 26 2025
View all

Featured*