Templates / Score inbound leads with OpenAI and log them to Google Sheets and Slack

Score inbound leads with OpenAI and log them to Google Sheets and Slack

Ready for 3.0

by Bincy Bhanu. S ✓ · 0 views · created 2026-10-10 · Lead Generation, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

Nodes used (8)

Google SheetsSlack

What it does

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 submission via an HTTP POST webhook. 2. Normalizes the incoming payload to the expected lead fields (name, email, company, message) and applies workflow configuration values like the score threshold and target destinations. 3. Sends the lead details to the OpenAI Chat Completions API to generate a JSON score (0–100), tier (hot/warm/cold), and a short reason, continuing even if the API call fails. 4. Parses and validates the OpenAI response (or falls back to an unscored default), adds a timestamp, and prepares the final lead record. 5. Appends the lead record to a Google Sheets spreadsheet. 6. If the score meets the configured threshold, posts a hot-lead alert message to a Slack channel; otherwise, it ends without sending an alert. Setup 1. Create a Google Sheet with a tab (for example, “Leads”) that includes columns for name, email, company, message, score, tier, reason, and receivedAt. 2. Add credentials for OpenAI, Google Sheets (OAuth2), and Slack. 3. In the workflow configuration values, set your Google Sheet ID, sheet/tab name, Slack channel, OpenAI model, and the hot lead score threshold. 4. Copy the webhook URL from n8n and configure your form/tool to POST lead submissions to that endpoint.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.