FluentC Check Language icon

FluentC Check Language

Detect the language of text or HTML content using FluentC AI

Overview

This node detects the language of given text or HTML content using the FluentC AI service. It is useful for scenarios where you need to automatically identify the language of input data, such as processing multilingual user inputs, content categorization, or preparing data for language-specific workflows.

For example, you can feed in customer feedback in various languages and automatically detect which language each piece is written in, enabling downstream translation or routing to appropriate teams.

Properties

Name Meaning
Input The text or HTML content whose language you want to detect.
Input Format The format of the input content. Options: "Text" (plain text) or "HTML" (HTML content).

Output

The node outputs a JSON object containing the response from the FluentC AI language detection API. This includes:

  • The detected language information returned by the API.
  • The original input_format used ("text" or "html").
  • The length of the input string (input_length).

The output is paired with the corresponding input item index.

No binary data is produced by this node.

Dependencies

  • Requires an API key credential for FluentC AI service authentication.
  • Makes HTTP POST requests to https://dashboard.fluentc.ai/ai_agent/checklanguage.
  • The node depends on n8n's HTTP request helper with authentication support.

Troubleshooting

  • Common issues:

    • Invalid or missing API key credential will cause authentication failures.
    • Network connectivity problems may prevent reaching the FluentC API endpoint.
    • Providing empty or invalid input content might result in errors or unexpected responses.
  • Error handling:

    • If the node is set to continue on failure, errors are captured in the output JSON under an error field.
    • Otherwise, errors will stop execution and be thrown.
  • Resolution tips:

    • Ensure the API key credential is correctly configured and valid.
    • Verify network access to the FluentC API URL.
    • Provide non-empty input content matching the selected input format.

Links and References

Discussion