๐Ÿ’ฌ Build a cost estimation chatbot with Mistral AI, OCR & Supabase

โšก 233 views ยท ๐Ÿ’ฌ Lead Nurturing & AI Sales Agents

Description

AI Cost Estimation Chatbot (Conversational Dual-Agent + OCR Workflow)

Overview

This workflow introduces a conversational AI Cost Estimation Chatbot with built-in OCR document analysis and interactive form guidance.
It helps users and teams handle pricing, measurement, and product configuration for multiple categories such as fabrics and tiles โ€” whether data comes from an uploaded invoice, a stored RFQ, or live user input.

The system blends Mistral AIโ€™s reasoning with n8nโ€™s native tools โ€” OCR Extract, Calculator, Supabase, and Gmail โ€” to deliver clear, step-by-step cost calculations.
It automatically retrieves or parses OCR data, confirms details conversationally, performs unit conversions, and returns accurate estimates in real time.
Escalation and recordkeeping are handled via Gmail and Supabase.


Chatbot Flow

Trigger: Chat message (from n8n Chat UI) or Webhook (from a live site).
Model: Mistral Cloud Chat Model (mistral-medium-latest)
Memory: Simple Memory (Buffer Window, 15-message history)

Tools:

Workflow Behavior:


Integrations Used

ServicePurpose
** Chat**User-facing chatbot interface
OCR ExtractProcesses uploaded documents or receipts
SupabaseStores and retrieves OCR / quote data
Mistral AIChat model and reasoning engine
CalculatorHandles all numeric and cost calculations
GmailSends escalations or quote summaries

Agent System Prompt Summary

> โ€œYou are an AI cost estimation assistant for a brand.
> Retrieve or parse OCR data from Supabase, confirm details with the user, and calculate costs transparently.
> Use the Calculator for all numeric logic based on MATERIAL_COSTS and PROCESSING_COSTS.
> Handle GSM-to-sqm and other conversions automatically.
> If support or follow-up is needed, send a message through Gmail.
> Always guide the user conversationally, confirm assumptions, and explain every step clearly.โ€


Key Features

input: Chat Interface
Conversational guidance even when OCR data doesnt exist
OCR + Supabase integration for document reuse
Interactive cost estimator for fabrics and tiles
Transparent calculations and unit conversions
Gmail integration for escalation or order confirmation
Modular design for scaling to other product types


Summary

A powerful AI + OCR conversational cost estimation assistant that retrieves or parses order data, guides users through setup, and calculates costs transparently.
It combines intelligence (Mistral), precision (Calculator), and automation (OCR + Supabase + Gmail) to create a complete, human-like quotation system โ€” perfect for brands, manufacturers, and B2B platforms.


We can help you set it up for free โ€” from connecting credentials to deploying it live.

Contact: rajeet.nair@digitalbiz.tech
Website: https://www.digitalbiz.tech
LinkedIn: https://www.linkedin.com/company/digital-biz-tech/
You can also DM us on LinkedIn for any help.

๐Ÿ”— Nodes Used

HTTP Request, Supabase, AI Agent, Simple Memory, Calculator, Mistral Cloud Chat Model

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup