Lola Language
AI-generatedOverview
The Lola Language node provides language processing capabilities within n8n workflows. It supports three main operations: detecting the language of a given text, translating text to another language, and (planned but not yet implemented) rephrasing text while keeping its meaning. This node is useful for automating multilingual workflows, such as auto-detecting user input language, translating messages or documents, and preparing content for international audiences.
Practical examples:
- Automatically detect the language of customer support tickets.
- Translate incoming emails or chat messages into a preferred language.
- (Future) Rephrase marketing copy for variety in communication.
Properties
| Name | Meaning |
|---|---|
| Operation | The action to perform: - Detect Language: Detect the language of a text - Translate: Translate a text - Rephrase: Rephrase a text (not implemented) |
| Input Text | The text to be processed. |
| Target Language Code | The target language code (2 letters, e.g., "es" for Spanish). Required when using the "Translate" operation. |
| Source Language Code | The source language code (2 letters, optional). Used for translation if you want to specify the original language. |
| Metadata | Additional metadata as key-value pairs to include with the translation request. Only available for the "Translate" operation. |
Output
- The output will contain all original fields from the input item, plus an additional field:
lola_lang_response: An object containing the result of the selected operation.- For Detect Language: Contains the detected language information.
- For Translate: Contains the translated text and possibly other related data.
- For Rephrase: Not implemented; attempting this will throw an error.
- No binary data is produced by this node.
Dependencies
- May require a credential named
lolaKeyApiif authentication is needed (optional). - Relies on external functions for language detection and translation (from bundled dependencies).
Troubleshooting
- "Rephrase is not implemented yet": Attempting to use the "Rephrase" operation will result in an error. Use only "Detect Language" or "Translate".
- Missing required property: If "Target Language Code" is not provided for translation, the node may fail.
- Invalid language codes: Ensure that language codes are valid two-letter ISO codes.
- API/credential issues: If the underlying service requires authentication, ensure credentials are configured correctly.
Links and References
- n8n Documentation
- (If applicable) Refer to your Lola Language API documentation for supported languages and features.