0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Operator → Split Name

AI-generated

Overview

The Operator: Split Name operation in the 0CodeKit node is designed to split a full name string 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 parsing contact lists, onboarding forms, or CRM records where names are stored as a single string but need to be separated for further processing.

Practical examples:

  • Breaking down "John Doe" into { firstName: "John", lastName: "Doe" } for personalized emails.
  • Parsing imported CSVs with full names into structured fields for database storage.

Properties

Name Meaning
Name to Split The full name string that you want to split into individual components.

Output

The output will be a JSON object containing the parsed components of the provided name. While the exact structure depends on the API's response, it typically includes fields like firstName, lastName, and possibly others such as middleName if present in the input.

Example output:

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

If the name cannot be split, the output may contain only the original name or an error message.

Dependencies

  • External Service: Requires access to the CodeKit API endpoint for operator/splitname.
  • API Key: The node requires credentials named codeKitApi to authenticate requests.

Troubleshooting

  • Common Issues:

    • Invalid or empty input: If "Name to Split" is empty or not a valid string, the node may return an error or an incomplete result.
    • Malformed names: Unusual name formats may not be split correctly.
    • Authentication errors: Missing or incorrect API credentials (codeKitApi) will cause authentication failures.
  • Error Messages:

    • "Missing required parameter: name" – Ensure the "Name to Split" property is filled.
    • "Authentication failed" – Check your CodeKit API credentials in n8n.
    • "Unexpected API response" – The external service may be unavailable or returning unexpected data.

Links and References

Discussion