Skip to main content

Sales · Lead routing

MixedB2B SaaS

Qualifying and routing inbound leads before they go cold

A demo request that waits a day for an owner is a demo request half lost. Here is how a workflow enriches, scores and routes each form lead in minutes, and a Relay drafts the first reply for the rep to approve.

Valnora & Elric team6 min read

A form submission starts a workflow that enriches the lead, checks it against ICP rules, writes a score and reasons, and assigns an owner in HubSpot. A Relay watching the leads table drafts a first email that waits for the rep.

A Head of Operations fills in the demo form at 11:40 on a Tuesday. The submission lands in a shared inbox, a marketing coordinator checks the company on LinkedIn after lunch, decides it looks like a fit, and assigns it to a rep who is on calls until five. The first reply goes out on Wednesday morning, by which point the prospect has booked two other demos.

Nobody did anything wrong. The process just has three hand-offs, and each one waits for a person who is busy. This architecture removes the waiting, not the people: enrichment, scoring and routing happen in minutes, and the first email is drafted for the rep, who still decides what goes out.

How it works

From a form submission to an owned, scored lead

Workflow 1 · Enrich and score

  1. 01Form submittedThe Typeform trigger, or a generic Webhook trigger for your own site form.
  2. 02EnrichThe Apollo block enriches the person and company; other providers via the API block.
  3. 03ICP rulesPlain-language checks on size, industry, region, role and use case, each pass or fail.
  4. 04Leads tableScore, tier, the reasons behind it and the enrichment source for every lead.

Workflow 2 · Route

  1. 05Routing logicTier and region decide the queue; a round robin inside the queue picks the rep.
  2. 06HubSpot recordsCreates or updates the contact and company, sets the owner and adds a note with reasons.
  3. 07Slack pingTier A leads post to the rep in Slack with the score and the reasons.

Relay · First reply

  1. 08Watch new leadsWatches the leads table for new tier A and B rows, checking every minute.
  2. 09Messaging guidePositioning, proof points and what a first email may and may not promise.
  3. 10Rep approvesThe draft email waits for the owning rep, who edits or declines it.

Workflow 1: enrich and score

The first workflow starts when a form is submitted. With Typeform, use the Typeform trigger. With your own site form, post the submission to a generic Webhook trigger.

Enrich. The Apollo block enriches the person and the company: size, industry, region and role. If you already pay for another enrichment provider, call it with the API block, with the key stored as a workspace secret. Enrichment fills gaps; it does not overwrite what the person told you on the form.

Score against rules. Your ideal customer profile (ICP) is written in Rules as plain-language checks, for example:

  • Company has between 100 and 5,000 employees.
  • Industry is logistics, retail, financial services or software.
  • Region is one we sell in.
  • Role is in operations, support, finance or engineering, at manager level or above.
  • The form answer describes a use case we support.

Each rule returns pass or fail with a reason. The score is a weighted sum, and the tier (A, B or C) follows from it. The workflow writes everything to a leads table in Tables: the answers, the enrichment, each rule result, the score and the tier.

Before any of that is stored, a Guardrails block can detect and mask personal data you do not need, such as a phone number typed into a free-text field.

Workflow 2: route in HubSpot

The second workflow reads the new row and decides the owner. Tier and region pick a queue; a round robin inside the queue picks the rep, skipping anyone marked out of office in a small reps table.

The HubSpot block then creates or updates the contact and company, sets the owner, and adds a note with the score and the reasons. Tier A leads also post to the rep in Slack. Tier C leads go to a nurture list rather than a rep, and nobody is surprised by a lead they did not want.

Keeping routing in its own workflow means you can change the queues without touching the scoring, and each runs from a deployed version that someone reviewed.

The Relay: a first reply worth sending

What the solution produces

Scored lead record (illustrative)

Record
Lead
Head of Operations at a 400-person logistics company, India
Form answer
"We need to automate shipment exception emails."
Enrichment
Apollo · company size, industry, region and role matched
ICP checks
Size: pass · Industry: pass · Region: pass · Role: pass · Use case: pass
Score and tier
86 · Tier A
Owner
Mid-market India queue · assigned by round robin
Next step
First email drafted for the owner. Not sent.
Leads table row · HubSpot note added with the same reasons

