Production-Ready Private Client System

AI-Powered Quotation Automation & Approval System

Designed and implemented an end-to-end quotation workflow that transforms incoming email requests into structured quote records, supports AI-assisted revisions and human approval, synchronizes approved quotations with the business system, and delivers finalized quotes back to customers.

Role

AI Automation Engineer & Systems Architect

Tech Stack

n8nGeminiAirtableEmail AutomationHuman-in-the-LoopBusiness API Integration
System Architecture Preview · End-to-End Orchestration
Production Pipeline
n8n · End-to-End Pipelinen8n · workflow
End-to-end quotation automation workflow overview
View full size

High-level orchestration canvas: incoming mailbox trigger, validation, multi-modal Gemini document processing, persistent state registration, approval gating, and downstream delivery.

Operational Bottlenecks

The Challenge

Quotation requests arrived through email in inconsistent formats and often included forwarded messages, attachments, incomplete specifications, or information embedded in free-form conversational text.

Handling this manually forced commercial operators to spend hours deciphering specs, re-typing line items into business software, and coordinating adjustments back and forth. Crucially, fully autonomous quote dispatch was unacceptable: commercial commitments demand human accountability.

Core Manual Pain Points
  • Details had to be interpreted manually across fragmented email threads
  • Attachments required separate inspection and measurement extraction
  • Quote status was difficult to track centrally without dedicated database state
  • Corrections required repetitive manual re-editing of pricing line items
  • Approved quotations required double-entry into the commercial system

Unstructured Requests

Critical project details arrived inside free-form email conversations and forwarded threads with inconsistent formats.

Attachment Dependency

Crucial specifications, measurements, and requirements existed inside attached documents and images rather than the email body.

Fragmented Quote State

Review, approval, revision history, and delivery status lacked a single unified, reviewable operational record.

Human Approval Requirement

Commercial quotations have direct financial and contractual commitments and could not be transmitted autonomously.

System Handoffs

Approved quotation parameters needed to be synchronized reliably into the downstream quotation environment without manual data entry.

Operational Reliability

Duplicate mailbox processing, webhook drops, and transient workflow interruptions needed to be controlled deterministically.

System Blueprint

End-to-End System Architecture

An eleven-stage architecture spanning autonomous ingestion, structured state persistence, human review with AI assistance, and auditable downstream execution.

Deterministic 3-Tier Pipeline

Quotation Orchestration Topology

Automated Ingestion
Human Decision Gate
Controlled Execution
1. Automated LayerZero Human Latency

Ingests raw emails, analyzes attachments, generates draft JSON schema, and persists state.

Result: Draft Quote Record
2. Human Decision GateAuthority Boundary

Commercial manager inspects quote, triggers conversational revisions, and signs off.

Approved
Trigger Downstream Execution →
Refused
Halt · Archive Record
Gate Passed: Authorization Granted
3. Controlled ExecutionAudited Actions

Synchronizes quote with external business systems, generates PDF, and delivers email.

Output: Quote Sent & Synced
Interactive Topology InspectorClick any stage above to inspect implementation

The system intentionally isolates automated interpretation from commercial commitment. External APIs and client delivery only fire after deliberate human approval.

Production Orchestration Workflow · Full Execution CanvasLive n8n Multi-Branch Architecture
n8n · Orchestration Logicn8n · workflow
Multi-stage quotation orchestration workflow
View full size

Multi-stage quotation orchestration workflow in n8n showing routing nodes, Gemini API calling, conditional branches, error handling, and transactional database updates.

Stage 1 — Intake & Understanding

Intelligent Request Intake

The workflow begins by preparing incoming quotation requests for reliable downstream processing. Rather than blindly executing code on every unread message, the system monitors dedicated mailbox channels via IMAP and applies intent classification.

Inquiries with forwarded communication histories, multiple recipient threads, or mixed attachment types (PDFs, CAD drawings, spec sheets, PNG renders) are isolated. The intelligence layer parses both body copy and attachments to synthesize a structured quotation context.

Forwarded Thread Parsing

Isolates the actual customer inquiry from email client headers, prior signatures, and internal correspondence.

Attachment Extraction

Inspects attached documents and images to extract item dimensions, quantities, and specific material codes.

Engineering Callout
“Automation begins with interpretation, not execution.”

The system first determines what the incoming communication represents before allowing downstream quote-processing steps to continue. Inquiries failing qualification are tagged for manual sorting rather than triggering erroneous calculations.

Stage 2 — Data Modeling & Operational Storage

Persistent Quote Operations

