TemplatesAI lead qualifier
AI lead qualifier
A web form posts to a webhook. OpenAI scores the lead. A score of 70 or more is sent to a CRM URL and Slack. Everyone else is logged for nurture. Failures alert Slack instead of disappearing.
Webhook, Edit Fields, HTTP Request, Code, IF, Slack
Download workflow JSONMain path
- Receive lead form
- Normalize lead
- Qualify with OpenAI
- Read JSON
- Score ≥ 70?
Qualified
- Create CRM lead
- Alert sales in Slack
Not yet
- Log nurture lead in Slack
On error
- OpenAI or CRM error output
- Alert qualifier failure
Setup
- In n8n, import the JSON from the workflow menu. Use n8n 1.40 or newer.
- Create a Header Auth credential for the webhook and send that header from the form.
- Create a Header Auth credential for OpenAI whose header is Authorization: Bearer <your key>. Attach it to “Qualify lead with OpenAI”. Do not paste the key into the node.
- Change the CRM URL on “Create CRM lead” and attach a Header Auth credential for that API.
- Attach your Slack credential and pick the #sales-leads and #sales-nurture channels.
- The webhook is pinned with a fake lead so you can test without the form. Activate the workflow only after a manual run looks right.
No real credentials are included. After import, n8n will ask you to attach your own accounts. You can also run the file through the n8n health check.
