⚡ Manage personal data with multiple GPT-4o AI agents: Gmail, Tasks & Finance on Telegram

1,156 views · ⚡ Personal Productivity

Description

Overview

Automate your personal productivity with this intelligent n8n workflow that integrates Telegram, Google Sheets, and OpenAI (GPT-4o). This system uses multiple AI agents to manage work hours, tasks, finances, and emails—all through natural language commands sent via Telegram. Every action is synced to Google Sheets for persistent, structured data storage.


What This Template Does

This automation system deploys several specialized AI agents:


Prerequisites & Setup

Required Accounts & API Keys

Before setup, ensure you have:

  1. Telegram Bot Token – from @BotFather
  2. OpenAI API Key – with access to gpt-4o-mini or gpt-3.5-turbo
  3. Google Sheets API – OAuth2 credentials enabled
  4. Gmail Account (Optional) – for email analysis
  5. n8n Instance – self-hosted or cloud

Google Sheets Structure

Create a Google Sheet with the following sheets and columns:

Sheet: work

Sheet: task

Sheet: Expenses

Sheet: email


Step-by-Step Setup

Step 1: Import the Workflow

  1. In n8n, go to Workflows > Import from file
  2. Upload the JSON template
  3. Open the canvas and verify all nodes are connected

Step 2: Configure Credentials

  1. Telegram: Add your bot token under “Telegram account”
  2. OpenAI: Enter your API key in “OpenAi account”
  3. Google Sheets: Connect using OAuth2 under “Google Sheets account”
  4. Gmail (Optional): Set up if using email analysis
  1. Share your Google Sheet with the service account email (if using service account)
  2. Copy the Document ID from the sheet URL
  3. Update all Google Sheets nodes with the correct sheet names and IDs
  4. Ensure column names match exactly

Step 4: Set Up Telegram

  1. Start a chat with your bot
  2. Use /start to initialize
  3. Ensure chatId and message_thread_id in Telegram nodes match your group/topic
  4. Test sending a message like “Start work at the factory”

Step 5: Test the Agents

Try these sample commands via Telegram:


Key Features

Smart Work Tracking

Task Management

Financial Tracking

Email Intelligence

Automated Monthly Reports


Customization Options

Modify AI Prompts

Edit the systemMessage in any AI agent node to:

Extend Functionality

Enhance Telegram Interaction


Troubleshooting

IssueSolution
Bot not respondingCheck webhook URL, bot token, and chatId
Google Sheets not updatingVerify OAuth2 permissions and sheet sharing
AI not understanding commandsReview prompt clarity and test input phrasing
Monthly report not sendingConfirm Schedule Trigger timezone and execution time

Benefits

Full automation with minimal user input
📱 Control everything from Telegram
📊 Data stored securely in Google Sheets
📄 Professional PDF reports generated automatically
💬 Natural, friendly Arabic responses
🔁 Seamless sync across all components

This template transforms personal productivity by combining AI intelligence with powerful automation—turning simple Telegram messages into structured data, actionable insights, and professional reports.

🔗 Nodes Used

Telegram, Telegram Trigger, Gmail, Gmail Trigger, Schedule Trigger, AI Agent

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup