Capture and score leads with SQL Server and Slack alerts
Ready for 3.0What this workflow does
This workflow has 19 nodes and runs when an HTTP GET request hits its webhook URL (plus 1 other trigger). Along the way it connects Slack.
How it runs
Trigger: When an HTTP GET request hits its webhook URL (plus 1 other trigger).
- Normalize Lead Data (Code): runs custom JavaScript code
- Format Error (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- Slack: uses Slack
- Prepare API Body (Code): runs custom JavaScript code
- Format Error Response (Code): runs custom JavaScript code
- API - Upsert Contact (HTTP Request): calls an HTTP API
- Respond - Validation Error (Respond to Webhook): sends the response back to the webhook caller
- Calculate Lead Score (Code): runs custom JavaScript code
- Score Router (Switch): routes items into branches
…plus 6 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (9)
- Webhook
n8n-nodes-base.webhook - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Respond to Webhook
n8n-nodes-base.respondToWebhook - HTTP Request
n8n-nodes-base.httpRequest - Switch
n8n-nodes-base.switch - Slack
n8n-nodes-base.slack - No Operation, do nothing
n8n-nodes-base.noOp - Error Trigger
n8n-nodes-base.errorTrigger
From the author
Store leads in a SQL Server database via REST API with automatic scoring and Slack notifications. This workflow receives leads from web forms, validates email addresses, normalizes data from multiple formats (Typeform, Webflow, custom forms), and stores…