Score inbound leads with OpenAI and log them to Google Sheets and Slack
Ready for 3.0What this workflow does
This workflow has 9 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Google Sheets and Slack. It also calls api.openai.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Workflow Configuration (Edit Fields (Set)): sets 5 fields: hotLeadThreshold, slackChannel, googleSheetId…
- Normalize Lead (Edit Fields (Set)): sets 4 fields: name, email, company…
- Score Lead with OpenAI (HTTP Request): calls api.openai.com (POST)
- Parse AI Score (Code): runs custom JavaScript code
- Log Lead to Google Sheets (Google Sheets): append
- Is Hot Lead? (If): checks a condition and branches into true / false
- Alert Sales Team in Slack (Slack): uses Slack
Services it uses
Other OpenAI + Google Sheets templates (2,011) · Other Google Sheets + Slack templates (1,314) · Other OpenAI + Slack templates (979)
HTTP calls to: api.openai.com
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.
Nodes used (8)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - If
n8n-nodes-base.if - Slack
n8n-nodes-base.slack - No Operation, do nothing
n8n-nodes-base.noOp
From the author
Quick overview This workflow receives inbound leads via a webhook, scores and categorizes them with OpenAI, logs every lead to Google Sheets, and sends a Slack alert for leads that meet or exceed a configurable score threshold. How it works 1. Receives a lead…