Automation projects

AI Automation / Workflow Automation Completed

Virtual AI Task Assistant

AI-Powered Virtual Assistant | Telegram + Google Gemini + n8n

An AI-powered virtual assistant that turns informal Telegram messages into structured, prioritized tasks, then keeps users informed with connected briefings, reminders, reporting, command handling, and error alerts.

n8n AutomationGoogle GeminiTelegram Bot APIAI Workflow Automation
Completed project Six integrated processes
Virtual AI Task Assistant project cover

Project overview

From everyday messages to organized action

A connected assistant for capturing tasks, organizing priorities, and keeping everyday work visible.

01 / THE PROBLEM

Important details get lost in chat

Managing administrative tasks through chat messages can become overwhelming. Clients and users frequently send informal instructions such as “Call the supplier tomorrow,” “This payment is urgent,” or “Remind me to follow up with the client on Friday.” These messages can easily get buried in conversations.

Manually organizing tasks, determining their priority, tracking deadlines, and preparing daily summaries takes time. I wanted to simplify these activities through Telegram and AI-powered automation.

02 / THE SOLUTION

A virtual assistant built around Telegram

I developed a Telegram-based virtual assistant using n8n and Google Gemini. It processes incoming messages, extracts relevant information, organizes tasks, and provides automated notifications.

Separate automation processes support command handling, reminders, daily summaries, weekly reporting, and error alerts. Together, they form a centralized virtual-assistant workflow for administrative task management.

System architecture

Six Integrated Automation Processes

Each process has a distinct role, from capturing incoming requests to scheduled communication and workflow alerts.

01

Capture and Triage

Turn incoming Telegram messages into structured, prioritized tasks.

  • Telegram Trigger receives messages; a filter allows text only.
  • Google Gemini analyzes each message; Structured Output Parser extracts taskTitle, category, priority, dueDate, summary, and reasoning.
  • Relative dates such as tomorrow and Friday resolve against the current date. Priority is high, medium, or low; high is reserved for explicit urgency or deadlines within two days.
  • Tasks are saved in the va_task_inbox Data Table with the original message, chatId, and open status.
  • A Switch routes urgent notifications for high priority and standard confirmations for medium and low.
02

Daily Digest

Give users a daily summary of outstanding tasks.

  • A Schedule Trigger runs every day at 8 AM and retrieves open tasks.
  • Google Gemini generates a friendly briefing limited to 150 words.
  • High priorities and nearest deadlines appear first; remaining tasks are grouped by category.
  • The briefing includes a greeting and encouraging closing message, then goes to Telegram.
03

Commands

A separate command-handling automation component in the assistant.

This process appears as its own integrated section in the workflow. Command-specific behavior is not detailed here.

04

Reminders

A dedicated automated process designed to support task and deadline reminders.

The reminder process is organized separately. Specific intervals, schedules, and triggers are not asserted here.

05

Friday Weekly Report

A scheduled reporting component for weekly task visibility.

The weekly report is its own scheduled workflow section. Report contents and analytics are not asserted here.

06

Error Alerts

A separate process for handling workflow errors and sending alerts.

Error handling and alert notifications have a dedicated workflow section. Unsupported recovery behavior is not asserted here.

The complete system

Inside the Automation Architecture

A visual overview of the six integrated automation processes powering the Virtual AI Task Assistant.

The completed automation is organized as six connected processes with message triggers, AI processing, task storage, scheduled operations, notifications, and error alerts.

AI & workflow engineering

Tools behind the assistant

n8n

n8n

Workflow automation, orchestration, triggers, conditional logic, and integrations.

Google Gemini

AI-powered task extraction and natural-language summarization.

Telegram Bot API

Telegram-based user interaction, task confirmations, and notifications.

n8n Data Tables

Persistent task storage and retrieval.

Structured Output Parser

Consistent AI-generated JSON data.

Schedule Trigger

Scheduled automation for recurring processes.

Implementation

Technical Highlights

Practical AI and workflow design, connected through a maintainable multi-process architecture.

  • AI-powered natural-language processing
  • Structured JSON output and custom prompt engineering
  • Automatic task classification and relative-date resolution
  • Priority-based conditional routing
  • Persistent data storage and event-driven automation
  • Scheduled workflow execution and Telegram API integration
  • Automated reporting and error notification workflows

Integration challenge

Telegram message formatting fix

During development, AI-generated messages with Markdown formatting and special characters caused Telegram’s “can't parse entities” error.

I resolved the issue by switching to HTML parse mode and escaping special characters such as &, <, and > before sending.

Reliable formatted Telegram messages

Reflection

What I Learned

Building the Virtual AI Task Assistant gave me practical experience designing and implementing multi-process automation systems.

AI-powered workflow automationGemini with n8nTelegram bot integrationsStructured prompts and JSONConditional workflow logicPersistent data managementScheduled automationNotifications and reportingAPI integration debuggingMaintainable automation architecture

Future enhancements

Where the system could grow

These are potential improvements, separate from the completed functionality described above.

  • More advanced task management commands
  • Multi-user support with individual task storage
  • Task editing and deletion
  • Improved task completion tracking
  • More detailed reporting and analytics
  • Additional business application integrations

Try the Virtual AI Task Assistant

Experience how AI-powered automation can turn everyday Telegram messages into organized tasks, intelligent notifications, and automated briefings.

Full size Virtual AI Task Assistant n8n automation workflow

Virtual AI Task Assistant — complete n8n workflow