0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions132

AI → Detect Language

AI-generated

Overview

The node provides a language detection feature under the AI resource. It analyzes a given text input and identifies the language in which the text is written. This functionality is useful in scenarios such as content localization, multilingual data processing, or automatic routing of messages based on language.

For example, you can use this node to detect the language of customer feedback submitted in various languages, enabling you to route it to appropriate teams or trigger language-specific workflows.

Properties

Name Meaning
Text Content The text content to analyze for language detection. Example: "Hello, how are you today?"

Output

The node outputs a JSON object containing the detected language information. Typically, this includes the language code or name that corresponds to the input text's language.

If the node supports binary data output (not indicated here), it would represent additional data related to the detection process, but in this case, the output is purely JSON-based.

Dependencies

  • Requires an API key credential for authentication with the external service at https://prod.0codekit.com.
  • The node sends a POST request to the /ai/languagedetection endpoint with the text content in the request body.
  • Proper configuration of the API key credential in n8n is necessary for successful operation.

Troubleshooting

  • Common issues:

    • Empty or missing text input will likely cause the node to fail or return no meaningful result.
    • Invalid or missing API credentials will result in authentication errors.
    • Network connectivity problems may prevent the node from reaching the external API.
  • Error messages:

    • Authentication errors typically indicate invalid or missing API keys; verify your credential setup.
    • Validation errors may occur if the text input is empty or too short; ensure the input text is provided.
    • Timeout or network errors suggest connectivity issues; check your internet connection and API availability.

Links and References

Discussion