> For the complete documentation index, see [llms.txt](https://developer.parvenu.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.parvenu.io/enrichments/run-after-another-enrichment.md).

# Run After Another Enrichment

Start an enrichment now and have it run on each contact as soon as another enrichment fills the field it needs.

Some enrichments need a field that another enrichment fills. Find Mobile Phone needs a Linkedin URL, which the LinkedIn Profile URL Finder fills. Find Email Address works better with a company website, which Website Enrichment fills.

You don't have to wait for the first run to finish. Add `wait_for` to the second call and it starts right away, but only runs on each contact once that contact has the field it needs.

{% hint style="info" %}
**Same price as a normal run.** Each contact is charged as it runs, at the enrichment's usual rate. Contacts that never get the field are never sent and cost nothing.
{% endhint %}

## How it works

1. Call any list enrichment (the routes ending in `_list`, plus [Run Enrichment](https://developer.parvenu.io/icp-enrichment/run-enrichment.md) with a `listname`) with `wait_for` set. Nothing runs yet, and the response has `waiting_for` with the name of the enrichment it waits on.
2. About once a minute, contacts that just got the field are sent to the enrichment.
3. Each contact is sent once, never twice.
4. It stops on its own when the enrichment it waits for has finished and every contact it found has been sent, when no contact it covers is still missing the field, or after 24 hours.

It keeps the rows you picked: `view`, `saved_view`, `search` and filters work the same as on a normal run.

## `wait_for` values

| Value                 | Waits for                   | Field it needs        |
| --------------------- | --------------------------- | --------------------- |
| `linkedin`            | LinkedIn Profile URL Finder | Linkedin URL          |
| `website`             | Website Enrichment          | Company website       |
| `email`               | Find Email Address          | Email                 |
| `personal_email`      | Personal Email Enrichment   | Personal email        |
| `phone`               | Find Mobile Phone           | Mobile phone          |
| `company_from_domain` | Enrich Company From Domain  | Company Linkedin      |
| `company_linkedin`    | Find Company LinkedIn       | Company LinkedIn page |

Any other value returns `422`. Leave `wait_for` out to run now, as usual.

## Example

Start the LinkedIn Profile URL Finder on a list, then right away start Find Mobile Phone so it runs on each contact as their Linkedin URL is found.

<mark style="color:green;">`POST`</mark> `/mobile_phone_enrichment_list`

{% tabs %}
{% tab title="Input" %}

```json
{
  "api_key": "your_api_key",
  "listname": "Pest Control Owners",
  "wait_for": "linkedin"
}
```

{% endtab %}

{% tab title="Output" %}

```json
{
  "success": true,
  "status": "queued",
  "job_id": "681ce52a-99cf-4ef6-b6db-011384390d54",
  "list_name": "Pest Control Owners",
  "view": "all",
  "rows_selected": null,
  "rows_fetched": null,
  "truncated": false,
  "max_rows": null,
  "credits_estimated": null,
  "waiting_for": "Find Linkedin Profiles",
  "message": "Enrich Mobile Phones will run on each contact as soon as Find Linkedin Profiles fills the field it needs. It checks about once a minute and stops when that is finished. Poll /check_list_status.",
  "credits_used": 0
}
```

{% endtab %}
{% endtabs %}

`rows_selected` and `credits_estimated` are `null` because it isn't known yet how many contacts will get the field.

## Follow and stop it

* [Running Enrichments](https://developer.parvenu.io/get-enrichment-results/running-enrichments.md) shows the waiting run with how many contacts it has sent so far.
* [Stop an Enrichment](https://developer.parvenu.io/get-enrichment-results/stop-an-enrichment.md) stops it. Contacts already sent finish and are charged; nothing else is sent.
* [Check List Status](https://developer.parvenu.io/get-enrichment-results/check-list-status.md) and [Download List Data](https://developer.parvenu.io/get-enrichment-results/download-list-data.md) work the same as for any list run.
