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

I'll give you a name, which may have the first and last name in either order, or just the first name, or just the last name, 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.
3. If there is only a first name, or only a last name, return only the available part.

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

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

Example 3
Name "Richard" must return:
First Name: Richard
Last Name:

Example 4
Name "Garcia" must return:
First Name: 
Last Name: Garcia

## Input
The name: /Name

Come usare questo prompt su un file CSV?

Datablist ti consente di prendere un intero file CSV ed eseguire prompts direttamente su ogni riga.

La buona notizia �e8 che il prompt che ti serve �e8 gi�e0 disponibile in Datablist nella sezione "Templates". Non serve partire da zero! Seleziona semplicemente il template adatto al tuo task ed �e8 pronto per essere eseguito su ogni riga del tuo CSV. Cos�ec trasformi i tuoi dati in pochi click.

Importa il tuo file CSV in Datablist. Poi seleziona "Enrich" dall'header.

Seleziona il template: Parse a Name into First Name and Last Name

Seleziona Template
Seleziona Template

Sostituisci le variabili del prompt con le propriet�e0 della tua collezione usando / o '{{'.

Definisci le variabili usando le propriet�e0 della tua collezione
Definisci le variabili usando le propriet�e0 della tua collezione

Se non hai tutte le variabili, modifica semplicemente il prompt.

Fatto! Ora puoi eseguire il prompt su ogni riga del tuo file CSV e ottenere i risultati in una nuova colonna. 680

Quanto costa?

Hai due opzioni. Entrambe sono molto semplici.

Opzione 1 �13 Usa la tua OpenAI API key.

Totalmente gratuito dalla nostra parte. Collega la tua key e Datablist invier�e0 le richieste tramite il tuo account. Paghi OpenAI direttamente, in base alle loro tariffe. Nessun intermediario. Nessun costo extra.

Con la tua API key, per 1.000 elementi potresti pagare a OpenAI circa $2.

Perfetto se hai gi�e0 una key OpenAI o vuoi il pieno controllo dei costi. Bonus: nessun rate limit da parte nostra!

Opzione 2 �13 Usa i Datablist Credits.

Nessuna API key? Nessun problema. Puoi usare l'account ChatGPT integrato di Datablist. Gestiamo noi l'API per te. Tu paghi con i Datablist credits.

  • Setup API key �13 saltato
  • Rate limits di ChatGPT �13 evitati
  • Restrizioni dell'account �13 non sono un tuo problema

Funziona e basta.

TL;DR

  • Usa la tua key = pi�f9 economico
  • Usa i Datablist credits = pi�f9 semplice

In ogni caso, hai tu il controllo.