Share via

Language detection in copilot studio agent

Otmane Oulbaz 0 Reputation points
2026-02-05T17:01:06.11+00:00

hello everyone, i'am trying to build an agent and make it speak the language spoken by the user. i've added a prompt as a tool but it still answers in english. thank you for your help

Microsoft Copilot | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Sayali-MSFT 5,191 Reputation points Microsoft External Staff Moderator
    2026-02-06T08:18:01.7866667+00:00

    Hello Otmane Oulbaz ,
    you can make a Copilot Studio agent automatically answer in the user’s language, but doing it correctly requires more than just adding a “language instruction” prompt as a tool.

    Right now, Copilot Studio does NOT automatically detect the user’s language in Teams, and tools cannot override the agent’s root system prompt, so the agent falls back to English unless you implement language control correctly.

    1 person found this answer helpful.

  2. Pavan Kumar M 5 Reputation points
    2026-02-06T07:17:50.4166667+00:00

    Build a Topic
    AI Response is generated Trigger

    Add a Prompt.
    inputs for prompt:

    response:System.Response.FormattedText

    query: System.Activity.Text

    Now, ask the prompt to find the language of the query and translate the response to the language of the query.

    now send the out of this Prompt as a message.

    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.