Skip to main content

Automated email inquiry processing & routing with Gmail and Gemini AI

Workflow preview

Workflow preview
100%
Automated email inquiry processing & routing with Gmail and Gemini AI preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 ...

Best for

  • Support Chatbot automation workflows
  • AI Chatbot automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.gmailtrigger, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatgooglegemini, n8n-nodes-base.httprequesttool, n8n-nodes-base.code, n8n-nodes-base.if, n8n-nodes-base.gmail, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Oneclick AI Squad.

Original n8n.io source

1.1 Workflow description

Title
Automated email inquiry processing & routing with Gmail and Gemini AI
Workflow name
Automated email inquiry processing & routing with Gmail and Gemini AI

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

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Gmail Trigger

Type / Role
n8n-nodes-base.gmailTrigger - gmailTrigger
Config choices
Version 1.2

Block 2 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.9

Block 3 - Google Gemini Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 4 - HTTP Request

Type / Role
n8n-nodes-base.httpRequestTool - httpRequestTool
Config choices
Version 4.2

Block 5 - Code

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 6 - If

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 7 - Forward booking email

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 8 - availability check email

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 9 - Workflow Overview

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - AI Agent and Code Explanation

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Conditional Routing and Email Responses

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Wait for Data

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

3. Summary Table

Workflow Automated email inquiry processing & routing with Gmail and Gemini AI
Complexity intermediate
Nodes 12
Categories Support Chatbot, AI Chatbot
Author Oneclick AI Squad
Published 29 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6633/6633.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Automated email inquiry processing & routing with Gmail and Gemini AI do?

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 ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Support Chatbot, AI Chatbot use case.