# Custom MT

{% hint style="info" %}
Requires VNTranslator version Pro 0.8.6 or later, and Neo 0.8.0 or later.\
Note: Some parameters are only available in the Pro version.
{% endhint %}

## To open Custom MT:

* From Launcher: Menubar -> Translator -> Double Click on the Service Name
* From Settings: Settings -> Translation Services -> Click on the Service Name

<figure><img src="/files/0N2xGZCuscNKWtEkaE6V" alt=""><figcaption></figcaption></figure>

> The Launcher does not automatically reload the configuration after you save or update Custom MT code. To reload the configuration, switch to another translation service and then back to Custom MT (Custom MT → DeepL Web → Custom MT).

## Configuration

Write the **Custom MT code** using the **JSON object structure** format:

* **configVersion**: `number`
* **name**: `string`
* **title**: `string`
* **description**: `string`
* **version**: `string`
* **icon**: `object` \<default: string>
* **schema**: `Array of objects` - [\[Schema\]](/advanced/custom-mt/schema.md)
* **formBuilder**: `Array of objects` - [\[FormBuilder\]](/advanced/custom-mt/form-builder.md)
* **lang**: `object` \<source: Array, target: Array>
  * **source**: `Array of objects` <{name: string, value: string}>
  * **target**: `Array of objects` <{name: string, value: string}>
* **request**: `object` - [\[Request\&Response\]](/advanced/custom-mt/request-and-response.md)
* **components**: `object` - [\[Components\]](/advanced/custom-mt/components.md)

```json
{
    "configVersion": 3,
    "name": "openai",
    "title": "OpenAI",
    "description": "Translate natural language text",
    "version": "1.0",
    "icon": {
        "default": "openai.png"
    },
    "schema": [],
    "formBuilder": [],
    "lang": {
        "source": [
            { "name": "Japanese", "value": "japanese"}
        ],
        "target": [
            {"name": "English", "value": "english"}
        ]
    },
    "request": {},
    "components": {}
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.vntranslator.com/advanced/custom-mt.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
