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

Build a Telegram calendar assistant with n8n and Gemini (text and voice notes)

说明与用途

使用 n8n 和 Gemini 构建的 Telegram 机器人,让用户通过文本或语音添加、查询和修改 Google 日历事件和任务,省去手动操作的步骤。

问题

Adding events to a phone calendar requires many taps; speaking a voice note can add an event in seconds.

结果

The assistant allows users to add, query, and modify calendar events or tasks via simple text or voice messages in Telegram, eliminating the need for manual app interactions.

工作流

  • 1. Telegram Trigger receives message
  • 2. Set node stores allowed user IDs, timezone, default event length
  • 3. IF node checks if sender is allowed
  • 4. Switch node routes to voice or text branch
  • 5. Voice branch downloads OGG file and Gemini transcribes audio
  • 6. Text branch passes text directly
  • 7. Set node outputs unified request field
  • 8. Gemini AI Agent processes request with system message including current time and rules
  • 9. Agent calls tools (Get/Create calendar events, Get/Complete tasks) using $fromAI()
  • 10. Code node formats reply for Telegram
  • 11. Telegram node sends reply

证据

Adding something to a calendar on a phone is about eight taps: open the app, tap plus, type the title, pick a date, pick an start time, pick an end time, save. Saying "lunch with Priya Friday at 1" into a voice note takes three seconds.

来源

A Gemini-powered AI Agent reads and writes your Google Calendar and Google Tasks, transcribes voice notes itself (no separate speech-to-text service), and replies in plain language.

来源

The system message injects the current time in your timezone on every run: ... Use ISO 8601 date-times with the correct UTC offset in every tool call.

来源

  • 记录日期: 2026-11-02T11:28:47.686Z