This is an n8n workflow that scores inbound leads with OpenAI's GPT-4o-mini and alerts a Slack channel about high-scoring ones. Lead details arrive through an n8n webhook as a POST request. They are sent to the OpenAI Chat Completions API.
For each lead, the model returns a fit score from 0 to 100, a two-sentence summary and a recommended next action. The workflow parses these results into organized fields.
If a lead scores 60 or higher, a formatted high-priority alert goes to Slack through an Incoming Webhook. For leads below 60, follow-up tags and reasons are added to the output.
- Platform
- n8n
- n8n nodes
- Webhook, HTTP Request, Set, Code, IF, Sticky Note
- AI model
- OpenAI GPT-4o-mini via the Chat Completions API
- Input
- Lead details sent as a POST request to an n8n webhook
- Output
- Fit score (0–100), two-sentence summary and recommended next action
- Alert threshold
- Score of 60 or higher triggers a Slack alert
- Low scores
- Below 60 get follow-up tags and reasons in the output
- Integrations
- OpenAI API, Slack Incoming Webhook
- Setup
- Add your OpenAI API key as an HTTP Header Auth credential and set your Slack Incoming Webhook URL