TextUnited
What we doPricing

Thursday, November 26, 2026·9 min read

How to set up the TextUnited node in n8n

TextUnited n8n

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

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:

bash
bash
@textunited/n8n-nodes-textunited

For a self-hosted instance using n8n’s community node settings, open Settings → Community Nodes → Install and enter the package name.

  1. Open or create a workflow.
  2. Select Add node.
  3. Search for TextUnited.
  4. 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.

  1. In TextUnited, open the API section of your account and generate a personal access token.
  2. Copy the token when it is displayed.
  3. In your TextUnited node in n8n, create a new TextUnited API credential.
  4. Paste the token into Personal Access Token.
  5. Leave the Base URL at its default, https://api.textunited.com, unless TextUnited has supplied a different API environment.
  6. 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.

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 goalResource and operationWhat happens
Translate text and receive the result directlyInstant Translation → Translate InstantlySends text for machine translation without creating a project.
Create a project for an in-house teamProject → In-House Translation ProjectCreates a project containing the supplied text segments.
Create a managed translation projectProject → Managed Translation ProjectCreates a project for managed translation.
Create a project with an automated quality-evaluation processProject → Create (In-House Quality Eval) or Create (Managed Quality Eval)Creates the project and starts the corresponding process.
Check a supported automated processProcess → GetLooks up a process by its process GUID or project ID.
Retrieve an existing project or its segmentsProject → 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.

ParameterWhat to enterExample
Domain Name or IDOptional. Select a domain relevant to the content if available in your account.Manufacturing
Source Language Name or IDSelect the language of the original content.English (United States)
Translate IntoAdd at least one target language. You can add more than one.Vietnamese
Style Guide Name or IDOptional. Select a style guide for the target language if available.Your Vietnamese style guide
Specify SegmentsChoose how the node receives the text to translate.Define Below for a first test
ContentEnter or map the text to translate.The machine is ready for use.
Custom IDOptional. Add your own identifier to help recognize a segment.instruction-001
NotesOptional. 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

  1. Connect a Manual Trigger to the TextUnited node.
  2. Select your TextUnited credential.
  3. Choose Instant Translation → Translate Instantly.
  4. Select your source language.
  5. Under Translate Into, add a target language.
  6. Set Specify Segments to Define Below.
  7. Add a segment and enter a short sentence in Content.
  8. 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.

SettingUse it whenHow it behaves
One Segment per Input ItemA 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 BelowYou want to enter one or more segments in the node.The operation runs once for each incoming item using the configured segment fields.
Using JSONA 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:

json
json
{"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:

javascript
javascript
{{ $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:

json
json
[
  {"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.

markdown
markdown
Manual Trigger → GitHub: Get a file → Extract from File
→ Edit Fields → Split Out → TextUnited: Translate Instantly
→ Split Out translations → Aggregate → GitHub: Create a file

For 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:

javascript
javascript
{{ $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.

FieldValue for this example
CredentialYour TextUnited API credential
ResourceInstant Translation
OperationTranslate Instantly
Domain Name or IDSelect one if relevant and available; otherwise leave it empty
Source Language Name or IDEnglish (United States), or the actual language of your file
Translate IntoAdd Vietnamese, or your chosen target language
Style Guide Name or IDOptional; select one for the target language if available
Specify SegmentsOne Segment per Input Item
Content{{ $json.text }}
Custom IDOptional; useful if you have an identifier for each line
NotesOptional; 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:

  1. Split out instantTranslationSegments.
  2. 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:

javascript
javascript
{{ $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.

  1. Add a TextUnited node.
  2. Select Project → In-House Translation Project.
  3. Configure the project information and languages.
  4. Choose how to provide your segments.
  5. Run the node and save the returned project information for later steps.

Project parameters

ParameterWhat it does
Project NameNames the project in TextUnited.
Custom IDOptional identifier from your own system, useful for linking the project to another record.
End DateSets the project’s end date.
Domain Name or IDOptional content domain.
Source Language Name or IDThe language of the source content.
Translate IntoOne or more target languages.
ProofreadingOptional setting for each target language in the in-house project configuration.
Style Guide Name or IDOptional style guide for a target language.
TeamOptional team assignment for the target language, including the available roles.
Specify SegmentsDetermines how the project receives its content segments.
Content, Custom ID, NotesThe segment text and optional identifying or contextual information.
Additional FieldsOptional 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

  1. Add another TextUnited node.
  2. Select Process → Get.
  3. In Process, choose Process GUID.
  4. Map the processGuid returned by the project-creation node.
  5. Run the node and inspect the returned state.

For a directly connected node whose input contains processGuid, the expression can be:

javascript
javascript
{{ $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 statePossible next step
WaitingForGlossaryTranslationComplete the glossary work, then use Process → Finish Glossary.
WaitingForClientReviewReview the result, then use Process → Submit Client Review with the appropriate approval value.
A state ending in FailedInvestigate the failure and decide whether to use Process → Retry or Cancel.
CompletedContinue 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.

Frequently asked questions

Related Posts

TextUnited n8n
Tuesday, November 17, 2026

TextUnited launches verified n8n node for automated translation workflows

TextUnited’s verified n8n node connects translation to automated workflows, including text and file translation, project creation, and process tracking.
Khanh Vo