Business: Confectionery studio offering custom cakes and catering services. Industry: Food & Services / B2C. Integration point: Wix landing page → sales pipeline.
When a potential client submitted a request form on the Wix landing page, the studio owner had to manually check the Wix dashboard, copy contact details into a spreadsheet, create a lead in the CRM, and decide how to follow up — hot leads waited up to 15 minutes for a first response, and cold or warm leads were never segmented or nurtured systematically. Every lead entered the same generic funnel regardless of purchase intent, resulting in lost revenue from unconverted warm contacts.
A fully automated, zero-touch lead pipeline powered by n8n that intercepts every Wix form submission in real time, qualifies the lead using an AI model, and routes each contact into the correct Klaviyo email sequence — all within 2 seconds and without any manual action.
The core idea: intent-based segmentation at the moment of first contact. Instead of treating every lead equally, the system reads the client's own words and decides whether to trigger an urgent sales alert or a long-term nurture sequence.
Prompt Design The AI qualification prompt instructs the LLM to classify the client's request comment into one of three states: hot (ready to buy now), warm (interested but not ready), cold (not interested). A Structured Output Parser enforces strict JSON output — {"state": "hot|warm|cold"} — eliminating hallucinations and ensuring reliable downstream routing. Edge case handled: if no comment is left, the system defaults to warm.
API Integration · Wix Forms → n8n Webhook (POST, real-time, no polling) · JavaScript Set node: flattens nested submissions[], strips phone spaces via regex (/\s+/g), protects email fields from dot-splitting bugs · Zoho CRM: creates a new Lead record with name, phone, email, request · OpenRouter (nvidia/nemotron-3-super-120b): LLM classification · Klaviyo API (v2026-04-15): creates/updates Profile, then assigns to the correct segmented List (Hot / Warm / Cold) via POST /api/lists/{id}/relationships/profiles
n8n Workflow — Orchestration Webhook → Transform (JS) → [4 parallel branches]: ├── Google Sheets → append lead row with timestamp ├── Format Message → Telegram Bot (HTML parse mode, instant alert)
├── Zoho CRM → Create Lead └── Lead Qualifier (LLM) → Structured Output → Switch state router ├── hot → Hot List ID → Klaviyo Profile → Add to Hot List ├── warm → Warm List ID → Klaviyo Profile → Add to Warm List └── cold → Cold List ID → Klaviyo Profile → Add to Cold List
<aside>
✅ Response time: manager receives a structured Telegram alert in < 2 seconds after form submission — down from up to 15 minutes manual.
✅ Time saved: 100% elimination of manual lead processing — 0 seconds of human work per lead. At 30 leads/day → saves ~7.5 hours/week.
✅ Lead segmentation: every contact is automatically placed into the correct Klaviyo email sequence (hot / warm / cold) at the moment of first touch, enabling personalised follow-up at scale.
✅ Data integrity: 100% accurate phone formatting and crash-free Telegram notifications via HTML parse mode — eliminating "400 Bad Request" errors caused by unescaped symbols in client emails.
✅ Scalability: the pipeline handles unlimited leads simultaneously with no manual bottleneck — one person can now manage 10× the lead volume.
</aside>
n8n Wix Forms API Zoho CRM Klaviyo API OpenRouter nvidia/nemotron-3-super-120b
Google Sheets Telegram Bot API (HTML) JavaScript