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

> Suggest valid values for a people search field, such as titles or locations, from partial text. Includes inputs, outputs, SDK V2 examples, and Deepline cost.

Suggest valid values for a people search field, such as titles or locations, from partial text.

> [!NOTE]
>
> Tool ID: `crustdata_persondb_autocomplete`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'crustdata_persondb_autocomplete',
  {
    "field": "current_employers.company_website_domain",
    "query": "software companies hiring engineers"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute crustdata_persondb_autocomplete --input '{
  "field": "current_employers.company_website_domain",
  "query": "software companies hiring engineers"
}' --json
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "status": "example",
  "result": {
    "data": {
      "values": [
        "example"
      ]
    }
  }
}
```

Use `deepline describe crustdata_persondb_autocomplete --json` for the latest machine-readable contract.

## Input reference

Fetches exact filter values using /screener/persondb/autocomplete. Free, no credits consumed.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `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. Allowed: See the live schema for the complete constraint. |
| `payload.query` | `string` | Yes | — | Partial text to match. Examples: "san franci" for region, "Eng" for job titles. Minimum length: 1. |
| `payload.limit` | `integer` | No | `3` | Max values to return (1-1000, default 3, clamped to range). Minimum: 1. Maximum: 1000. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "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 reference

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.status` | `string` | Yes | — | — |
| `result.result` | `object` | Yes | — | — |
| `result.result.data` | `object` | Yes | — | — |
| `result.result.data.values` | `array` | Yes | — | — |

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

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "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>

## Deepline cost

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

## Related documentation

* [Crustdata provider guide](https://deepline.com/docs/providers/crustdata/guide.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.