Recipes / Lead generation and sales

DraftUntestedNot in the sitemap

Follow the capture-and-route template

Step sequence taken from a community n8n template that scores a webhook lead, stores it in Postgres, and describes CRM, mail, and Slack.

Vote stays in this browser.

The order below is the author's 'How it works' list, shortened. It is not proof the nodes still import or that a hot label matches a buyer.

How the parts connect

  1. Triggern8nReceive the lead on a webhook
  2. Actionn8nReject a lead that has no name or email
  3. ModelOpenAI APILet the model label hot, warm, or cold
  4. StoragePostgreSQLStore the row, then fan out

Steps

  1. 1

    Receive the lead on a webhook

    Trigger · n8n

    The template starts with a webhook for a form or landing page, then a configuration node for the CRM endpoint, the Slack channel, and the list of reps.

    In: A form submission with the fields the template expects.

    Out: A workflow run. Not observed.

  2. 2

    Reject a lead that has no name or email

    Action · n8n

    The template says validation requires name and email and routes invalid submissions to error handling, then normalizes the remaining fields.

    In: The webhook body.

    Out: A normalized lead or an error path, according to the author.

  3. 3

    Let the model label hot, warm, or cold

    Model · OpenAI API

    The template says the AI step classifies the lead, writes a reason, an estimated deal value, company notes, and a next action. Treat the deal value as unmeasured text.

    In: The normalized lead.

    Out: Labels and notes whose accuracy is unknown.

  4. 4

    Store the row, then fan out

    Storage · PostgreSQL

    The template says Postgres stores the lead, a round-robin step assigns a rep, a CRM step can target HubSpot or another CRM, Gmail sends a welcome note, and Slack notifies the team.

    In: The enriched lead.

    Out: A database row plus the messages the template describes. None were created here.

Monthly cost

Database hosting and model usage were not measured.

Limits

  • Round-robin assignment and CRM field mapping depend on credentials the template does not include. We did not confirm either connection.

Test log

No test has been run.

Status is draft. A tested entry needs a date, tester, environment, pass / partial / fail, minutes, actual cost, and notes. Those fields are empty on purpose.

How to reproduce it

Point the webhook at a fake form, use a database you can wipe, and read the stored row before you connect a real CRM. Write down whether validation, the model call, and the insert each succeeded. That note belongs in the test log, which is empty.

What the sources claim

  • Vendor claim The template's how-it-works list runs from webhook, through validation and AI scoring, into Postgres, assignment, CRM, email, and Slack. Source

Sources