Skip to main content

Generate & send spare parts price quotes with Gmail, Sheets and Gemini AI

Workflow preview

Workflow preview
100%
Generate & send spare parts price quotes with Gmail, Sheets 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

Who's it for This workflow is perfect for sales teams , customer service departments , and businesses that frequently handle spare parts inquiries via email. It's especially valuable for companies ...

Best for

  • CRM automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.scheduletrigger, n8n-nodes-base.gmail, n8n-nodes-base.if, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatgooglegemini, n8n-nodes-base.googlesheetstool, @n8n/n8n-nodes-langchain.toolcalculator

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Generate & send spare parts price quotes with Gmail, Sheets and Gemini AI
Workflow name
Generate & send spare parts price quotes with Gmail, Sheets and Gemini AI

Who's it for

This workflow is perfect for sales teams, customer service departments, and businesses that frequently handle spare parts inquiries via email. It's especially valuable for companies managing multiple products with complex pricing structures who want to automate their quotation process while maintaining professional, multilingual communication.


What it does

This workflow:

  • Monitors your Gmail inbox for incoming spare parts requests
  • Automatically generates professional HTML price quotes in the sender's language
  • Sends personalized replies
  • Uses AI to detect the email language (supports Turkish, English, German, and more)
  • Extracts project or part codes
  • Fetches pricing data from Google Sheets
  • Calculates totals accurately
  • Formats everything into a clean, professional quote that matches your brand

How it works

  1. Schedule Trigger runs every minutes to check for new emails
  2. Gmail node fetches the latest unread email
  3. Keyword detection filters for spare parts-related terms in multiple languages
  4. AI Agent processes the request by:
    • Detecting the email's language
    • Extracting project/part codes
    • Querying three Google Sheets: CRM, Bill of Materials, Pricing
    • Calculating line totals and grand total
    • Generating a professional HTML quote in the sender's language
  5. Gmail reply sends the quote and marks the original email as read

Requirements

  • n8n self-hosted or cloud instance
  • Gmail account with OAuth2 authentication
  • Google Sheets with proper structure (3 sheets for CRM, BoM, and Pricing data)
  • Google Gemini API key for AI processing
  • Basic understanding of Google Cloud Console for OAuth setup

How to set up

  1. Import the workflow into your n8n instance

  2. Create three Google Sheets with the following column structure:

    • CRM Sheet: Email, ProjectCode, CustomerName
    • Bill of Materials: ProjectCode, PartCode, PartDescription, Quantity
    • Pricing Sheet: PartCode, UnitPriceEUR, PartDescription
  3. Configure credentials:

    • Set up Gmail OAuth2 in Google Cloud Console
    • Configure Google Sheets OAuth2 (can use same project)
    • Get your Google Gemini API key from Google AI Studio
  4. Update the workflow:

    • Replace placeholder Sheet IDs in the CRM, BoM, and Pricing nodes
    • Adjust company name in the AI Agent’s system message
    • Modify keyword detection if needed
  5. Test with a sample email before activating


How to customize the workflow

  • Add more languages: Update the keyword detection node with additional terms
  • Modify the quote template: Edit the HTML in the AI Agent's message to match your branding
  • Change data sources: Replace Google Sheets with PostgreSQL or MySQL nodes
  • Add approval steps: Insert a manual approval node for quotes above a certain value
  • Include attachments: Add PDF or product spec file nodes
  • Enhance notifications: Add Slack or Teams notifications after quote is sent
  • Implement follow-ups: Create a separate workflow for reminder emails

This template provides a solid foundation for automating your quotation process, while staying flexible to fit your specific business needs.

Feel free to contact me for further implementation guidelines: LinkedIn: Berke

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 - Welcome & Overview

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

Block 2 - Google Sheets Structure

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

Block 3 - Configuration Steps

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

Block 4 - Keyword Detection Info

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

Block 5 - Email Reply Flow

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

Block 6 - IMPORTANT: Replace Sheet IDs

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

Block 7 - Schedule Trigger

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

Block 8 - Gmail - Get Latest Email

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

Block 9 - Check Spare Parts Keywords

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

Block 10 - AI Agent - Quote Generator

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

Block 11 - Google Gemini Chat Model

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

Block 12 - CRM - Customer Data

Type / Role
n8n-nodes-base.googleSheetsTool - googleSheetsTool
Config choices
Version 4.6

Block 13 - BoM - Bill of Materials

Type / Role
n8n-nodes-base.googleSheetsTool - googleSheetsTool
Config choices
Version 4.6

Block 14 - Price - Pricing Data

Type / Role
n8n-nodes-base.googleSheetsTool - googleSheetsTool
Config choices
Version 4.6

Block 15 - Calculator Tool

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

Block 16 - Gmail - Send Reply

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

Block 17 - Gmail - Mark as Read

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

3. Summary Table

Workflow Generate & send spare parts price quotes with Gmail, Sheets and Gemini AI
Complexity advanced
Nodes 17
Categories CRM, Multimodal AI
Author berke
Published 30 Jun 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/5492/5492.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 Generate & send spare parts price quotes with Gmail, Sheets and Gemini AI do?

Who's it for This workflow is perfect for sales teams , customer service departments , and businesses that frequently handle spare parts inquiries via email. It's especially valuable for companies ...

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 CRM, Multimodal AI use case.