Once extracted, each processed quotation receives a structured operational record. Rather than relying solely on ephemeral workflow execution memory, state is persisted in an external database where every proposal remains reviewable, filterable, and trackable over time.

Visible data points indexed for each transaction include unique quote references, client profile data, project summaries, computed itemized totals, generation timestamps, approval status flags, and final delivery verification.

Operational State Lifecycle
Transient Workflown8n Execution
Persistent Quote RecordAirtable Schema
Reviewable Operational StateAudit & Sync
Airtable · Operational DBn8n · workflow
Persistent quotation index
View full size

Centralized operational quotation registry: tracking unique quote references, client records, project scopes, totals, generation dates, and real-time approval states.

Stage 3 — Human-in-the-Loop Authority

Human-Controlled Approval

The system automates preparation and orchestration but keeps the final commercial decision with a human operator. Quotations represent binding financial agreements that directly affect profit margins, contractual liabilities, and client goodwill.

The mobile-friendly review interface gives managers immediate visibility into quotation states: All, Pending, Approved, and Refused. Operators can inspect line item breakdowns, unit prices, and attached source drawings before allowing any downstream execution.

Core Architectural Principle

▸ AI prepares.

▸ Automation coordinates.

▸ Humans authorize.

Pending GateLocked against client delivery until approved.
Refusal BranchSafely archives quote without sending external notices.
Mobile UI · Approval HubAirtable Interface · Mobile View
Human approval dashboard
View full size

Operator review interface: filtering quotes by Pending, Approved, and Refused with itemized pricing inspection.

Stage 4 — Conversational Revision Copilot

AI-Assisted Quote Revision

AI Copilot · RevisionsAI Assistant · Interface
AI-assisted quotation revision interface
View full size

Conversational editing assistant: manager inputs plain-text revision prompt; AI updates schema without manual spreadsheet math.

Quotations frequently require adjustments before authorization: adding line items, recalculating sizing options, altering material types, or offering special volume discounts. Instead of forcing managers to manually recalculate complex pricing equations, the system provides an AI Revision Assistant.

Managers describe requested changes through natural-language instructions (e.g. “add a 15% discount to the second item and update delivery date to Friday”). The assistant reinterprets the request, adjusts line item math, and presents the revised draft for verification.

Copilot Interaction Loop
1. Manager Instruction
2. AI Interprets Revision
3. Quote Data Updated
4. Manager Reviews Again
Decoupled Responsibility: The AI acts strictly as an editing assistant within a human-governed workflow. It does not independently decide commercial approval, ensuring financial precision remains under manager authority.
Stage 5 — Enterprise Integration

Controlled Business-System Synchronization

Once a quotation passes affirmative human approval, structured quotation details synchronize with the downstream quotation platform. This eliminates double-entry friction while keeping the core commercial database as the single source of truth for business operations.

The integration carries operationally relevant information including quotation line items, quantities, pricing tiers, material descriptions, optional add-ons, grand totals, and internal cross-references.

Synchronized Payload Attributes
Client ReferenceLine Items & QuantitiesTax & Discount TiersTechnical NotesBilling StatusAudit Timestamps
n8n · Business System Integrationn8n · workflow
Downstream quotation system synchronization
View full size

API synchronization canvas: validating approved quotation payload, authenticating against downstream quotation system, creating line items, and updating synchronization state.

Stage 6 — Dispatch & Closing

Automated Customer Delivery

Following human approval and business system synchronization, the workflow generates a consistent client-facing delivery email and attaches the formalized quotation document when ready.

The dispatch engine ensures clean recipient resolution, merges branded HTML email templates with itemized pricing summaries, attaches generated PDF quotations, and records delivery timestamps into persistent state for audit trail compliance.

Execution Handshake
Approved QuoteDelivery PayloadEmail + PDF

✓ Delivery status updated to 'Sent' in operational registry

Customer Delivery · Email & PDFn8n · workflow
Automated quotation customer delivery
View full size

Final customer delivery interface: formalized quotation dispatch with clean summary, dynamic client recipient handling, and official PDF quotation attachment.

Operational Guardrails

Built for Operational Reliability

Production environments encounter network timeouts, malformed emails, and concurrent triggers. The architecture incorporates enterprise reliability patterns to guarantee deterministic execution.

Persistent State

Quote records survive individual workflow runs. Transient execution memory is backed into persistent operational storage.

Duplicate Protection

Idempotency controls and message-ID deduplication ensure repeated mailbox polling never spawns redundant quote items.

Attachment Preservation

Multi-modal specification files, drawings, and documents are ingested, cataloged, and linked throughout the quote lifecycle.

Controlled Execution

Downstream commercial actions occur only at their designated workflow stage upon affirmative human clearance.

