web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / How to limit the respo...
Copilot Studio
Answered

How to limit the response language

(0) ShareShare
ReportReport
Posted on by Microsoft Employee
The requirement is when user inputs Chinses, the Copilot Agent will response with Chinese. If user input non-Chinses, the agent will response with English.
 
The problem currently we have:
Sometimes, when user inputs Chinses, the agent response with English. And we found if user input 4 Chinese characters, the agent will response with English, but if user inputs 6 Chinese characters as the same requests with the 4 Chinese characters, the agent can response with Chinese correctly.
 
What's the problem here? What configurations should we set for the agent to let it follow the Language limitation?
 
What we have tried:
1. Add Language limitation prompts on Agent Instructions.
2. Add a custom topic with Prompts node to limit the language before AI model searching the Knowledge.
3. Add Language limitation prompts in Create generative answers node's Content moderation level text box.
None of them can let the agent response with correct language 100%.
 
Categories:
I have the same question (0)
  • Suggested answer
    chiaraalina Profile Picture
    2,425 Super User 2026 Season 1 on at
    Hi
     
    Did you also set up the Language in the Agent Settings? IF not please add it here, don't rely on instruction only:

     
     
    In addition, you can create a topic that runs on every message to detect the user’s language and set the conversation language accordingly:
    • Create a topic with trigger: A message is received
    • Detect whether the incoming message is Chinese or not
    • Set System.User.Language to:
    • Locale.Chinese_Simplified if Chinese
    • Locale.English otherwise
    This approach is much more consistent.

     


     

    Detect the language of the user message.

    If Chinese, output exactly zh-CN. Otherwise output exactly en-US.

    Output only the code.

    Message:

     
    You could also do deterministic detection.


    Let me know if it helped!
     
  • Verified answer
    S-Venkadesh Profile Picture
    1,215 Super User 2026 Season 1 on at

    In addition to @chiaraalina suggestion, if the agent is not consistently responding in the desired language, then—along with the existing steps—add a Generative Answers node and include the instruction:
    “Respond in System.User.Language.”
    This helps enforce language consistency and improves the overall reliability of the responses.
     
     
     
    ✔️ If this answered your question, please click “Does this answer your question?” so it can help others in the community too.
    🩵 If it helped, please give it a Like!
    Best regards, 
    S. Venkadesh

     

     
  • WC-14010238-0 Profile Picture
    Microsoft Employee on at
    @chiaraalina @S-Venkadesh Thanks for your quick response.
     
    According to the steps that you suggested, I can reduce the repro rate for the language mis-matched issue to failed 3 times when tried 50 times. I think it should be the best result now. Because the official document mentioned that "Instructions requesting multilingual support might work, but they aren't guaranteed. The multilingual feature isn't tested or officially supported."
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 277

#2
11manish Profile Picture

11manish 206

#3
sannavajjala87 Profile Picture

sannavajjala87 156 Super User 2026 Season 1

Last 30 days Overall leaderboard