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:
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:
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.