Skip to content
Worfilo

Use case

Lead enrichment and routing with AI

Updated September 19, 2026

A sign-up form gives you an email and a company name. This workflow looks the company up, asks Claude how well it fits your ideal customer, and routes the lead based on a score you can read, not a hunch.

Nodes used:manual_triggerapi_requestagentifsetmergeoutput

How the workflow runs

  1. The trigger receives the lead.
  2. An API node calls your enrichment API, saved once under APIs with its API key, with the company domain.
  3. A score agent compares the enriched profile with your ideal customer description and returns score and reason.
  4. An If node sends scores of 70 or more to sales and the rest to nurture.
  5. Merge and Output return the routed lead.

Pass data between nodes

Enrichment API · saved endpoint
GET /companies?domain={domain}
Enrich · API node input
domain: {{ trigger.email.split('@')[1] }}
Score · User prompt
Ideal customer: B2B software teams of 20 to 500 people.

Company profile:
{{ nodes.enrich.output.body }}

Score the fit from 0 to 100 and explain in one sentence.
Qualified · If condition
nodes.score.output.structured.score >= 70

Handle a flaky enrichment API

Give the enrich node 3 attempts with backoff, and set its error mode to error_port so leads the API cannot find still reach a manual review branch instead of failing the run. See execution controls.

Build it on the canvas

Create a free account, describe the workflow or wire it yourself, and run it in the browser.