AutomationFlowsSlack & Telegram › Configure Telegram Bot Webhooks with Form Automation

Configure Telegram Bot Webhooks with Form Automation

ByUn tal Camilo Medina @untalcamilomedina on n8n.io

This workflow creates a simple web form that helps you configure Telegram bot webhooks quickly. Instead of manually constructing the Telegram API URL, this tool does it for you automatically.

Event trigger★★☆☆☆ complexity7 nodesForm TriggerForm
Slack & Telegram Trigger: Event Nodes: 7 Complexity: ★★☆☆☆ Added:

This workflow corresponds to n8n.io template #4856 — we link there as the canonical source.

This workflow follows the Form → Form Trigger recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "id": "BpTvf5dZvJNwRVzq",
  "name": "\ud83e\udd16 Telegram Bot Webhook Configuration Tool",
  "tags": [],
  "nodes": [
    {
      "id": "069cd3df-bc76-494f-ae26-997c6f20e405",
      "name": "Webhook Configuration Form",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -460,
        160
      ],
      "parameters": {
        "options": {},
        "formTitle": "Telegram Bot Webhook Configuration",
        "formFields": {
          "values": [
            {
              "fieldLabel": "Bot API Token",
              "requiredField": true
            },
            {
              "fieldType": "url",
              "fieldLabel": "Webhook URL",
              "requiredField": true
            }
          ]
        },
        "formDescription": "Quickly configure your Telegram bot webhook with this free tool. No data is stored - your information is processed in real-time for immediate webhook setup."
      },
      "typeVersion": 2.2
    },
    {
      "id": "695cf6d2-c03f-4aa9-88d7-c1d8ce0295f9",
      "name": "Build Telegram API URL",
      "type": "n8n-nodes-base.set",
      "position": [
        0,
        160
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "a938e7ac-efa9-4124-976a-60a8bb85f624",
              "name": "telegram_api_url",
              "type": "string",
              "value": "=https://api.telegram.org/bot{{ $json['Bot API Token'] }}/setWebhook?url={{ $json['Webhook URL'] }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "0ebd493a-8e29-4463-bc86-f631102557d7",
      "name": "Redirect to Telegram API",
      "type": "n8n-nodes-base.form",
      "position": [
        440,
        160
      ],
      "parameters": {
        "operation": "completion",
        "redirectUrl": "={{ $json.telegram_api_url }}",
        "respondWith": "redirect"
      },
      "typeVersion": 1
    },
    {
      "id": "03c8261a-4b83-4e3f-bd1a-ff7361271987",
      "name": "Form Collection Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -660,
        -220
      ],
      "parameters": {
        "width": 500,
        "height": 540,
        "content": "## Form Input Collection\n\nThis node creates a user-friendly web form to collect webhook configuration data:\n\n**Input Fields:**\n- Bot API Token (from @BotFather)\n- Webhook URL (your n8n endpoint)\n\n**Features:**\n- Input validation\n- Placeholder examples\n- Privacy notice\n- Mobile-responsive design\n\n**Security:** No data is stored - all processing happens in real-time."
      },
      "typeVersion": 1
    },
    {
      "id": "d5680d48-d3c4-4495-a973-2286a0865619",
      "name": "URL Processing Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -140,
        -220
      ],
      "parameters": {
        "width": 380,
        "height": 540,
        "content": "## URL Construction Logic\n\nThis node builds the proper Telegram API URL for webhook configuration:\n\n**Process:**\n- Constructs Telegram setWebhook API URL\n- URL-encodes the webhook parameter\n- Creates masked token for logging\n- Validates URL format\n\n**API Endpoint:**\n`https://api.telegram.org/bot{TOKEN}/setWebhook?url={WEBHOOK_URL}`\n\n**Error Prevention:** Automatic URL encoding prevents common configuration issues."
      },
      "typeVersion": 1
    },
    {
      "id": "243ecd80-ffec-465b-bf84-c46e0a30fadc",
      "name": "API Redirect Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        260,
        -220
      ],
      "parameters": {
        "width": 440,
        "height": 540,
        "content": "## Telegram API Redirect\n\nThis node completes the webhook configuration by redirecting to Telegram:\n\n**Final Step:**\n- Redirects user to generated API URL\n- Telegram processes webhook configuration\n- Returns success/error response\n- User sees confirmation in browser\n\n**Result:** Webhook is immediately active and ready to receive updates from Telegram.\n\n**Note:** User must be logged into their Telegram account for authorization."
      },
      "typeVersion": 1
    },
    {
      "id": "2e782593-940a-40ad-b7a4-74c69834a28b",
      "name": "Workflow Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -660,
        360
      ],
      "parameters": {
        "width": 1360,
        "height": 300,
        "content": "## \ud83e\udd16 Telegram Bot Webhook Configuration Tool\n\n**Purpose:** Streamline Telegram bot webhook setup for n8n automation workflows\n\n**Benefits:**\n\u2705 Eliminates manual URL construction\n\u2705 Prevents configuration errors  \n\u2705 Saves time for developers\n\u2705 Privacy-focused (no data storage)\n\u2705 Works with any Telegram bot\n\n**Perfect for:** Developers, automation teams, and anyone frequently configuring Telegram bot webhooks"
      },
      "typeVersion": 1
    }
  ],
  "active": true,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "ca3fa150-2a99-416d-a47f-0923c3054bb4",
  "connections": {
    "Build Telegram API URL": {
      "main": [
        [
          {
            "node": "Redirect to Telegram API",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook Configuration Form": {
      "main": [
        [
          {
            "node": "Build Telegram API URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

This workflow creates a simple web form that helps you configure Telegram bot webhooks quickly. Instead of manually constructing the Telegram API URL, this tool does it for you automatically.

Source: https://n8n.io/workflows/4856/ — original creator credit. Request a take-down →

More Slack & Telegram workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Slack & Telegram

SRT Translator. Uses formTrigger, executeWorkflowTrigger, form, telegramTrigger. Event-driven trigger; 34 nodes.

Form Trigger, Execute Workflow Trigger, Form +7
Slack & Telegram

End-to-End Video Creation from user idea or transcript AI-Powered Scriptwriting using LLMs (e.g., DeepSeek via OpenRouter) Voiceover Generation with customizable TTS voices Image Scene Generation usin

HTTP Request, Form Trigger, Output Parser Structured +6
Slack & Telegram

The Recap AI - VEO 3 Bigfoot Video. Uses formTrigger, lmChatAnthropic, chainLlm, slack. Event-driven trigger; 26 nodes.

Form Trigger, Anthropic Chat, Chain Llm +4
Slack & Telegram

Telegram Bot – SupportIQ. Uses telegramTrigger, httpRequest, telegram. Event-driven trigger; 4 nodes.

Telegram Trigger, HTTP Request, Telegram
Slack & Telegram

Template was created in n8n v1.90.2 Error Trigger Slack node

Error Trigger, Slack