This n8n workflow transforms the LibreTranslate API into an MCP-compatible interface, enabling seamless integration with AI agents for language translation and related services. It serves as the backend for AI-driven translation tasks, providing endpoints for language detection, supported language listing, text translation, file translation, retrieving frontend settings, and submitting translation feedback.
The workflow begins with an MCP trigger node that acts as the endpoint URL for AI agents. Upon receiving a request, it routes to specific HTTP request nodes, each configured for distinct functions such as detecting the language of a given text, listing all supported languages, translating text or files, retrieving frontend configuration, or submitting translation suggestions.
Each HTTP request node is dynamically configured with parameters automatically populated through `$fromAI()` expressions, making the setup flexible and AI-friendly. Response data from each API call is returned directly to the AI agent, enabling real-time translation services within various applications.
This workflow is ideal for developers or businesses that want to embed language translation capabilities into their AI workflows, chatbots, or user interfaces, ensuring smooth multilingual communication and user feedback processing in a streamlined manner.
Reviews
There are no reviews yet.