Recipes / Lead generation and sales
Follow the capture-and-route template
Step sequence taken from a community n8n template that scores a webhook lead, stores it in Postgres, and describes CRM, mail, and Slack.
The order below is the author's 'How it works' list, shortened. It is not proof the nodes still import or that a hot label matches a buyer.
How the parts connect
- Triggern8nReceive the lead on a webhook
- Actionn8nReject a lead that has no name or email
- ModelOpenAI APILet the model label hot, warm, or cold
- StoragePostgreSQLStore the row, then fan out
Steps
- 1
Receive the lead on a webhook
The template starts with a webhook for a form or landing page, then a configuration node for the CRM endpoint, the Slack channel, and the list of reps.
- 2
Reject a lead that has no name or email
The template says validation requires name and email and routes invalid submissions to error handling, then normalizes the remaining fields.
- 3
Let the model label hot, warm, or cold
The template says the AI step classifies the lead, writes a reason, an estimated deal value, company notes, and a next action. Treat the deal value as unmeasured text.
- 4
Store the row, then fan out
The template says Postgres stores the lead, a round-robin step assigns a rep, a CRM step can target HubSpot or another CRM, Gmail sends a welcome note, and Slack notifies the team.
Monthly cost
Database hosting and model usage were not measured.
Limits
- Round-robin assignment and CRM field mapping depend on credentials the template does not include. We did not confirm either connection.
Test log
How to reproduce it
Point the webhook at a fake form, use a database you can wipe, and read the stored row before you connect a real CRM. Write down whether validation, the model call, and the insert each succeeded. That note belongs in the test log, which is empty.
What the sources claim
- Vendor claim The template's how-it-works list runs from webhook, through validation and AI scoring, into Postgres, assignment, CRM, email, and Slack. Source