Given a Full Name, return the First Name and Last Name.

Given the full name '%full_name%', which may have the first and last name in either order, please:

1. Extract the first name and last name, assuming the most likely common order for first and last names. Prioritize recognizing common first names and last names where possible.
2. If there are more than two parts to the name (e.g., a middle name or a prefix like 'Dr.'), consider only the first and last name.

Example 1
Full Name "John Michael Doe" must return:
First Name: John
Last Name: Doe

Example 2
Full Name "Doe John" must return:
First Name: John
Last Name: Doe

How to use this prompt on a CSV file?

Datablist allows you to take an entire CSV file and run prompts directly on every line. Whether you're cleaning data, generating summaries, or transforming text, this method saves hours.

The great news is that the prompt you need is already available in Datablist under the "Templates" section. No need to start from scratch! Simply select the template that fits your task, and it’s ready to run on every line of your CSV. This makes it even easier to transform your data with just a few clicks.

Import your CSV file in Datablist. Then select "Enrich" from the header.

Select Enrich
Select Enrich

Then select the template: Parse Full Name into First Name and Last Name

Select Enrich
Select Template

Replace the variables from the prompt with your collection's properties using {{ or /. If you don't have all the variables, just edit the prompt.

Use your data
Define variables using your collection's properties

How much does it cost?

You’ve got two options. Both are super simple.

Option 1 – Use your own OpenAI API key.

Totally free on our side. Just plug in your key, and Datablist will send requests through your account. You pay OpenAI directly, based on their usage rates. No middleman. No extra fees.

With your API key, for on 1,000 items, you might pay OpenAI around $2

This is perfect if you already have an OpenAI key or want full control over costs.Bonus: no rate limits from us!

Option 2 – Use Datablist Credits.

No API key? No problem. You can use Datablist’s built-in ChatGPT account. We handle the API stuff for you. You just pay with Datablist credits.

  • API key setup – skipped
  • ChatGPT rate limits – avoided
  • Account restrictions – not your problem

It just works.

TL;DR

  • Use your key = cheaper
  • Use Datablist credits = easier

Either way, you’re in control.