The TextUnited node lets you add translation to your n8n workflows. You can translate text directly, create translation projects, and check the status of supported automated processes.
In this guide, you’ll learn how to connect your TextUnited account, choose the right operation, and configure the parameters. We’ll also walk through a practical example: getting an English text file from GitHub, translating its content, and preparing the result for a new file.
Before you start
You’ll need:
- An n8n instance where you can install and use the TextUnited community node.
- A TextUnited account with the required API access.
- A TextUnited personal access token for the node’s credentials.
- For the GitHub example, access to a repository containing a plain-text file and a GitHub credential in n8n with the appropriate repository permissions.
The installation method depends on your n8n setup and the node version. For verified community nodes, an instance owner can install the node from the nodes panel.
n8n community node installation guide
Explore TextUnited on n8n
See the verified integration, available operations, and installation guidance on n8n.
1. Install and add the TextUnited node
If the TextUnited node is not already available in your instance, search for TextUnited in the n8n nodes panel and follow the installation prompts. The package name is:
For a self-hosted instance using n8n’s community node settings, open Settings → Community Nodes → Install and enter the package name.
- Open or create a workflow.
- Select Add node.
- Search for TextUnited.
- Add the TextUnited node to your workflow.
2. Connect your TextUnited account
The node uses a TextUnited API credential. In the version covered by this guide, the credential uses a personal access token.
- In TextUnited, open the API section of your account and generate a personal access token.
- Copy the token when it is displayed.
- In your TextUnited node in n8n, create a new TextUnited API credential.
- Paste the token into Personal Access Token.
- Leave the Base URL at its default, https://api.textunited.com, unless TextUnited has supplied a different API environment.
- Save the credential and select it in the node.
If you cannot create a token or connect successfully, check that your account has API access and that the token belongs to the TextUnited account you want to use.
Tip: Treat your token like a password. Store it in n8n credentials rather than placing it directly in a workflow field or sharing it in an exported workflow.
Explore TextUnited API documentation
Find more information about TextUnited and its capabilities in the documentation.
3. Choose what you want the node to do
Start by selecting a Resource and an Operation. Field names and availability may vary with your installed node version.
| Your goal | Resource and operation | What happens |
|---|---|---|
| Translate text and receive the result directly | Instant Translation → Translate Instantly | Sends text for machine translation without creating a project. |
| Create a project for an in-house team | Project → In-House Translation Project | Creates a project containing the supplied text segments. |
| Create a managed translation project | Project → Managed Translation Project | Creates a project for managed translation. |
| Create a project with an automated quality-evaluation process | Project → Create (In-House Quality Eval) or Create (Managed Quality Eval) | Creates the project and starts the corresponding process. |
| Check a supported automated process | Process → Get | Looks up a process by its process GUID or project ID. |
| Retrieve an existing project or its segments | Project → Get or Get Segments (Segments Project) | Retrieves project information or segments. |
For a first test, use Instant Translation → Translate Instantly. It lets you check the connection and understand the input and output without setting up a full project.
4. Configure Translate Instantly
Add a TextUnited node and select Resource: Instant Translation and Operation: Translate Instantly. Choose the source and target languages, domain, and style guide that suit your own content.
| Parameter | What to enter | Example |
|---|---|---|
| Domain Name or ID | Optional. Select a domain relevant to the content if available in your account. | Manufacturing |
| Source Language Name or ID | Select the language of the original content. | English (United States) |
| Translate Into | Add at least one target language. You can add more than one. | Vietnamese |
| Style Guide Name or ID | Optional. Select a style guide for the target language if available. | Your Vietnamese style guide |
| Specify Segments | Choose how the node receives the text to translate. | Define Below for a first test |
| Content | Enter or map the text to translate. | The machine is ready for use. |
| Custom ID | Optional. Add your own identifier to help recognize a segment. | instruction-001 |
| Notes | Optional. Add information associated with the segment. | This text appears in a user interface. |
A segment is a piece of content sent to TextUnited for translation. Depending on your workflow, a segment could be a sentence, a product description, a paragraph, or another unit of text.
Run a first translation
- Connect a Manual Trigger to the TextUnited node.
- Select your TextUnited credential.
- Choose Instant Translation → Translate Instantly.
- Select your source language.
- Under Translate Into, add a target language.
- Set Specify Segments to Define Below.
- Add a segment and enter a short sentence in Content.
- Run the workflow and inspect the TextUnited node’s output.
The response contains an instantTranslationSegments field. Open it in the output panel and inspect the returned translations before mapping the result into another node.
5. Choose how to provide your segments
The Specify Segments setting changes how the node processes incoming items.
| Setting | Use it when | How it behaves |
|---|---|---|
| One Segment per Input Item | A previous node produces one item per piece of text. | The node collects the input items into one translation request, with one segment per item. This is the default. |
| Define Below | You want to enter one or more segments in the node. | The operation runs once for each incoming item using the configured segment fields. |
| Using JSON | A previous step provides an array of segments, or you want to define one as JSON. | The operation runs once per incoming item using that item’s segment array. |
For example, if a previous node outputs three items:
{"text":"Welcome to our website."}
{"text":"Contact our team."}
{"text":"Download the brochure."}Choose One Segment per Input Item and set Content to this expression:
{{ $json.text }}The node builds one request containing three segments. Source language, target languages, and domain apply to the whole request in this mode. If items need different language combinations or domains, group or process them separately.
You can also provide segments as a JSON array:
[
{"customId": "heading-001", "content": "Welcome to our website."},
{"customId": "button-001", "content": "Contact our team."}
]Select Using JSON and provide the array in Segments (JSON).
For project creation: With One Segment per Input Item, multiple incoming items become segments in one project. With Define Below or Using JSON, the operation runs once per incoming item. Check the incoming item count before running the workflow to avoid creating more projects than intended.
Practical example: translate a text file from GitHub
This example retrieves a text file, turns its content into segments, translates them, and prepares the translated content for GitHub.
Manual Trigger → GitHub: Get a file → Extract from File
→ Edit Fields → Split Out → TextUnited: Translate Instantly
→ Split Out translations → Aggregate → GitHub: Create a fileFor this first version, use a simple .txt file with one non-empty line per translation segment.
Step 1: Get the file from GitHub
Add a GitHub node after your Manual Trigger and configure:
- Resource: File
- Operation: Get
- Owner: Your GitHub username or organization.
- Repository: The repository containing the file.
- File Path: The path to your source file, such as test.txt.
- Credential: Your GitHub credential.
Run the node and inspect the output. The next step expects the file as binary data.
Step 2: Extract the text
Add an Extract from File node. Choose the text extraction operation and set the destination field to text. Run the node. You should now have a JSON field called text containing the contents of the file.
Step 3: Turn the text into separate lines
Add an Edit Fields node. Create an array field called text and set its value to this expression:
{{ $json.text.split(/\r?\n/).filter(line => line.trim()) }}This separates the text at line breaks and removes empty lines. Add a Split Out node and set Field to Split Out to text. The result should be one n8n item per non-empty line.
Step 4: Configure the TextUnited node
Add a TextUnited node after Split Out.
| Field | Value for this example |
|---|---|
| Credential | Your TextUnited API credential |
| Resource | Instant Translation |
| Operation | Translate Instantly |
| Domain Name or ID | Select one if relevant and available; otherwise leave it empty |
| Source Language Name or ID | English (United States), or the actual language of your file |
| Translate Into | Add Vietnamese, or your chosen target language |
| Style Guide Name or ID | Optional; select one for the target language if available |
| Specify Segments | One Segment per Input Item |
| Content | {{ $json.text }} |
| Custom ID | Optional; useful if you have an identifier for each line |
| Notes | Optional; add context where useful |
Run the node and open the output. Confirm that each expected source segment has a corresponding translation in instantTranslationSegments.
Step 5: Prepare the translated content
The example workflow uses two Split Out nodes:
- Split out instantTranslationSegments.
- Split out the translations field inside each segment.
Then use an Aggregate node to collect the translated content values. For a single target language, the resulting array can be joined with line breaks in the GitHub node using:
{{ $json.content.join('\n') }}Before writing the file, inspect the output and check that the number and order of translated entries match what you expect. If you add multiple target languages, separate the translations by language before building files. Otherwise, content from different languages may be combined into one file.
Step 6: Create the translated file
Add a second GitHub node and configure it to create a file in your chosen repository:
- Resource: File
- Operation: Create
- Owner and Repository: Your target repository.
- File Path: For example, test-vi.txt.
- File Content: The joined translated content from the previous step.
- Commit Message: For example, Add Vietnamese translation of test.txt.
Run the workflow and check the new file in GitHub. For a production workflow, consider writing to a separate branch and opening a pull request so a reviewer can check the translation before it is merged.
Limitations of this simple example: Removing blank lines changes the original file’s layout. Splitting by line may also separate text that needs surrounding context. If the file contains formatting or structured content that must be preserved, use a workflow designed for that format and verify the output before using it.
Creating a translation project
Instant translation is useful when you want translated text returned directly. If your team needs to work with content in a TextUnited project, choose a project-creation operation instead.
- Add a TextUnited node.
- Select Project → In-House Translation Project.
- Configure the project information and languages.
- Choose how to provide your segments.
- Run the node and save the returned project information for later steps.
Project parameters
| Parameter | What it does |
|---|---|
| Project Name | Names the project in TextUnited. |
| Custom ID | Optional identifier from your own system, useful for linking the project to another record. |
| End Date | Sets the project’s end date. |
| Domain Name or ID | Optional content domain. |
| Source Language Name or ID | The language of the source content. |
| Translate Into | One or more target languages. |
| Proofreading | Optional setting for each target language in the in-house project configuration. |
| Style Guide Name or ID | Optional style guide for a target language. |
| Team | Optional team assignment for the target language, including the available roles. |
| Specify Segments | Determines how the project receives its content segments. |
| Content, Custom ID, Notes | The segment text and optional identifying or contextual information. |
| Additional Fields | Optional project metadata, such as a reference number or task ID. |
For a simple test, use Define Below, add a single segment, and verify the project in TextUnited before connecting a larger data source.
Translation project or quality-evaluation process?
A regular In-House Translation Project or Managed Translation Project creates a project without starting the automated quality-evaluation process. The Create (In-House Quality Eval) and Create (Managed Quality Eval) operations create a project and start a corresponding process. Their response includes a processGuid, which you can use with Process → Get.
Checking a quality-evaluation process
- Add another TextUnited node.
- Select Process → Get.
- In Process, choose Process GUID.
- Map the processGuid returned by the project-creation node.
- Run the node and inspect the returned state.
For a directly connected node whose input contains processGuid, the expression can be:
{{ $json.processGuid }}The process can pass through different states. Depending on the returned state, your workflow may need to wait, notify someone, or use another process operation.
| Example state | Possible next step |
|---|---|
| WaitingForGlossaryTranslation | Complete the glossary work, then use Process → Finish Glossary. |
| WaitingForClientReview | Review the result, then use Process → Submit Client Review with the appropriate approval value. |
| A state ending in Failed | Investigate the failure and decide whether to use Process → Retry or Cancel. |
| Completed | Continue with the next step in your workflow. |
If you build a recurring status check, include a sensible waiting interval and a way to handle failures or processes that remain in the same state. A status check tells you what is happening; it does not itself complete a human review.
Troubleshooting
The language, domain, or style guide list is empty
Check that the correct TextUnited credential is selected and that the account has access to the relevant data. If the connection is valid but an expected option is still missing, check how that language, domain, or style guide is configured in TextUnited.
The node has no text to translate
Inspect the output of the node immediately before TextUnited. Make sure it contains the field you mapped, such as text; that the field has a value for each input item; and that your Content expression matches the field name exactly.
The workflow created one project instead of several
Check Specify Segments. With One Segment per Input Item, the node combines incoming items as segments in one project. Choose the mode that matches the number of projects you intend to create.
The workflow created more projects than expected
Check how many items enter the TextUnited node. With Define Below or Using JSON, a project-creation operation runs once per incoming item.
The translated file contains unexpected content
Inspect the TextUnited output before joining or writing it. Check that you selected the intended source and target languages, separated translations by target language, collected the translated content field, preserved the structure and order you need, and reviewed the translation for its intended use.
Explore the node on GitHub
Review the TextUnited n8n node repository for technical information and updates.
Frequently asked questions
Related Posts
TextUnited launches verified n8n node for automated translation workflows

