n8n

How to Automate Telegram Request Triage?

Turn Telegram into a smart intake desk that reads text, voice, and images. It sorts each message and replies with clear next steps. Great for teams that use Telegram to collect service requests or field updates.

A webhook listens for new messages from Telegram. An access check verifies user and chat IDs and sends an error message if the sender is not allowed. A router splits messages by type. Audio files are downloaded, transcribed with OpenAI, then classified to send a tailored reply. Text is cleaned and analyzed with OpenAI to detect tasks or other topics. Images are fetched, converted to a file, analyzed with OpenAI vision, and summarized back to the chat. Admin tools set and check Telegram webhooks for test and production and post status updates.

Setup needs a Telegram bot token and an OpenAI API key. Add allowed user and chat IDs in the validation node and set test and production webhook URLs. Expect faster triage, fewer manual steps, and one channel for mixed content. Useful for field ops, dispatch teams, and support staff who work inside Telegram.

What are the key features?

  • Webhook intake that listens for Telegram updates in real time.
  • User and chat ID validation with a clear error reply for unauthorized senders.
  • One click tools to set and check Telegram webhooks for test and production.
  • Message router that separates audio, text, and image messages.
  • Audio path: download from Telegram, transcribe with OpenAI, classify, and send a tailored reply.
  • Text path: clean fields, classify with OpenAI, and post a specific response.
  • Image path: fetch file, convert to base64 and file, analyze with OpenAI vision, then return a summary.
  • Status messages that confirm webhook health and setup success.
  • Error handling for unsupported inputs to keep runs stable.

What are the benefits?

  • Reduce manual triage from 2 hours to 10 minutes per day
  • Automate up to 80% of message routing from Telegram
  • Improve message type detection accuracy by 90%
  • Handle 5 times more inbound messages without extra staff
  • Connect Telegram and OpenAI in a single flow

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Telegram and OpenAI. See the Tools Required section above for links to create accounts with these services.
  3. In the n8n credentials manager, create a Telegram credential. Double click any Telegram node, choose Credential to connect with, click Create new credential, then paste your bot token from BotFather. Give the credential a clear name.
  4. Create an OpenAI API key in your OpenAI account. In n8n, open an OpenAI node, click Create new credential, and paste the API key. Save with a clear name.
  5. Open the Set node named Telegram Token & Webhooks. Enter your bot token, your test webhook URL, and your production webhook URL. Make sure the URLs are public and use HTTPS.
  6. Run Set Webhook Test URL and then Get Telegram Webhook Info to confirm the test webhook is active. You should see the correct URL and no pending errors.
  7. When ready, run Set Webhook Production URL and confirm with Production Webhook Status. Keep only one active webhook per bot.
  8. Open the Validation and Check User & Chat ID nodes. Add your allowed user IDs and chat IDs. To find IDs, send a test message and review the incoming execution data.
  9. Send a sample text message to the bot. Confirm you receive a task or other reply from the Text Task Message or Text Other Message nodes.
  10. Record a voice note or send an audio file. Check that transcription runs and a tailored reply is sent from the audio message nodes.
  11. Send a photo with a caption. Verify the image is analyzed and the Image Message returns a useful summary.
  12. If messages do not arrive, verify the webhook path matches the Listen for Telegram Events node, confirm HTTPS, check that OpenAI credentials are valid, and review the n8n execution logs for errors.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

OpenAI

Sign up

Pay-as-you-go: GPT-5 at $1.25 per 1M input tokens and $10 per 1M output tokens

Telegram

Sign up

Free: $0, Telegram Bot API usage is free for developers

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.