Actions40
- AI Actions
- Business Actions
- Calculate Actions
- Code Actions
- Convert Actions
- Crypto Actions
- Generate Actions
- Operator Actions
- PDF Actions
- Storage Actions
Overview
The 0-CodeKit node's "Operator" resource with the "Detect Gender" operation is designed to determine the likely gender (male, female, etc.) based on a provided first name. This utility is useful in scenarios where you need to enrich contact data, personalize communications, or perform demographic analysis by inferring gender from names.
Practical examples:
- Automatically assigning gendered salutations ("Mr.", "Ms.") in email campaigns.
- Segmenting user lists for targeted marketing.
- Enhancing CRM records with inferred gender information.
Properties
| Name | Meaning |
|---|---|
| Detect Gender From Firstname | The first name to analyze for gender detection. This is a required string input. |
Output
The output will be a JSON object containing the result of the gender detection. While the exact structure depends on the external service response, it typically includes fields such as:
{
"gender": "male",
"probability": 0.98,
"firstname": "John"
}
gender: The detected gender (e.g., "male", "female", "unknown").probability: Confidence score for the prediction (if provided).firstname: The input first name.
Note: The actual keys may vary depending on the underlying API/service.
Dependencies
- External Service/API: Requires access to the CodeKit API for gender detection.
- API Key/Credentials: You must configure the
codeKitApicredential in n8n for this node to function.
Troubleshooting
Common Issues:
- Missing Credentials: If the
codeKitApicredential is not set up, the node will fail to execute. - Invalid Input: If the "Detect Gender From Firstname" property is empty or invalid, the node may return an error or an "unknown" result.
- API Errors: Network issues or API downtime can cause errors such as "Request failed" or similar messages.
Error Messages and Resolutions:
"Missing required parameter: firstname": Ensure you provide a valid first name."Invalid API key": Check yourcodeKitApicredentials configuration in n8n."Network Error"or"Request failed": Verify network connectivity and the availability of the CodeKit API.
Links and References
- n8n Documentation: Custom Nodes
- CodeKit API Documentation (Replace with actual link if available)