Actions108
- AI Actions
- Transcribe
- Detect Brand
- Extract Contact Information
- Mood Detection
- Detect Adult Content
- Enitity Detection
- Language Detection
- Too Long To Read
- Check Content Policy
- Detect Faces
- Generate Python Code
- Picture Text Recognition
- Detect Color
- Generate Image
- PDF OCR
- Translation
- Detect Email Type
- Generate Javascript Code
- Picture Object Recognition
- Business Actions
- Calculate Actions
- Code Actions
- Convert Actions
- Crypto Actions
- Date & Time Actions
- Generate Actions
- Image Actions
- Operator Actions
- PDF Actions
- Storage Actions
- Text Actions
- User Actions
Overview
The node provides a versatile toolbox of no-code utilities grouped under various resources, including AI. Specifically, for the AI resource's "Language Detection" operation, it detects the language of a given text input. This is useful in scenarios where you need to automatically identify the language of user-generated content, documents, or messages to route them appropriately, apply language-specific processing, or provide localized responses.
For example, you might use this node to:
- Automatically detect the language of customer feedback before sending it to language-specific support teams.
- Identify the language of social media posts for sentiment analysis or moderation.
- Preprocess multilingual datasets by tagging each entry with its detected language.
Properties
| Name | Meaning |
|---|---|
| Text | The text string whose language you want to detect. |
| Code Variables | A collection of code variables defined in the code editor that can be used as dynamic inputs. Each variable has: - Variable Name or ID: Select from existing code variables or specify an ID. - Value: The value assigned to the variable. |
Output
The node outputs a JSON array where each item corresponds to one input item processed. For the Language Detection operation, the output JSON contains the detected language information for the provided text. The exact structure depends on the external API response but typically includes fields such as the language code and possibly confidence scores.
If multiple items are processed, the output is an array of such results.
No binary data output is indicated for this operation.
Dependencies
- Requires an API key credential for authentication with the external 0CodeKit service.
- The node makes HTTP POST requests to the endpoint path
ai/languageDetectionwith the text payload. - No additional environment variables or configurations are explicitly required beyond the API key credential.
Troubleshooting
- Common issues:
- Missing or invalid API key credential will cause authentication failures.
- Providing empty or very short text may result in inaccurate or failed language detection.
- Network connectivity issues can prevent the node from reaching the external API.
- Error messages:
- Authentication errors indicate problems with the API key; verify and re-enter credentials.
- Validation errors if the "Text" property is missing or empty; ensure the text input is provided.
- Unexpected API response errors may require checking the external service status or input formatting.
Links and References
- n8n Expressions Documentation — for using expressions in code variables.
- External API documentation for the 0CodeKit AI language detection (not publicly linked here).