Payload Recovery

Structured quotation payloads maintain strict schema contracts, allowing graceful reprocessing on transient connection drops.

Status Tracking

The system logs explicit operational transitions across pending review, revision, approval, sync, and client dispatch.

Human Decision Boundary

AI draft generation is strictly separated from commercial authorization. The LLM cannot independently dispatch quotes.

Modular Orchestration

Intake, multi-modal extraction, revision assistant, sync, and delivery run as decoupled, independently maintainable modules.

Architectural Rationale

Engineering Decisions

Key architectural trade-offs that separate robust production systems from fragile automation scripts.

Human-Controlled AI

AI drastically reduces interpretation and drafting overhead, but commercially sensitive commitments require human oversight. The system positions AI strictly as an intake and revision copilot.

impl

LLM outputs draft quotation JSON schema → stored with status 'Pending Review' → held until human reviewer signs off.

Persistent State Over Workflow Memory

Relying on transient workflow execution context makes systems fragile to timeouts and impossible to audit. Quotation records live in external persistent storage.

impl

Airtable operational registry holds quote reference, line items, pricing tiers, and client context independent of n8n runs.

Stage-Based Orchestration

Monolithic automation pipelines fail completely when any single node breaks. The workflow decouples intake, extraction, review, sync, and delivery into discrete stages.

impl

Sub-workflows communicate via webhooks and state events; failure in downstream dispatch does not lose parsed quote data.

Approval Before Execution

Commercial actions—such as customer delivery and database synchronization—must never occur preemptively or on draft estimates.

impl

Downstream synchronization and client email triggers require an explicit 'Approved' status flag toggled by authorized personnel.

Structured Data Between Systems

Free-form email inquiries cannot be passed reliably into billing or ERP software. Raw inquiries are converted into deterministic, validated JSON objects.

impl

Strict schema validation maps quantities, units, material descriptions, and pricing calculations into typed payloads.

Centralized Operational Visibility

Operators and executives need to monitor quote pipelines without parsing through complex automation backend logs.

impl

A unified dashboard indexes every quote with current operational status, customer details, timestamps, and total value.

Business-System Integration

Automation creates actual operational value only when it seamlessly updates the company's core commercial system of record rather than maintaining a disconnected silo.

impl

Approved quotation data is pushed via authenticated API directly into the downstream quotation environment.

Safe Customer Communication

Customer delivery requires professional formatting, verified recipient handling, and document attachments to prevent customer friction.

impl

Pre-formatted HTML email templates merge dynamic quote summaries and attach generated PDF documents only after clearance.

Operational Impact

What the System Changed

A qualitative shift from high-friction administrative overhead to structured, human-governed automation.

Before: Fragmented & Manual

  • Manual email interpretation & scattered inquiries
  • Separate inspection of PDF/image attachments
  • Fragmented quote tracking across personal inboxes
  • Repeated, error-prone manual line item editing
  • Manual re-entry into business quotation system
  • Manual customer delivery & follow-up logging
  • Limited operational visibility into pending pipeline

After: Automated & Supervised

  • Automated request intake & classification
  • AI-assisted multi-modal information extraction
  • Persistent, centralized quotation records
  • Dedicated human review & approval dashboard
  • Natural-language conversational revision assistance
  • Controlled downstream business-system synchronization
  • Automated final email dispatch with PDF attachment
  • End-to-end trackable quotation lifecycle and audit log
Infrastructure & Tools

Tech Stack

Technologies orchestrated together to form a robust, fault-tolerant quotation engine.

n8nCore Workflow Orchestrator

Coordinates multi-stage pipelines, triggers, webhook gates, and error handlers.

Gemini / LLMMulti-Modal Intelligence

Interprets unstructured email text, forwarded context, and attached documents.

AirtablePersistent Operational State

Stores quotation records, line items, status flags, and revision histories.

IMAP / Email ProcessingInbound Email Ingestion

Monitors mailbox accounts, filters spam, and routes quotation threads.

Business API IntegrationDownstream System Sync

Pushes validated quotes, customer data, and line items to quotation software.

Human-in-the-LoopDecision & Revision Gate

Ensures no commercial commitments are dispatched without managerial approval.

Systems Perspective
“This system demonstrates how AI automation can support real operational workflows without removing the controls businesses need. The result is not an autonomous black box, but a coordinated system where AI handles interpretation, automation manages execution, persistent state provides visibility, and humans retain authority over critical commercial decisions.”
Nitu Chakma·AI Automation Engineer & Systems Architect
All Featured Systems

Interested in a similar system for your operation?

Discuss a Project
Recruitment Automation