Actions40
- AI Actions
- Business Actions
- Calculate Actions
- Code Actions
- Convert Actions
- Crypto Actions
- Generate Actions
- Operator Actions
- PDF Actions
- Storage Actions
AI → Language Detection
AI-generatedOverview
The 0CodeKit node's "AI" Resource with the "Language Detection" operation is designed to detect the language of a given text input. This utility is useful in workflows where you need to automatically identify the language of user-generated content, emails, documents, or any other textual data before further processing, such as translation, routing, or analytics.
Practical examples:
- Automatically route support tickets to agents based on detected language.
- Pre-process incoming messages for translation services.
- Analyze social media posts to determine the primary language used by your audience.
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 response, you can expect fields such as:
- The detected language code (e.g.,
"en"for English,"fr"for French). - Possibly a confidence score or probability.
- The original text may also be included.
Example output:
{
"language": "en",
"confidence": 0.98,
"text": "Hello, how are you?"
}
Note: Actual field names and structure may vary depending on the underlying API.
Dependencies
- External Service: Requires access to the CodeKit API for AI operations.
- API Key: You must configure the
codeKitApicredential in n8n for authentication.
Troubleshooting
- Missing API Key: If the
codeKitApicredential is not set up, the node will fail to execute. Ensure credentials are configured in n8n. - Invalid Input: If the "Text" property is empty or not provided, the node will throw an error. Always supply valid text.
- API Errors: If the external service is unavailable or returns an error (e.g., rate limits, invalid API key), the node will either throw an error or, if "Continue On Fail" is enabled, return an error message in the output.
Common error messages:
Missing required parameter: text– Make sure the "Text" field is filled.Authentication failed– Check your API credentials.Service unavailable– The external API might be down; try again later.