Hi there,
This is a common question, and the key point is that Copilot Studio does not automatically “lock” analysis to the document language unless you explicitly guide it.
By default, Copilot Studio:
- Detects the language of the document automatically
- But generates answers based on the agent’s system instructions and conversation context (often English), not strictly the document language
So document ingestion and document language detection work, but response language control is up to you.
Recommended approaches:
Option 1 (simplest and recommended): Instruct the agent explicitly
Update your agent’s system instructions (or the specific topic prompt) with something like:
“Always analyze and respond using the same language as the uploaded document. If multiple documents are uploaded, use the language of the document being referenced.”
Copilot models are multilingual and will correctly infer the document language during analysis, as long as you explicitly tell them to respond in that language.
Option 2: Detect the language and pass it explicitly
If you need stronger control:
- Add an initial step that asks the model to detect the document language (for example: ‘Detect the primary language of the uploaded document and return only the language name or code’).
- Store that value in a variable.
- Use that variable in subsequent prompts, e.g.:
“Analyze the document and respond in {{DetectedLanguage}}.”
This is useful if your agent needs deterministic behavior across multiple documents or mixed-language scenarios.
Option 3: User-driven override (optional)
If required, you can also ask the user:
“Do you want the analysis in the document language or a different one?”
and route the response accordingly.
Important limitation to be aware of:
There is currently no dedicated “document language” setting in Copilot Studio knowledge or file upload features. Language alignment is achieved through prompt and instruction design, not through a configuration toggle.
Summary:
- Copilot Studio already understands the document language
- You must explicitly instruct the agent to analyze and respond in that same language
- Prompt-based control is the supported and reliable approach today