> ## 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.

# Crustdata Persondb Autocomplete: Inputs, Cost & CLI

> Autocomplete suggestions for person fields. Includes inputs, outputs, pricing notes, Deepline CLI examples, and GTM automation guidance.

## Run in Enrichment Spreadsheet

<Info>
  Use this function as a column step in `deepline enrich`.
</Info>

```bash theme={null}
deepline enrich --input leads.csv --output leads.enriched.csv --with 'result=crustdata_persondb_autocomplete:{"field":"current_employers.company_website_domain","query":"{{query}}"}' --json
```

<Tip>
  Map payload values to spreadsheet columns with `{{column_name}}` placeholders.
</Tip>

## Input Schema

| Name            | Type                                                                                                                                                                                            | Required | Default | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `payload.field` | `"current_employers.company_website_domain" \| "current_employers.seniority_level" \| "current_employers.title" \| "headline" \| "num_of_connections" \| "region" \| "years_of_experience_raw"` | Yes      |         | Field name to autocomplete. Must be one of: current\_employers.company\_website\_domain, current\_employers.seniority\_level, current\_employers.title, headline, num\_of\_connections, region, years\_of\_experience\_raw. Key mappings: job title → current\_employers.title, seniority → current\_employers.seniority\_level, location → region, company/employer → current\_employers.company\_website\_domain, experience → years\_of\_experience\_raw, bio/summary → headline. |
| `payload.query` | `string`                                                                                                                                                                                        | Yes      |         | Partial text to match. Examples: "san franci" for region, "Eng" for job titles.                                                                                                                                                                                                                                                                                                                                                                                                      |
| `payload.limit` | `integer`                                                                                                                                                                                       | No       | `3`     | Max values to return (1-1000, default 3, clamped to range).                                                                                                                                                                                                                                                                                                                                                                                                                          |

### Allowed values

| Field           | Allowed values                                                                                                                                                                    |
| --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `payload.field` | `current_employers.company_website_domain`, `current_employers.seniority_level`, `current_employers.title`, `headline`, `num_of_connections`, `region`, `years_of_experience_raw` |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Fetches exact filter values using /screener/persondb/autocomplete. Free, no credits consumed.",
    "properties": {
      "field": {
        "type": "string",
        "description": "Field name to autocomplete. Must be one of: current_employers.company_website_domain, current_employers.seniority_level, current_employers.title, headline, num_of_connections, region, years_of_experience_raw. Key mappings: job title → current_employers.title, seniority → current_employers.seniority_level, location → region, company/employer → current_employers.company_website_domain, experience → years_of_experience_raw, bio/summary → headline.",
        "enum": [
          "current_employers.company_website_domain",
          "current_employers.seniority_level",
          "current_employers.title",
          "headline",
          "num_of_connections",
          "region",
          "years_of_experience_raw"
        ]
      },
      "query": {
        "type": "string",
        "description": "Partial text to match. Examples: \"san franci\" for region, \"Eng\" for job titles.",
        "minLength": 1
      },
      "limit": {
        "type": "integer",
        "description": "Max values to return (1-1000, default 3, clamped to range).",
        "default": 3,
        "minimum": 1,
        "maximum": 1000
      }
    },
    "required": [
      "field",
      "query"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

| Name            | Type     | Required | Default | Description |
| --------------- | -------- | -------- | ------- | ----------- |
| `result.status` | `string` | Yes      |         |             |
| `result.result` | `object` | Yes      |         |             |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "status": {
        "type": "string"
      },
      "result": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "values": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "values"
            ],
            "additionalProperties": true
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": true
      }
    },
    "required": [
      "status",
      "result"
    ],
    "additionalProperties": true
  }
  ```
</details>

## Advanced: Direct CLI

<Info>
  Use direct execution for single payload debugging.
</Info>

```bash theme={null}
deepline tools execute crustdata_persondb_autocomplete --payload '{
  "field": "current_employers.company_website_domain",
  "query": "string"
}' --json
```

### CLI flags

| Flag                        | Description                                         |
| --------------------------- | --------------------------------------------------- |
| `--json`                    | Print machine-readable output.                      |
| `--wait`                    | Wait for terminal provider status when supported.   |
| `--debug`                   | Enable wait mode with additional status/log output. |
| `--wait-timeout SECONDS`    | Max seconds to wait in wait mode.                   |
| `--poll-interval SECONDS`   | Polling interval in seconds during wait mode.       |
| `--timeout SECONDS`         | Request timeout in seconds.                         |
| `--connect-timeout SECONDS` | Connection timeout in seconds.                      |

## Cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.
* Billing mode: `no_bill`.
