Skip to content
NEWError doctor and Watchtower: failed n8n runs explained in plain words, and emailed to you. See what is new

Library / Email Automation

Email Automation

Search Gmail from Telegram with a Gemini AI Assistant

When a Telegram message arrives, Gemini turns it into a Gmail search and an AI agent replies with the matching email information.

What it does

## 2. Connecting Your Gmail Account. 1. Connect your Gmail account – Choose the account you want to retrieve emails from. 2. Set the email limit – Enter the number of emails you want to fetch, or check "Return all" to retrieve every email matching your request. 3. Select read status – Choose whether to fetch unread or read emails.

The steps

  1. Basic LLM Chain
  2. Google Gemini Chat Model
  3. Google Gemini Chat Model1
  4. Basic LLM Chain1
  5. AI Agent
  6. Google Gemini Chat Model2
  7. Structured Output Parser
  8. Structured Output Parser1
  9. Structured Output Parser2
  10. User Request - Telegram Trigger
  11. Set Parameters From User Request (for fetching emails)
  12. Gets Requested Email(s)
  13. Sets Parameters For Response
  14. Sends (requested emails) via Telegram back

Similar automations