← All N8N workflows
AI & researchAgentAggregateGmailIfLM Chat Google Gemini

list gmail and delete gmail and ai check email

Configured with Agent, Aggregate, Gmail, LM Chat Google Gemini, and additional nodes. Review the connections and setup before adapting this template.

Workflow preview
MessagingGmail Get EmailGmailTriggerWhen clicking ‘Testworkflow’Manual TriggerAI & modelsGoogle Gemini ChatModelLM Chat Google GeminiMessagingGmailDeleteEmailGmailAI & modelsAI Check EmailAgentTransformUnwanted Email OutputParserOutput Parser StructuredRoutingIf Unwanted Marketingor SpamIfMessagingTelegram Sent EmailDeleted NotificationTelegramMessagingTelegram Sent Email NotDeleted NotificationTelegramMessagingTelegram Sent AI ErrorNotificationTelegramMessagingTelegram Sent DeleteEmail Failed…TelegramRoutingSuccessNo OpTransformIncrement Loop VarEdit FieldsTransformForward Prev Page NumEdit FieldsTransformInitialize Loop VarsEdit FieldsTransformAggregateAggregateMessagingGmailGmail

Node categories in this workflow

  • Messaging
  • Trigger
  • AI & models
  • Transform
  • Routing

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
Gmail Get EmailMessagingGmailgetAll
When clicking ‘Test workflow’TriggerManual TriggerSee node parameters
Google Gemini Chat ModelAI & modelsLM Chat Google GeminiSee node parameters
GmailDeleteEmailMessagingGmaildelete
AI Check EmailAI & modelsAgentSee node parameters
Unwanted Email Output ParserTransformOutput Parser StructuredSee node parameters
If Unwanted Marketing or SpamRoutingIfSee node parameters
Telegram Sent Email Deleted NotificationMessagingTelegramSee node parameters
Telegram Sent Email Not Deleted NotificationMessagingTelegramSee node parameters
Telegram Sent AI Error NotificationMessagingTelegramSee node parameters
Telegram Sent Delete Email Failed NotificationMessagingTelegramSee node parameters
SuccessRoutingNo OpSee node parameters
Increment Loop VarTransformEdit FieldsSee node parameters
Forward Prev Page NumTransformEdit FieldsSee node parameters
Initialize Loop VarsTransformEdit FieldsSee node parameters
AggregateTransformAggregateSee node parameters
GmailMessagingGmailaddLabels

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

  • gmailOAuth2
  • googlePalmApi
  • telegramApi

Workflow notes

list gmail and delete gmail and ai check email

list gmail and delete gmail and ai check email

Purpose and structure

This folder contains the list gmail and delete gmail and ai check email workflow. Its executable nodes use agent, aggregate, gmail, if, lmChatGoogleGemini, manualTrigger, noOp, outputParserStructured, set, telegram. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

When clicking ‘Test workflow’

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Telegram/1841_Telegram_Manual_Automate_Triggered.json MIT; preserve source notices.

More in AI & research