Personal Life Manager with Telegram, Google Services & Voice-Enabled AI

Last edited 58 days ago

How it works:
This project teaches you to create a personal AI assistant named Caylee that operates through Telegram. Caylee can summarize unread emails, check calendar events, manage Google Tasks, and handle both voice and text interactions. The assistant provides a comprehensive digital life management solution accessible via Telegram messaging.

Key Features:

  • Supports hands-free voice interaction
  • Maintains conversation memory
  • Integrates with major Google services
  • Provides personalized assistance for email management, scheduling, and task organization

Step-by-step:
Telegram Trigger:
The workflow starts with a Telegram trigger that listens for incoming message events. The system determines if the incoming message is voice or text input.

Voice Processing:
If a voice message is received, the workflow retrieves the voice file from Telegram and uses OpenAI's transcription API to convert speech to text.

AI Assistant: The processed text (whether original text or transcribed voice) is passed to Caylee, the AI assistant powered by OpenRouter's language model.

Tools Integration:
Caylee is equipped with several productivity tools:

Get Email: Uses Gmail API to fetch unread emails from the inbox with sender, date, subject, and summary information

Google Calendar: Retrieves calendar events for specified dates, filtering out irrelevant future events

Google Tasks: Both creates new tasks and retrieves existing tasks from Google Tasks lists

API Keys Required:

  • Telegram Bot API: Create a bot via @BotFather on Telegram to get your bot token
  • OpenAI API: Required for voice-to-text transcription
  • OpenRouter API: Powers the AI language model responses
  • Google OAuth2: Needed for Gmail, Google Calendar, and Google Tasks integration

Response Generation:
The AI formulates intelligent responses based on the gathered information, current date context, and conversation history, then sends the response back to the user via Telegram in Markdown format.

New to n8n?

Need help building new n8n workflows? Process automation for you or your company will save you time and money, and it's completely free!