Skip to main content

Translation Agent for the Chat

A Translation Agent enables real-time chat translation within the Metaverse, allowing users who speak different languages to communicate during live interactions.

Follow the steps below to create and integrate your Translation Agent.

Step 1: Create an OpenAI Account

  1. Visit the OpenAI Signup Page.
  2. Register a new account or log in if you already have one.

Step 2: Generate an OpenAI API Key

  1. Go to the OpenAI Dashboard.
  2. Navigate to the API Keys section.
  3. Click Create new secret key.
  4. Provide:
    • A name tag for your key
    • The appropriate project
    • The required security permissions
  5. Copy and securely store your API key.

Create API Key Button

⚠️ Important: Your secret API key will only be shown once. Make sure to save it in a secure location.

Step 3: Integrate Your Translation Agent in XR Creator Studio

1. Add an AI Agent Element

  1. Open your project in the XR Editor.
  2. In the Elements Menu, select AI Agent.

AI Agent in Elements Menu

  1. Add the AI Agent element to your scene.

2. Configure AI Agent Properties

Open the Properties Panel of your Agent:

Create API Key Button

To configure your agent, fill the following inputs:

  • Agent Name: The name that will appear in the chat interface.

  • API Key: Paste your secret secret API key securely.

  • Target Languages: Select one or multiple languages the agent will translate messages into.
    The agent will automatically detect the original message language and provide translations in the selected target languages.

Final Step: Publish Your Project

  1. Save your changes.
  2. Publish your project.

Your Translation Agent will now be fully functional and ready to translate chat messages in real time within the Metaverse.

AI Agent in Elements Menu