Manage Calendar with Voice & Text Commands using GPT-4, Telegram & Google Calendar
This n8n workflow transforms your Telegram bot into a personal AI calendar assistant , capable of understanding both voice and text commands in Romanian , and managing your Google Calendar using the GPT-4 model via LangChain.
Whether you want to create, update, fetch, or delete events, you can simply speak or write your request to your Telegram bot โ and the assistant takes care of the rest.
๐ Features
- Voice command support using Telegram voice messages (.ogg)
- Transcription using OpenAI Whisper
- Natural language understanding with GPT-4 via LangChain
- Google Calendar integration:
- โ
Create Events
- ๐ Update Events
- โ Delete Events
- ๐
Fetch Events
- Responses sent back via Telegram
๐ ๏ธ Step-by-Step Setup Instructions
1. Create a Telegram Bot
- Go to @BotFather on Telegram.
- Send
/newbot and follow the instructions.
- Save the Bot Token .
2. Configure Telegram Trigger Node
- Paste the Telegram token into the Telegram Trigger and Telegram nodes .
- Set updates to
["message"] .
3. Set up OpenAI Credentials
- Get an OpenAI API key from https://platform.openai.com
- Create a credential in n8n for OpenAI .
- This is used for both transcription and AI reasoning .
4. Set up Google Calendar
- In Google Cloud Console:
- Enable Google Calendar API
- Set up OAuth2 credentials
- Add your n8n redirect URI (usually
https://yourdomain/rest/oauth2-credential/callback )
- Create a credential in n8n using Google Calendar OAuth2
- Grant access to your calendar (eg, "Family" calendar).
โ๏ธ Customization Options
๐ฃ๏ธ Change Language or Locale
- The transcription node uses
"en" for English. Change to another locale if needed.
โ๏ธ Edit Prompt
- You can modify the prompt in the AI โโAgent node to include your name, work schedule, or specific behavior expectations.
๐ Change Calendar Logic
- Adjust time ranges or filters in the
Get Events node
- Add custom logic before
Create Event (eg, validation, conflict checks)
๐ Helpful Tips
- Make sure n8n has HTTPS enabled to receive Telegram updates.
- You can test the flow first using only text, then voice.
- Use AI memory or vector stores (like Supabase) if you want context-aware planning in the future.