parse_name

parse_name

Free API key

Parse a name

Splits a full name into first name, middle names and surname, with the gender, the likely nationality, a salutation and a letter salutation. It also reads a name from an email address. It needs a free API key and counts as a regular API request.

Example questions

Questions like these make the AI call this tool.

Split 'Maria del Carmen López García' into first name and surname. How do I greet j.smith@example.com in an email? Clean up these 20 names from my CRM.

Parameters

ParameterTypeRequiredDescription
namestringnoOne full name, such as Maria del Carmen López García.
namesarray of stringsnoSeveral full names at once; how many depends on your plan.
emailstringnoAn email address to read the name from, instead of a name.
country_codestringnoThe country the person likely lives in.
languageen, nl, de, fr or esnoThe language of the letter salutation.

Example

Call
{
  "name": "parse_name",
  "arguments": {
    "name": "Maria del Carmen López García"
  }
}
Result
{
  "results": 1,
  "error": null,
  "data": [{
  "salutation": {
    "salutation": "Ms.",
    "lastname": "López García",
    "letter": "Estimada Sra. López García"
  },
  "name": {
    "firstname": { "name": "Maria del Carmen", "gender_formatted": "female" },
    "lastname": { "name": "López García" }
  },
  "country": { "name": "Mexico", "country_code": "MX" },
  ...
  }]
}

What the AI makes of it

The user never sees the JSON. The assistant turns the result into an answer.

Split 'Maria del Carmen López García' into first name and surname. parse_name · Maria del Carmen López García First name: Maria del Carmen. Surnames: López García. She is most likely from Mexico; greet her with "Estimada Sra. López García".

Names your AI gets right. Register for a free API key and connect in a minute