Translation Agent

The Translation Agent is a generic agent responsible for data translation.

The Translation Agent template is designed to enhance your productivity as you can build an agent that translates the provided data on the fly.

Purpose

The agent automates the translation process of data in Emporix system. The predefined Translation Agent serves as a basic template for you to create agents covering different languages and different kinds of data. For example, you can build an agent to cover translations of localized products or categories data, or localized custom mixins fields, and much more. Basing on this template, create separate agents for translations to different data languages you use in your tenant and incorporate the agents in your workflows to make the processes more efficient.

Key benefits

Enabling the Translation Agent facilitates your workflows.

Benefit
Description

Process automation

The Translation Agent reduces manual work and speeds up internal preparation processes, such as for example product onboarding.

Generic usage

The Translation Agent template is designed in such a way so that you can adjust its usage to your needs. The agent can be triggered by API, which brings a variety of possibilities to invoke it when needed. You can incorporate the agent into existing workflows or value stream steps. Depending on your requirements, you can adjust the Agent to provide translations that are to be reviewed and approved by merchants, or allow even more automation so that the Agent updates the entities with its translation output.

How it works

In its default setup, the Translation Agent translates the provided input fields into the target language and returns output JSON file that includes the localized versions of the requested fields in a target language. The JSON file can serve as an input for next steps in your workflows to further process the data, approve it or update entities in the system.

Trigger

The Agent can be triggered by API calls. Call the agent by its ID and pass the data to translate in the request. To see an example of calling the Translation Agent by API, refer to the AI Service Tutorials. The API approach allows you to conveniently call the Agent from other parts of the system, for example in a step of a value stream.

Agent Configuration

When you create the Translation Agent from the template, you can configure its actions to adjust the agent as you like. You can create separate agents for different languages you use in your setup, or separate agents to cover translations of different scopes of data. For example, you can have one agent for translating product data, such as names or descriptions, another for translating categories data, and another for translating custom entities data. Configuration allows for flexibility of agents usage and capabilities.

User prompt

The default prompt for the Translation Agent is a simple command that can be adjusted by the users to translate the given content to different languages, for exmaple:

Template prompt

The template prompt shows what stands behind the simple user prompt, and what can be used, for example, in Value Streams templates.

With this prompt, the agent looks for name and description fields in the JSON object passed in the API request. The Agent provides de translations of the fields and returns back the JSON response that additionally includes the German translations. The original content is preserved.

For example, the Agent response can look as follows:

By modifying the Prompt, adjust the agent to translate different fields, into different languages, or with a different style or parameters. Use this Prompt as a starting point to configure your agent to cover specific use cases.

MCP Servers

The Translation Agent can get more power in completing tasks on its own if you give it access to the MCP Servers. This way, for example, the Agent you create can get ability to modify the objects directly after translations are done.

For example, in the MCP Servers, attach the Emporix Product MCP and add partial-update-product tool. Once you adjust the Prompt accordingly, the Translation Agent can directly update the product object in question and add the German translations for name and description fields. Similarly, you can attach your custom MCP Servers and grant more capabilities for your agent.

Translation Agent

To see the example of how to trigger the Translation Agent, refer to the AI Service Tutorials.

Last updated

Was this helpful?