Manage Calendar with Voice & Text using GPT-4, Telegram & Google Calendar

Last edited 56 days ago

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 (e.g., "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 (e.g., 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.

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!