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.
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.
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
LockServiceconcurrency guards to guarantee zero duplicate notifications and predictable sub-second routing. - Zero-Cost Stack (
$0/mo): Combines Google Apps Script webhooks,n8n v2.0workflow templates, and LINE Flex Messaging cards for instant mobile sales alerts. - Offline Test Harness (
85 / 85Passed): Separates pure routing/formatting logic from Google/LINE runtime APIs so 85 automated unit and edge-case tests run locally without live credentials.