Recipe · Updated November 2026

Waterfall enrichment: find work emails with Treg, then Prospeo

A waterfall asks one provider first and a second only for the records the first misses. In Coil that is one explicit, ordered policy for one field: find a work email with Treg, and try Prospeo only where Treg returns nothing. This page shows how to run it, what it spends, and what it records. It is not a general multi-provider waterfall.

What the waterfall is, and is not

Coil's email-finding step normally calls one provider: Treg by default, or Prospeo if you pin it. The fallback policy adds a second position. For each lead, Coil asks Treg first. Only when Treg answers with an acknowledged not-found does Coil ask Prospeo about that lead. If Treg returns an address, the lead is done and Prospeo is never called for it.

Three details matter for how you rely on it:

  • One order, two providers. The only accepted policy is Treg then Prospeo, set for an email-finding step by its step ID. There is no third provider, no reordering, and no waterfall for other fields.
  • A miss is the only trigger. A Treg error, an unusable response or an outcome Coil cannot confirm does not send the lead to Prospeo. Those outcomes are recorded and left for you.
  • It stops on a result, not on quality. Coil does not score confidence or verify an address before deciding to stop. Verification is a separate step; see below.

The fallback runs on version 1 recipes, which are a plain list of steps. The bounded branching recipe format (version 2) rejects a provider fallback. Coil does not own a contact database, and it has not measured find rates or accuracy for either provider, so this page publishes none. For a priced comparison of enrichment tools, including the ones that sell a managed waterfall, see data enrichment tools compared. For what a filled field does and does not prove, see lead enrichment.

Before you start

  • Leads in Coil, with the identifiers a lookup needs. They can come from Prospect Search, Sales Navigator Search (see the Sales Navigator workflow), people at a company page or a CSV import. Treg looks a person up by name and company; Prospeo can also use a LinkedIn profile URL.
  • Both providers connected and healthy. A human organization admin saves a Treg token and a Prospeo API key under Settings, then Integrations. A run is refused at admission if either connection is missing or unhealthy. Agent API keys cannot save provider credentials.
  • A published recipe with an email-finding step. The Coil recipe templates do not include one, so you draft it. A human admin reviews and publishes the draft; an agent cannot.
  • A Prospeo credit ceiling you have chosen. The policy will not run without one.

Step by step

The commands come from the Coil CLI and its skill manifests; replace the placeholders in angle brackets with IDs from your own organization. The same run is available in the web app and through the REST API, and each section says where.

1. Draft the email-finding step

A recipe is an ordered list of steps. This one has a single step that uses person.email.find. Its step ID, find-email here, is the key the fallback policy attaches to. Save the JSON as waterfall-email.json.

{
  "name": "Waterfall email enrichment",
  "steps": [
    {
      "id": "find-email",
      "uses": "person.email.find",
      "with": {},
      "writes": { "existing": {}, "custom": {} }
    }
  ]
}
coil --profile prod recipes create --file waterfall-email.json --json
coil --profile prod recipes validate <recipe-id> --json
coil --profile prod capabilities inspect person.email.find --json

Validation checks the definition and its inputs, not whether a provider will answer. A human admin then publishes the draft from the recipe page in the app. When an agent creates the draft, the response carries a human_action link to relay to that admin verbatim.

2. Choose a small set of leads

Treg lookups have no per-run cap in Coil, so the number of leads you select is your Treg limit. Start with a few. Leads that already have an email are skipped at each provider attempt, so there is no need to filter them out first.

coil --profile prod leads list <scrape-id> --limit 25 --json --output-version 2

3. Run with the fallback policy and a credit ceiling

Three flags carry the decision. --provider-fallback find-email=treg,prospeo sets the order for that step. --max-provider-credits is the Prospeo ceiling, an integer from 1 to 10,000 in Prospeo's own credits, kept separate from USD and checked before each Prospeo call. --confirm-provider-spend approves provider usage for this exact run; it is never a default. A step cannot use both a pin and a fallback, and the CLI refuses the fallback without a credit ceiling.

coil --profile prod recipes run <recipe-id> \
  --confirm-provider-spend \
  --provider-fallback find-email=treg,prospeo \
  --max-provider-credits 25 \
  --lead-ids <lead-id-1>,<lead-id-2> \
  --json
coil --profile prod recipe-runs wait <run-id> --timeout 300 --interval 2 --json

In the web app, go to Start a run and choose the published recipe. Put the lead IDs in the run request, set the email provider for find-email to “Treg, then Prospeo” and enter “Maximum Prospeo credits”. The confirmation dialog repeats the policy and the ceiling before the run is admitted. A queued response confirms admission, not completion, so wait for the run to finish before you read results.

4. Read what happened

Coil keeps one durable attempt per lead and step, with a second position for Prospeo. Read the ledger to see which provider answered for each lead; the next section explains the outcomes.

