Prompt
Create a prompt template with dynamic variables ({input}, {human_input}, {context}, {chat_history}, {system_message}).
Translete following text from {source_lang} to {target_lang}:
{input}
Translate web content between languages while preserving HTML structure, using AI and UrlsLab plugin. Email addresses and URLs remain unchanged, ensuring accurate, context-aware translations for multilingual websites or content teams.
Receive Text Input
User submits text (with HTML) to be translated.Prepare Translation Prompt
Construct a prompt with source and target languages, specifying which parts (like emails and URLs) must remain unchanged.Generate Translation
An AI model translates the text while preserving HTML and excluding emails/URLs from translation.Display Translated Output
The translated text, with original structure and protected elements, is shown to the user.Below is a complete list of all prompts used in this flow to achieve its functionality. Prompts are the instructions given to the AI model to generate responses or perform actions. They guide the AI in understanding user intent and generating relevant outputs.
Create a prompt template with dynamic variables ({input}, {human_input}, {context}, {chat_history}, {system_message}).
Translete following text from {source_lang} to {target_lang}:
{input}
Below is a complete list of all components used in this flow to achieve its functionality. Components are the building blocks of every AI Flow. They allow you to create complex interactions and automate tasks by connecting various functionalities. Each component serves a specific purpose, such as handling user input, processing data, or integrating with external services.
Flow description
This workflow automates the process of translating text between languages while preserving the original HTML structure, making it ideal for translating web content, emails, or any structured text where format integrity is crucial. It’s especially useful for professionals, webmasters, and content teams who need to localize web pages or documents at scale, ensuring URLs and email addresses remain unchanged and the output is clean and ready for use.
Step | Component | Functionality |
---|---|---|
1 | Chat Input | User provides the text to translate, along with source and target languages. |
2 | Prompt Template | The workflow creates a dynamic prompt using the input and language parameters, instructing the LLM on the task. |
3 | Generator (LLM) | The prompt is processed by a Language Model, which performs the translation according to the strict rules. |
4 | Chat Output | The translated message is displayed to the user, ready for use or further integration. |
In summary, this workflow brings together translation accuracy, structural preservation, and automation, making it an essential tool for anyone needing reliable, scalable, and integration-friendly language translation—especially for web content.
We help companies like yours to develop smart chatbots, MCP Servers, AI tools or other types of AI automation to replace human in repetitive tasks in your organization.