Score and tier inbound B2B leads with OpenAI website research and email
Ready for 3.0What this workflow does
This AI workflow has 48 nodes and runs manually, when you click “Execute workflow” (plus 4 other triggers). Along the way it connects OpenAI Chat Model.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 4 other triggers).
- Create table lead_scores (Data table): create (table)
- Configuration (Edit Fields (Set)): sets 23 fields: my_company, my_offer, target_industries…
- Retry of a deferred lead? (If): checks a condition and branches into true / false
- Prepare run (Code): runs custom JavaScript code
- Load today's AI calls (Data table): get (row)
- Already scored? (Data table): row not exists
- Run type (Switch): routes items into 2 branches
- Check daily budget (Code): runs custom JavaScript code
- Log: received (Data table): insert (row)
- Score each lead separately (Execute Sub-workflow): calls another n8n workflow
…plus 27 more steps. See the full node list below.
Services it uses
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (17)
- Manual Trigger
n8n-nodes-base.manualTrigger - Data table
n8n-nodes-base.dataTable - Webhook
n8n-nodes-base.webhook - n8n Form Trigger
n8n-nodes-base.formTrigger - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Switch
n8n-nodes-base.switch - Execute Sub-workflow
n8n-nodes-base.executeWorkflow - No Operation, do nothing
n8n-nodes-base.noOp - Send Email
n8n-nodes-base.emailSend - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
From the author
Quick overview This workflow accepts inbound B2B leads via a secured webhook or n8n form, researches the company website, scores fit/signal/reach with OpenAI, stores results in an n8n data table, emails sales instantly for tier A leads, and sends a weekday…