coil --profile prod recipe-runs email-provenance <run-id> --limit 50 --offset 0 --json

5. Verify before you send

A found address is the provider's best answer, not a guarantee. If MillionVerifier is connected for your organization, add a person.email.verify step in a later run, and send a small batch first. See deliverability. Coil does not send email itself; sending stays in SmartLead or your own sender, as described in the Claude Code lead generation guide.

Reading the attempt ledger

Each row names the step, the provider position (1 is Treg, 2 is Prospeo), the outcome, the address if one was returned, and the cost in the provider's native unit. Treg cost is shown in USD and Prospeo cost in credits; the two are never added together.

  • Found and applied. The provider returned an address and Coil wrote it to the lead.
  • Found; kept existing email. The provider returned an address, but the lead already had one, so Coil kept the existing value.
  • No work email found. The provider answered with no match. With the fallback policy, a Treg miss is what hands the lead to Prospeo.
  • Skipped before provider call. This attempt was skipped because the lead already had an email. An earlier attempt for the same lead, such as Treg before Prospeo, may still have incurred a cost.
  • Provider failed / Invalid provider response. The call errored or returned something Coil could not use. Prospeo is not tried as a retry for a Treg error.
  • Outcome unknown; admin review required. Coil cannot confirm what the provider did. It stays an open item for an administrator to reconcile.

The ledger is execution evidence for the email step. It does not claim that every field on a lead carries provider-level provenance.

Running it from an agent

The same run is available to an agent through the organization-scoped REST API and the JSON CLI, and the Claude Code, Codex and Hermes Agent skills describe the commands. Coil does not ship a general MCP server; see the Claude Code lead generation guide and the Agent API page for installation. The useful instruction is a narrow one: name the recipe, the leads, the policy and the ceiling, forbid anything else, and tell the agent where to stop.

Use the coil-api skill. Run "coil --profile prod agent-context --json" first.
Run recipe <recipe-id> on lead IDs <lead-id-1>,<lead-id-2> with
--provider-fallback find-email=treg,prospeo, --max-provider-credits 10 and
--confirm-provider-spend. Do not add other leads, raise the ceiling or retry
with different providers. Wait for the run, then read recipe-runs email-provenance
and report, per lead, which provider answered and the outcome. Stop and show me
the report before anything else happens.

Passing --confirm-provider-spend approves spend up to your ceilings, so the approval is your instruction. A human admin still saves the credentials and publishes the recipe.

Limits

  • Email finding only. Other fields, such as phone numbers, company data and technographics, have no waterfall.
  • Two providers in one fixed order. No third provider, no reordering, no stop on confidence.
  • Version 1 recipes only. The bounded branching format rejects the policy.
  • Coil sets no provider prices and publishes no hit rates. Check each provider's own pricing before you run at volume.
  • Coil does not schedule runs. For a recurring run, call the CLI from your own scheduler.

Questions

What is waterfall enrichment?

Waterfall enrichment asks one data provider for a field and asks a second provider only for the records the first could not resolve. It is used because no single provider covers every person. The result depends on provider order, on whether misses are billed, and on what counts as a hit.

Does Coil do waterfall enrichment?

In one bounded form. Coil can find a work email with an explicit ordered policy: Treg first, then Prospeo for leads where Treg returns not found. It is not a general waterfall. It covers one field, two providers and one fixed order, and it does not stop on a confidence score or a verification result.

When does Prospeo run?

Only after Treg returns an acknowledged not-found for that lead. If Treg returns an email, Prospeo is not called for that lead. A Treg error or an outcome Coil cannot confirm does not trigger Prospeo either; those are recorded as such in the attempt ledger and need your attention.

How do I cap what a waterfall run can spend?

The policy requires an integer Prospeo credit ceiling from 1 to 10,000, which Coil checks before each Prospeo call and keeps separate from any USD limit. Coil does not enforce a per-run cap on Treg lookups, so run a small set of leads first. Every provider-backed run also needs explicit spend confirmation.

Will it overwrite an email a lead already has?

No. When a lead already has an email, Coil skips the provider attempt and does not overwrite the existing address. If a provider returns an address for such a lead anyway, the ledger records it as found, with the existing email kept.

Can my agent run this, and does Coil have an MCP server?

An agent with a Coil API key can run a published recipe through the REST API or the coil CLI, and the Claude Code, Codex and Hermes Agent skills describe the commands. Coil does not ship a general MCP server. A human organization admin saves provider credentials and publishes the recipe, and the agent cannot do either.

How many emails will this find?

Coil has not measured find rates or accuracy for either provider and publishes no figure. Treat every found address as unverified until you have checked it, and test on a small batch before a large one.

Ready to run it? Start with Coil, then connect Treg and Prospeo under Settings.