0-CodeKit icon

0-CodeKit

A toolbox of no-code utilities

Overview

The Operator: Split Name operation in the 0-CodeKit node is designed to take a full name as input and split it into its constituent parts (such as first name, last name, etc.). This utility is useful in scenarios where you need to process or standardize user data, such as separating names for personalized emails, database normalization, or CRM integrations.

Practical examples:

  • Parsing a user's full name from a form submission to store first and last names separately in your database.
  • Preparing contact lists for mail merges or marketing automation tools that require separate fields for first and last names.
  • Standardizing imported data from various sources where names are provided as a single string.

Properties

Name Meaning
Name to Split The full name string that you want to split into individual components (e.g., "John Doe")

Output

The output will be a JSON object containing the results of the name splitting operation. While the exact structure depends on the API response, typically you can expect fields such as:

{
  "firstName": "John",
  "lastName": "Doe"
}

Other possible fields may include middle names or additional metadata, depending on the implementation of the backend service.

Dependencies

  • External Service: Requires access to the CodeKit API endpoint for operator/splitname.
  • Credentials: You must configure the codeKitApi credential in n8n for authentication.

Troubleshooting

Common issues:

  • Missing or invalid credentials: If the codeKitApi credential is not set up correctly, the node will fail to authenticate.
  • Empty or malformed input: If "Name to Split" is empty or not a valid string, the node may return an error or an empty result.
  • API errors: If the external service is unavailable or returns an error, the node will either throw an error or, if "Continue On Fail" is enabled, output an error message in the result.

Error messages and resolutions:

  • "error": "Request failed with status code 401": Check your API credentials.
  • "error": "Invalid input": Ensure the "Name to Split" property contains a valid name string.

Links and References

Discussion