Agent AI with n8n and generative AI integration
Workflow Description
An intelligent agent integrating Gemini generative models with n8n to process messages from Telegram, Gmail, and web requests. It analyzes queries and automatically routes them to appropriate services using conditional logic and advanced HTTP tools.
How it works
- 1.Receive messages from Telegram, Gmail, and webhook requests
- 2.Analyze content using Gemini's generative model
- 3.Route the request to the appropriate action via Switch and If logic nodes
- 4.Execute HTTP requests and custom process automation
- 5.Parse and format results using Output Parser
- 6.Send response back through the original channel
Use cases
- Intelligent customer service agent responding to Telegram and email inquiries
- Automate request processing and task delegation based on smart content analysis
- Seamlessly integrate external applications based on message context
Requirements
- Google Gemini API key
- Authentication tokens for Telegram, Gmail, and webhook setup
- Understanding of agent building and conditional routing logic
Service Value
Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.
Apps Used
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (35)
HTTP Request1
HTTP Request
Proxmox API Documentation
HTTP Request
Auto-fixing Output Parser
Output Parser Autofixing
Google Gemini Chat Model1
Gemini Model
Structured Output Parser
Output Parser Structured
Proxmox
HTTP Request
HTTP Request
HTTP Request
Sticky Note
Sticky Note
Sticky Note1
Sticky Note
Google Gemini Chat Model2
Gemini Model
Sticky Note2
Sticky Note
When chat message received
Chat Trigger
Telegram Trigger
Set
Gmail Trigger
Gmail
Webhook
Webhook
Sticky Note3
Sticky Note
Proxmox API Wiki
HTTP Request
Structure Response
Code
Sticky Note4
Sticky Note
Sticky Note5
Sticky Note
Structgure Response from Proxmox
Code
Format Response and Hide Sensitive Data
Code
If
If
HTTP Request2
HTTP Request
Merge
Merge
HTTP Request3
HTTP Request
Google Gemini Chat Model
Gemini Model
AI Agent1
Agent
If1
If
HTTP Request4
HTTP Request
Merge1
Merge
AI Agent
Agent
Switch
Switch
Sticky Note6
Sticky Note
Sticky Note7
Sticky Note