> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Cost-Aware Email Waterfall

> Resolve email from first name, last name, and domain using a provider waterfall that starts with deterministic patterns.

In Claude Code, type:

```
/deepline-gtm Find the work email for Jane Smith at acme.com — try patterns first to save credits
```

```
/deepline-gtm Find emails for leads.csv using the cost-aware waterfall — I have name and domain columns
```

<Accordion title="CLI command">
  ```bash theme={null}
  deepline enrich --with '{"alias":"email","tool":"name_and_domain_to_email_waterfall","payload":{"first_name":"Jane","last_name":"Smith","domain":"acme.com"}}'
  ```
</Accordion>

## How It Works

Providers are tried left to right. The first one to return a result wins — the rest are skipped.

```mermaid theme={null}
flowchart LR
  S0["Leadmagic: Pattern First Last Dot"]:::provider
  S1["Leadmagic: Pattern First Last Joined"]:::provider
  S2["Leadmagic: Pattern First Last Underscore"]:::provider
  S3["Dropleads"]:::provider
  S4["Hunter"]:::provider
  S5["Leadmagic: Leadmagic Email"]:::provider
  S6["Deepline Native"]:::provider
  S7["Peopledatalabs"]:::provider
  S0 --> S1 --> S2 --> S3 --> S4 --> S5 --> S6 --> S7
  classDef provider fill:#1e293b,stroke:#475569,color:#e2e8f0
```

## Parameters

| Name         | Type     | Required | Description                            |
| ------------ | -------- | -------- | -------------------------------------- |
| `first_name` | `string` | Yes      | Contact first name.                    |
| `last_name`  | `string` | Yes      | Contact last name.                     |
| `domain`     | `string` | Yes      | Company domain (for example ramp.com). |

## Cost

**0-5.86 credits** — waterfalls stop at the first match, so you only pay for the provider that returns a result.

| Step                                     | Max Credits |
| ---------------------------------------- | ----------- |
| Leadmagic: Pattern First Last Dot        | 0           |
| Leadmagic: Pattern First Last Joined     | 0           |
| Leadmagic: Pattern First Last Underscore | 0           |
| Dropleads                                | 0.3         |
| Hunter                                   | 0.3         |
| Leadmagic: Leadmagic Email               | 0.3         |
| Deepline Native                          | 1           |
| Peopledatalabs                           | 3.9         |
