Score inbound leads with OpenAI, Google Sheets and Slack alerts
Ready for 3.0What this workflow does
This AI workflow has 10 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenAI Chat Model, Google Sheets and Slack.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Normalize Lead (Edit Fields (Set)): sets 4 fields: name, email, company…
- Score Lead (AI) (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Structured Output Parser
- Combine Lead + Score (Edit Fields (Set)): sets 8 fields: score, tier, reason…
- Save to Google Sheets (Google Sheets): append (sheet)
- Hot Lead? (If): checks a condition and branches into true / false
- Slack: uses Slack
- Respond to Webhook: sends the response back to the webhook caller
Services it uses
Other OpenAI + Google Sheets templates (2,011) · Other Google Sheets + Slack templates (1,314) · Other OpenAI + Slack templates (979)
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 (9)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Google Sheets
n8n-nodes-base.googleSheets - If
n8n-nodes-base.if - Slack
n8n-nodes-base.slack - Respond to Webhook
n8n-nodes-base.respondToWebhook
From the author
Quick overview This workflow receives inbound leads via a webhook, normalizes the submitted fields, uses OpenAI to score and categorize each lead, appends the results to Google Sheets, and posts a Slack alert for hot leads before responding to the webhook…