> For the complete documentation index, see [llms.txt](https://doc.dastra.eu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.dastra.eu/en/features/questionnaires/translate.md).

# Translate a questionnaire with AI

Learn how to automatically translate a questionnaire template with Dastra's AI assistant.

From the template editor, the AI assistant translates all the sections and all the questions of a questionnaire template into the language of your choice. The function is disabled when the AI feature for questionnaires is not enabled for your organization.

To start a translation:

1. In **Questionnaire templates**, open the menu of the template to translate, then click **Edit** to open the editor.
2. In the right-hand column, click **Translate questionnaire**.
3. Choose the **Target language**.
4. In **Save as**, choose one of the two options:
   * **New version**: replaces the current version of this template with the translation;
   * **New independent template**: creates a separate template with no link to the original.
5. Click **Generate**.

<figure><img src="https://2697025545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LvBxs22wUMicv9uWp6C-1972196547%2Fuploads%2Fgit-blob-699661c1cd2c3e709c5e2cd3381f9b7548ebfc66%2Fquestionnaire-translate-button.png?alt=media" alt="Translate questionnaire button in the template editor"><figcaption><p>The Translate questionnaire button in the template editor</p></figcaption></figure>

Dastra translates then saves the result directly, according to the mode you chose. The list of languages is the list of the languages of the application.

<figure><img src="https://2697025545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LvBxs22wUMicv9uWp6C-1972196547%2Fuploads%2Fgit-blob-1395a4f7f7c06acf20abaaf96260fa97e14389e4%2Fquestionnaire-translate-dialog.png?alt=media" alt="Translation window with the target language and the save mode"><figcaption><p>Choosing the target language and the save mode</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://doc.dastra.eu/en/features/questionnaires/translate.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
