Skip to main content
Apec Sinlapachai
Back to Portfolio Overview
Deterministic AutomationDeterministic Automation

Fast-Lead Automation

Knowing when NOT to use AI: deterministic lead-routing pipeline with Google Apps Script, n8n v2.0, LINE Flex Messaging, LockService concurrency control, and 85/85 automated offline tests.

Problem & Business Impact

Built for Thai sales teams and growing businesses that lose warm prospects when incoming web form leads sit unread in spreadsheets for hours. Adding generative AI to straightforward lead routing introduces unnecessary delay, unpredictable output, and ongoing API fees. This rule-based pipeline validates, deduplicates, and pushes instant mobile alerts to sales reps with zero monthly software cost—showing when deterministic engineering outperforms AI.

85 / 85 Passed
Automated Tests
$0 / month
SaaS Run Cost
Zero-LLM Core
Architecture

Problem Solved

Small and mid-sized Thai businesses lose leads when form submissions sit in spreadsheets for hours. Adding an LLM to simple lead-capture routing introduces unnecessary latency, hallucination risk, and recurring API costs.

Architecture & Engineering Decisions

  • Deterministic-First Engineering: Uses rule-based payload validation, deduplication, and LockService concurrency guards to guarantee zero duplicate notifications and predictable sub-second routing.
  • Zero-Cost Stack ($0/mo): Combines Google Apps Script webhooks, n8n v2.0 workflow templates, and LINE Flex Messaging cards for instant mobile sales alerts.
  • Offline Test Harness (85 / 85 Passed): Separates pure routing/formatting logic from Google/LINE runtime APIs so 85 automated unit and edge-case tests run locally without live credentials.

Deep-Dive Questions for AI Copilot

Opens /chat with input pre-filled