Actions40
- AI Actions
- Business Actions
- Calculate Actions
- Code Actions
- Convert Actions
- Crypto Actions
- Generate Actions
- Operator Actions
- PDF Actions
- Storage Actions
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
codeKitApicredential in n8n for authentication.
Troubleshooting
Common issues:
- Missing or invalid credentials: If the
codeKitApicredential 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
- n8n Documentation: Custom Nodes
- CodeKit Node GitHub Repository (replace with actual link if available)
- Best Practices for Name Parsing