See llms.txt for all machine-readable content.
This workflow accepts new leads via a webhook, validates and deduplicates them in Google Sheets, enriches contact and company details via HTTP APIs, scores the lead with Google Gemini, then saves the result back to Google Sheets and notifies the team via Slack and Gmail based on the lead tier.
lead-intake) in your lead capture form or source system.dummyjson.com and jsonplaceholder.typicode.com) with your real enrichment providers, and adjust the field mappings to match their response format.You can customize this workflow in several practical ways without changing the overall design:
Fetch Contact Test Data with a real contact enrichment API and update Map Contact Enrichment to match that provider’s response.Enrich Company Data with a real company intelligence source and update Map Company Enrichment as needed.Build AI Scoring Payload to change the lead qualification criteria or tier thresholds.Score Lead With AI. if your business wants different scoring logic, industry preferences, or decision-maker weighting.Score Router conditions if you want to use different tier labels.Find Existing Lead if you want to match by phone, domain, or another unique field instead of email only.This workflow can be extended with additional features such as:
This workflow can support several business scenarios, including:
There can be many more use cases depending on your lead source, scoring rules, and follow-up process.
| Issue | Possible Cause | Solution |
|---|---|---|
| Webhook does not receive lead data | The external form is not sending a POST request to the correct webhook path | Verify the form points to the lead-intake webhook URL and sends JSON data. |
| Lead stops after validation | Required fields such as email, full name, or company are missing or invalid | Review Set Lead Fields and Validate Lead Input. and confirm the incoming payload uses the expected field names. |
| Duplicate check is not working | The Google Sheet does not contain the expected email column or the wrong sheet is selected |
Confirm the spreadsheet, sheet, and lookup column used in Find Existing Lead. |
| Enrichment data looks incorrect | The workflow uses test HTTP endpoints rather than real business data providers | Replace the test endpoints and update the related mapping nodes to match the new API responses. |
| AI scoring fails or returns unusable output | Gemini credentials are missing or the response format does not match the parser expectations | Check the Google Gemini credential, review the prompt in Score Lead With AI., and make sure the parser still matches the returned JSON format. |
| Lead does not route to Hot, Warm, or Cold | lead_tier is missing or does not match the exact values expected by Score Router |
Confirm that Parse AI Score. returns one of these exact values: Hot, Warm, or Cold. |
| Google Sheets append fails | Credentials are not connected or the destination sheet schema does not match the mapped fields | Reconnect the Google Sheets credential and verify the target sheet includes the columns used in the append nodes. |
| Slack messages are not delivered | Slack credentials are invalid or the configured channel is not correct | Reauthorize the Slack account and verify the selected channel in each Slack node. |
| Gmail messages are not sent | Gmail credentials are missing or the recipient address is not appropriate for production | Reconnect Gmail and update the send-to addresses in each Gmail node. |
| Lead data in Google Sheets looks inconsistent | Some mapped fields use values from enrichment while others use values from the original lead object | Review the field mappings in the three Google Sheets storage nodes and align them with the data source you want to trust. |
If you want help setting up this workflow, replacing the test enrichment services, refining the Gemini prompt, connecting it to your own lead sources, extending it with custom add-ons or to hire n8n workflow developers, WeblineIndia can help.
WeblineIndia can also assist in building similar n8n workflows for lead management, AI scoring, CRM automation, notifications and business process automation based on your exact requirements.