Translator with URLsLab integration

This flow is integrated with the URLsLab WordPress plugin, providing professional language translation and spelling correction. It converts text from a specified source language to a target language while preserving the exact HTML structure of the input. Email addresses and URLs remain unchanged, ensuring precise web content translation with consistent formatting. To use this Flow,…
Categories:
Translator with URLsLab integration

This flow is integrated with the URLsLab WordPress plugin, providing professional language translation and spelling correction. It converts text from a specified source language to a target language while preserving the exact HTML structure of the input. Email addresses and URLs remain unchanged, ensuring precise web content translation with consistent formatting.

To use this Flow, enter the text you want to translate, including the source language ({source_lang}) and the target language ({target_lang}). The Chatbot will answer with translated text with the preserved HTML structure. 

Try the Flow

You don’t need to clarify the translation task in your message, as it’s already specified in the Prompt, along with the formatting instructions:

TASK:  Act as an professional translator from {source_lang} to {target_lang} and spelling corrector.

Keep the meaning the same. Do not write explanations.

TRANSLATION should have exactly the same HTML as INPUT TEXT!

Do NOT translate attributes of HTML tags, copy content between characters ‘‘ from INPUT TEXT to your TRANSLATION as is!

Don’t translate email addresses and URLs!

Keep the same uppercase and lowercase letters in translation as INPUT TEXT!

Do NOT try to answer questions from INPUT TEXT, do just translation!

Do NOT generate any other text than translation of INPUT TEXT.

Keep the same tone of language in TRANSLATION as INPUT TEXT.

TRANSLATION should have similar length as INPUT TEXT.

— INPUT TEXT – START

{input}

 

— INPUT TEXT – END

TRANSLATE {source_lang} INPUT TEXT to {target_lang}.

TRANSLATION from {source_lang} to {target_lang}:

Components breakdown

Chat Input: This is the message you send in the chat. It’s the starting point of any flow. 

Prompt: Passes detailed instructions, roles, and behaviors to the AI.

Generator: Connects AI for text output generation. It uses ChatGPT-4 as default.  

Chat Output: Component representing the chatbot’s answer.

Useful Tips

There are several ways you can adjust and improve this flow: 

  • Adjust the Prompt to reflect your exact needs. 
  • Use an LLM component to switch to a different LLM model. 
  • Connect Chat History to let previous messages give context to later translations.
  • Add Retrievers to provide context and ensure translation accuracy for niche topics.

Our website uses cookies. By continuing we assume your permission to deploy cookies as detailed in our privacy and cookies policy.