Automated Email Inquiry Processing & Routing with Gmail and Gemini AI

Go to Workflow
0 views
Built by Oneclick AI Squad Oneclick AI Squad
Created on June 05, 2026

Description

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

Gmail Trigger: Initiates the workflow upon receiving a new email.
AI Agent: Analyzes the email content to determine the customer's intent (availability check or direct booking).
Code: Parses the JSON output from the AI Agent.
Wait for Data - Ensures proper data synchronization before proceeding with conditional logic
If: Routes the workflow based on the detected intent.
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

Nodes Used (4)

AI Agent
@n8n/n8n-nodes-langchain.agent
Code
n8n-nodes-base.code
Gmail
n8n-nodes-base.gmail
Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini