2026-04-07

Build a Telegram AI Assistant with n8n (Gmail_Google Calendar) Part 2

In this video, I complete the Telegram AI Assistant by adding Gmail tools, setting up error notifications, and securing the workflow so only authorized users can access it.

What's covered:

- Adding the Gmail send email tool to the AI agent and testing it live

- Disabling the n8n append attribution footer from outgoing emails

- Adding the Gmail get summary tool to retrieve and summarize recent emails

- Publishing the workflow to make it run automatically without manual execution

- Live demo testing all tools including calendar creation and email sending after publishing

- Creating a separate error notification workflow using the Error Trigger node

- Configuring the error notification to send an email with workflow name, date, last node executed and error stack

- Linking the error notification workflow to the Telegram AI Assistant via workflow settings

- Testing error notifications by deactivating nodes and triggering failures

- Tips for making the agent smarter using Google Sheets or Airtable to store contact names and email addresses

- Adding an IF node to restrict workflow access by chat ID

- Sending an unauthorized access message to users whose chat ID does not match

- Live demo testing the chat ID filter from a second Telegram account

Next

Build a Telegram AI Assistant with n8n (Gmail + Google Calendar) Part 1