Templates / Automated email inquiry processing & routing with Gmail and Gemini AI

Automated email inquiry processing & routing with Gmail and Gemini AI

Needs changes

by Oneclick AI Squad ✓ · 1,410 views · created 2025-07-29 · Support Chatbot, AI Chatbot

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What to replace before upgrading

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
AI Agent (v1.9)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Worth a look

Nodes used (8)

GmailAI AgentGoogle Gemini Chat ModelHTTP Request

What it does

This automated n8n workflow processes any inquiry emails using AI-powered intelligence to determine customer intent and provide appropriate responses. The system analyzes incoming emails, performs availability checks or direct booking processing, and sends personalized responses based on the customer's specific requirements across any industry vertical. Good to Know Uses Google Gemini Chat Model for intelligent email analysis and response generation Automatically detects customer intent (availability check vs direct booking request) Includes conditional routing for different response types based on AI analysis Integrates with external booking systems through HTTP requests Provides seamless email automation with personalized customer communication How It Works 1. Gmail Trigger: Initiates the workflow upon receiving a new email. 2. AI Agent: Analyzes the email content to determine the customer's intent (availability check or direct booking). 3. Code: Parses the JSON output from the AI Agent. 4. Wait for Data - Ensures proper data synchronization before proceeding with conditional logic 5. If: Routes the workflow based on the detected intent. 6. Gmail Nodes: Sends appropriate responses or forwards booking details. How to Use Import workflow into n8n Configure Gmail API credentials for email monitoring and sending Set up Google Gemini Chat Model API access Customize AI prompts based on your industry and booking requirements Test with sample inquiry emails to verify intent detection accuracy Configure external booking system integration if needed Monitor email processing and response quality Requirements Gmail API credentials Google Gemini Chat Model API access Email monitoring and sending permissions Optional: External booking system API integration Customizing This Workflow Modify AI prompts for different industries (hotels, restaurants, services, appointments) Adjust conditional logic based on specific business requirements Configure custom email templates for various response scenarios Add integration with CRM or booking management systems Set up additional data processing nodes for complex booking workflows Implement custom validation rules for booking requests

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.