Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Your Telegram AI Assistant Can Email Anyone as You: 6 Checks to Run Before the Model Does

说明与用途

Telegram 机器人在代表用户发送电子邮件之前,通过防止未授权使用、重复处理、过时消息、昂贵转录、模糊联系人和时区错误来保护自己。

问题

A Telegram bot that can send emails on behalf of a user must guard against unauthorized use, duplicate processing, stale messages, costly operations, ambiguous contacts, and time zone errors before invoking the AI model.

结果

The workflow prevents unauthorized email sending, duplicate processing, costly transcription, ambiguous contact resolution, and time zone misinterpretation, enabling a safe Telegram AI assistant.

工作流

  • Receive Telegram update via webhook
  • Guard API checks chat ID allowlist
  • Atomic deduplication of update_id
  • Reject messages older than 10 minutes
  • Reject voice notes longer than 120 seconds
  • If voice, download and transcribe with Whisper
  • Send prompt to AI Agent with tools: contacts, calendar, email
  • Agent replies on Telegram

证据

The first node after the trigger asks the API one question: may this update run at all?

来源

Atomic dedup on update_id

来源

I also ran the whole n8n workflow locally (n8n 2.43.8) against the real API, with a fake Telegram, OpenAI and Google.

来源

  • 记录日期: 2026-11-02T07:13:47.458Z