# Get first names for email personalization

**Use case:** 

Pull a clean first name out of messy full names, so outreach says "Hi John" instead of "Hi Dr." or "Hi SMITH". Strips titles, suffixes and nicknames into their own fields.

## Input

```json
{
  "names": [
    "DR. JOHN SMITH",
    "Prof. Dr. Anna-Lena von der Heide",
    "Robert \"Bob\" Johnson III",
    "SMITH, Mary",
    "J.R.R. Tolkien"
  ],
  "nameField": "name",
  "keepSourceFields": false,
  "includeConfidence": false,
  "includeTags": false
}
```

## Output

```json
{
  "name": {
    "label": "Full name",
    "format": "string"
  },
  "prefix": {
    "label": "Title",
    "format": "string"
  },
  "first": {
    "label": "First",
    "format": "string"
  },
  "middle": {
    "label": "Middle",
    "format": "string"
  },
  "last": {
    "label": "Last",
    "format": "string"
  },
  "suffix": {
    "label": "Suffix",
    "format": "string"
  },
  "nickname": {
    "label": "Nickname",
    "format": "string"
  },
  "confidence": {
    "label": "Confidence",
    "format": "number"
  },
  "error": {
    "label": "Error",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Full Name Parser: split names into first, middle and last Actor is ready to run with the inputs already set for "Get first names for email personalization". [Sign up or log in](https://console.apify.com/create-task-from-example/p4s3oIKzoBMV84km3) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Get first names for email personalization" task

The Full Name Parser: split names into first, middle and last Actor will start running based on the input automatically. You can also change all the input fields, like full names, field with the full name, and more, to match your specific use case.

### 3. Receive the "Get first names for email personalization" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as full name, title, first, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Get first names for email personalization" task via API](https://apify.com/loice/name-parser.md).

## FAQ

### Which field do I put in the greeting?

Use first. Titles such as Dr. go to prefix, suffixes such as Jr. or PhD go to suffix, and a nickname in quotes or brackets goes to nickname. If nickname is filled in, the person may prefer it.

### Does it fix names written in ALL CAPS?

No. The Actor keeps the spelling of the input, so DR. JOHN SMITH gives the first name JOHN. Change the case in your spreadsheet or email tool before sending.

### What about initials or rows with no first name?

Initials stay as written: J.R.R. Tolkien gives J.R.R. A company name or a single word may leave first empty. Use a fallback greeting such as "Hi there" for those rows.

### How much does it cost?

You pay per parsed name: $0.50 per 1,000 on the Free plan, less on paid plans, down to $0.30 per 1,000 on Business. Platform usage is included in the price.

## About this Actor

This example demonstrates how to use [Full Name Parser: split names into first, middle and last](https://apify.com/loice/name-parser.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/loice/name-parser.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/loice/name-parser.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