First email draft (illustrative)

Message

Subject: Shipment exception emails

Hi Priya, thanks for the note about shipment exception emails. Teams in logistics often start by drafting those replies from the carrier update and the order, with a person approving each one.

Would 20 minutes on Thursday or Friday work to see what that looks like on your data?

Drafted by the Lead Reply Relay · waiting for the owning rep

A Relay, an AI coworker with its own instructions and access, watches the leads table for new tier A and B rows, checking as often as every minute. For each one it reads the form answer and enrichment, searches the messaging guide in the Knowledge Base, and drafts a first email from the owning rep’s point of view.

Relays never send email without an approval, under any autonomy setting. The rep sees the exact message, edits it if needed and approves; the approval covers that text only and expires after 24 hours by default. Because first emails go to prospects, the Relay’s recipient policy has to allow them: an allowlist of domains is too narrow here, so most teams set it to anyone and rely on the approval step. Start with internal only for a week, so drafts go to reps, before switching.

The Relay does not phone leads. If you want inbound calls answered and warm leads passed to sales, that is Agent Inbound & Outbound, a separate Valnora & Elric product available by invitation.

Watching the funnel

A dashboard in Dashboards on the leads table shows leads by tier, time from form to owner, time from form to first approved email, and how many tier A leads booked a meeting. The figures are yours to measure; we would not promise any in advance.

Two things are worth watching from the first week:

  1. Rules that fail too often. If most leads fail on company size, either your form attracts the wrong people or the rule is wrong. Both are worth knowing.
  2. Drafts that reps rewrite. If reps rewrite most first emails, improve the messaging guide rather than the prompt.

Logs record every run block by block, so when a rep asks why a lead went to someone else, the answer is one click away.

Controls and governance

Approvals before action

Relays never send email or book meetings without an approval, under any autonomy setting. An approval covers the exact payload the reviewer saw and expires if nobody decides.

Audit trail

Proposals, approvals, declines and executed actions are written to the workspace audit log, which admins can export.

Run logs

Every workflow run records each block’s inputs, outputs and errors, so a reviewer can trace how a result was reached.

PII detection

A Guardrails block detects personal data and blocks or masks it before text reaches the next step.

Deployed versions

Workflows run from a deployed version, so a change is reviewed before it reaches production runs.

Roles and permission groups

Admin, write and read roles per workspace, plus permission groups that limit which models, blocks and integrations a team can use.

More on how Agent Serve handles access, data and audit on the security page.

Rolling it out

Run the workflows in parallel with the current process for two weeks, writing scores and owners to the table without touching HubSpot. Compare the routing with what the coordinator would have done. When they agree on most leads, switch HubSpot writes on and introduce the Relay.

Questions teams ask

Is Clearbit a built-in integration?

No. Apollo has a built-in block with person and company enrichment. Other enrichment providers can be called through the generic API block with their API key stored as a workspace secret.

Why is the score explained in words?

Because reps ignore numbers they cannot argue with. Each rule records pass or fail and why, so a rep can see that a lead failed on company size and decide to call anyway.

Can the Relay send the first email on its own?

No. Relays never send email without an approval, under any autonomy setting. The rep sees the exact message and approves, edits or declines it.

Before you start

What you need

  • A Typeform form, or your own site form able to post to a webhook
  • Apollo connected, or another enrichment provider’s API key stored as a workspace secret
  • Your ICP written as plain-language rules, agreed between sales and marketing
  • HubSpot connected, with queues and owners per region and segment
  • A messaging guide in the Knowledge Base for first emails
  • An outbound inbox for the Relay and a recipient policy that allows prospects

Written by the Valnora & Elric team.

Figures, dashboards and sample outputs in this article are illustrative examples, not customer results. This article is for information only and isn't legal or regulatory advice.

Enterprise access

Put AI agents to work across your team

Agent Serve is available to teams by invitation. Tell us what you want to build and we will set up your workspace with you.