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, when configured with the AI resource and the Language Detection operation, detects the language of a given text input. This is useful in workflows where you need to automatically identify the language of user-generated content, emails, support tickets, or any other textual data before further processing (such as translation, routing, or analytics).
Practical examples:
- Automatically route customer support tickets to agents based on detected language.
- Pre-process incoming messages for translation services.
- Analyze social media posts to determine their language distribution.
Properties
| Name | Meaning |
|---|---|
| Text | Text to detect language of |
Output
The output will be a JSON object containing the result of the language detection. While the exact structure depends on the external service's response, it typically includes fields such as:
- The detected language code (e.g.,
"en"for English,"fr"for French). - Possibly a confidence score or probability.
- The original text.
Example output:
{
"language": "en",
"confidence": 0.98,
"text": "Hello, how are you?"
}
If an error occurs and "Continue On Fail" is enabled, the output may include:
{
"error": "Error message string"
}
Dependencies
- External Service: Requires access to the CodeKit API for AI operations.
- API Key: You must configure the
codeKitApicredential in n8n for authentication.
Troubleshooting
Common issues:
- Missing or invalid API key: Ensure that the
codeKitApicredential is correctly set up in n8n. - Empty or invalid text input: The "Text" property is required; providing an empty value will likely result in an error.
- Service errors: If the external API is unavailable or returns an error, the node will either throw an error or return an error object if "Continue On Fail" is enabled.
Common error messages:
"Missing required parameter: text"– Make sure the "Text" field is filled."Invalid API credentials"– Check your API key configuration."Network error"or"Service unavailable"– Try again later or check network connectivity.
Links and References
- n8n Documentation: Custom Nodes
- CodeKit API Documentation (Replace with actual link if available)