Automatic lead scoring with n8n and OpenAI

Hey everyone, I’ve been experimenting with how to connect forms with AI and Google Sheets for a clinic and I put together this workflow. If anyone is stuck with something similar or wants to see how I solved it, you can write to me and we can review it together.

2 Likes

Nice use case. Two things that usually make lead qualification more reliable: ask the model for a fixed set of values through a structured output (for example hot / warm / cold) instead of free text, and keep the temperature low so the same form always gets the same score. Logging the raw form answers next to the AI score in Sheets also lets you spot wrong scores and refine the criteria in the prompt over time. If the workflow sends an email to the lead, a Gmail draft for human review rather than auto-send is a good safety net for a clinic, given the personal data involved.

Good build. One thing I’d add for a clinic: check what the form collects before it reaches OpenAI. If any field touches health information, strip it or confirm your agreement with the provider covers it. I’d also dedupe on email before scoring, so a patient who submits twice doesn’t land in the sheet as two leads.