Case 04 · n8n · AI Lead Qualification
Wix Lead Automation & AI Qualification
Automated handling of website leads: a single Wix form submission fans out to Telegram, Google Sheets and Zoho CRM, while an AI step rates the lead's temperature and routes the profile to the right Klaviyo list.
- 1 workflowhandles each lead end to end in n8n
- 3 direct outputsTelegram, Google Sheets, Zoho CRM
- 3 lead stateshot, warm, cold
- 3 listsin Klaviyo: Hot, Warm, Cold
Video not loading? Open on YouTube
Every new lead meant manually updating several systems
Context. The project includes a public Wix landing page with a form for prospective clients: name, phone, email and a description of what they want to automate. That single form is the starting point of the whole process: a notification, data storage, a CRM contact, AI qualification and segmentation in the marketing platform.
Problem. When handled manually, the same data has to be copied into several systems, the responsible person has to be notified separately, and someone has to judge how ready the lead is for follow-up. This adds manual steps, creates room for errors and slows the response to a prospective client.
One workflow with parallel processing branches
Wix is the source of the lead and n8n is the central orchestrator. Once the data is received and normalized, the workflow triggers the direct business branches, while a separate AI branch determines the lead's temperature and routes the profile to the matching Klaviyo list.
Lead intake
- Wix Formname, phone, email, request
- WebhookPOST, raw form JSON
- Normalize Leadworking lead fields
Direct outputs · in parallel, independent of AI
- Telegramnotifies the responsible person
- Google Sheetsrow with the lead data
- Zoho CRMlead contact
AI qualification and routing
- Lead Qualifieranalyzes automation_request
- Structured Output Parserresponse as JSON
- Validate & Normalizehot / warm / cold only
- Switchbranch by state
- Klaviyo ListHot / Warm / Cold
One lead's journey: from form to segment
Six steps that every submission goes through. In this case study, the screenshots serve as evidence of data actually flowing through the system, not as decoration.
- The client fills in the Wix form: a new lead appears
- The Webhook receives the JSON: n8n accepts the data
- Normalize Lead cleans up the structure: the workflow gets working fields
- Parallel branches send the data: Telegram, Google Sheets and Zoho CRM are updated
- AI determines the lead's temperature: hot, warm or cold
- Switch selects the Klaviyo list: the profile lands in the right segment
How each processing branch works
Choose a branch to see its steps and the supporting screenshots from n8n and the connected services.
01–02 · Wix Lead Intake and Normalize Lead
Wix accepts the submission through the form and passes the raw data to n8n via a Webhook. The input contains both the fields the user entered and technical form metadata. The Normalize Lead node turns Wix's technical JSON into a clear structure that the rest of the workflow works with.
Normalize Lead → fields name phone email automation_request form_name submission_id submission_time contact_id
03 · Business Outputs
After normalization, the data goes straight to Telegram, Google Sheets and Zoho CRM. These branches don't depend on the AI qualification result and handle the basic operational tasks.
Each branch has its own job: Telegram tells the responsible person about the new lead, Google Sheets provides a simple operational layer for review and tracking, and Zoho CRM remains the main place for working with the person afterward.
- Telegram: the notification reaches the responsible person automatically right after the lead is processed, so there is no need to check the form manually
- Google Sheets: the lead is saved to a structured table, including name, phone, email and comment
- Zoho CRM: the lead's contact is passed on regardless of the AI qualification result
04 · AI Qualification & Result Control
AI is used only where an assessment of meaning is required: Lead Qualifier analyzes the text of the automation_request field and returns the lead's state. An OpenRouter Chat Model and a Structured Output Parser are attached to Lead Qualifier.
The AI response is shaped into a defined JSON structure by the Structured Output Parser. A JavaScript node, Validate & Normalize Customer State, then checks the value once more. Only hot, warm and cold are allowed; any unexpected value is normalized to warm as a safe default before routing.
- Lead Qualifier receives automation_request from Normalize Lead
- OpenRouter Chat Model evaluates the meaning of the request
- Structured Output Parser shapes the response into JSON with a state field
- Validate & Normalize Customer State lets through only hot, warm and cold; anything else becomes warm
HOT — clear interest and readiness to act in the near term.
WARM — there is interest, but no decision has been made yet.
COLD — no interest, an explicit refusal, or input that doesn't indicate an intent to buy.
05 · Routing to Klaviyo
Once the state is validated, Switch selects the matching branch. Klaviyo receives not just a contact but a profile with a clear marketing category.
For Klaviyo operations, n8n uses HTTP Request nodes and the Klaviyo API: the workflow creates or updates a profile, gets the Profile ID and uses it in the next request to add the profile to the right List ID.
- Switch: rules on the state value, with a separate output for Cold, Warm and Hot
- The Cold / Warm / Hot List ID nodes set the list ID for the chosen branch, which is then passed to Edit Fields
- HTTP Request “Create or update profile”: creates or updates the profile in Klaviyo
- Parse Profile ID: the profile ID is extracted from the API response
- HTTP Request “Add Profile to list”: adds the profile to the right list
Data: what comes in and what each system receives
The Wix form sends raw JSON, Normalize Lead turns it into working fields, and AI adds a single field to the lead: its state.
What the client enters on the landing page.
- name
- phone
- what to automate
The lead's working structure inside the workflow.
- name
- phone
- automation_request
- form_name
- submission_id
- submission_time
- contact_id
Lead temperature based on the text of automation_request.
- hot
- warm
- cold
Routing: AI state → Klaviyo
| AI state | Klaviyo destination | Business meaning |
|---|---|---|
| hot | Hot List | Fast follow-up and priority handling |
| warm | Warm List | Needs nurturing and clarification of the need |
| cold | Cold List | Low priority or no clear intent |
Three test scenarios: HOT, WARM, COLD
Separate scenarios were prepared to verify the qualification. In each one, the lead follows the same path: Wix → n8n → AI qualification → the matching Klaviyo list.
HOT
- hot → Klaviyo Hot List
A meaningful request with a clear intent to get the service soon. The client shows strong interest and is ready for a quick rollout.
WARM
- warm → Klaviyo Warm List
A request that shows interest in automation but no readiness to decide right now. The client is interested in the solution but is still at the research stage.
COLD
- cold → Klaviyo Cold List
A refusal, a lack of interest or uninformative input. The client shows no intent to continue.
Results
From a single form submission, the business automatically gets a notification, a saved row in a spreadsheet, a CRM contact and a profile in the right marketing list.
| Lead source | Wix form |
|---|---|
| Central workflow | n8n |
| Operational outputs | Telegram · Google Sheets · Zoho CRM |
| AI classes | hot · warm · cold |
| Marketing segmentation | Klaviyo Hot / Warm / Cold Lists |
- Instant Telegram notification to the responsible person, with no manual form checks
- Structured lead storage in Google Sheets and a contact in Zoho CRM, independent of the AI step
- AI rating of lead temperature from the request text: hot, warm or cold
- Validation of the AI response, with warm as the safe fallback for an unexpected result
- Automatic segmentation of profiles into Klaviyo lists
Limitations. The AI evaluates only the text of the automation_request field and distinguishes three lead states. Quantified business effects, such as time saved or conversion growth, are not part of the project materials, so none are claimed here.
Tech stack
- Wix
- n8n
- OpenRouter / AI
- Klaviyo API
- Zoho CRM
- Google Sheets
- Telegram
- HTTP Request
- JavaScript
A single submission triggers an entire automated process: from first contact to a lead that is ready for follow-up.
Watch the demo