Lead scoring & auto-assignment with GPT-4 and GoHighLevel + Slack alerts
Ready for 3.0What this workflow does
This AI workflow has 18 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenAI and Slack.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Workflow Configuration (Edit Fields (Set)): sets 6 fields: ghlApiBaseUrl, ghlApiKey, topRepUserId…
- GHL Get Contact Details (HTTP Request): calls an HTTP API
- GHL Fetch Engagement Data (HTTP Request): calls an HTTP API
- Clean Contact Data (Edit Fields (Set)): sets 8 fields: contactId, name, email…
- Prepare AI Input (Edit Fields (Set)): sets 1 field: leadData
- AI Lead Scoring (GPT-4) (OpenAI): uses OpenAI
- Parse Score to Numeric (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- GHL Tag Hot Lead (HTTP Request): calls an HTTP API (PUT)
- If: checks a condition and branches into true / false
…plus 7 more steps. See the full node list below.
Services it uses
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 (8)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - OpenAI
@n8n/n8n-nodes-langchain.openAi - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Slack
n8n-nodes-base.slack - Respond to Webhook
n8n-nodes-base.respondToWebhook
From the author
This workflow automatically scores and categorizes new GoHighLevel contacts using AI (GPT-4), then tags and assigns them to the appropriate team member based on their score. Hot leads also trigger a Slack notification for immediate follow-up. What does it do?…