n8nflow.net logo

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

by Marian Tcaciucβ€’Updated: Last update 4 months agoβ€’Source: n8n.io
Loading workflow viewer...

Getting Started

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.