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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Multilingual Agent emb...
Copilot Studio
Unanswered

Multilingual Agent embedded in an iFrame

(3) ShareShare
ReportReport
Posted on by 11
Hello,
 
I'm currently experimenting with Copilot Studio to create an agent for our website. The site is multilingual (FR and DE). When testing directly inside Copilot Studio, I can switch the agent's language through the interface. This will make the agent respond with the correct language.
 
However, when I embed the agent inside my Website using an iFrame (as the method provided inside Copilot Studio for publishing to a Website) the language of the agent doesn't change.
 
The interface messages like "You message here", or "x minutes ago" do change based on my browse language settings (or if I append locale=de-DE to the source URL if the iFrame). However, the responses from the agent are always given in the agents primary language (here FR).
 
Here is a CodePen showing the two iFrames side by side. One with fr-FR the other with de-DE:
 
 
Inside the Copilot STudio environnement, the agent uses German if I switch to it (see here):
 
As it works inside the test environnment of copilot studio, I figure there must be a way to have the same behaviour inside an iFrame. Or is there another recommended method to embed a multilingual agent inside a website?
 
Kind Regards
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,335 Super User 2025 Season 2 on at
     
    can you do me a favor (technically you can set the User.Language) for them but I just want verify this please
     
    Can you load it up (or ask a user) to load it up.
    Then ask them to ASK the agent to please respond in their native language and see if it changes
     
    it will help me resolve it
  • RizMan Profile Picture
    11 on at
     
    Thanks for your answer and your time.
     
    We already tried that to no avail. We loaded up the Demo Website at work (other computer, incognito Browser Window. Also tried at home with my personal PC)
     
    We tried 2 scenarios:
     
    • Asking a question in german without asking the agent to switch to german. The agent stays in french.
    • Actively asking the agent to switch the language to german. This also didn't change the language of the agent.
     
    As a temporary solution, I created a topic to change the User.Language variable i.e. when the user actively asks to change the language, the agent will confirm if the user wants to change to, let's say, german. If yes, then set User.Language to german. Otherwise do nothing. When the user asks for french, set User.Language to french...
     
    That works, but I was hoping for an automated switch. The agent should be able to do it I guess? Because if I ask Copilot something in another language, it automagically switches to that language without being actively asked to switch.
     
    Kind regards
     
    Gilles
  • Michael E. Gernaey Profile Picture
    53,335 Super User 2025 Season 2 on at
     
    Yeah its... not 100% reliable atm, hence (and you are already doing and tried both) asking it and setting the Language.
     
    That it does not work under the Demo Site makes sense to me in this case as the site itself wouldn't (or shouldn't impact) its ability to change languages.
     
    I only know of a few things but sounds like you have them
     
    1. The translations have not been uploaded or are not somehow being published
    2. The agent isn't picking up the fact has another language. I say this one more than anything as if asking fails, then it definitely doesn't think it has another language.
     
    Why that is... that's another story
     
    However, another option would be to have a Tool (aka old Action) that triggers on the Primary Topic before it posts the question, or posts in the Primary and then says something like, I notice your browser is set to X language would you like to switch, and the experience is at least better than them having to ask, it will prompt.
     
    That or simply ask what language they want (like on phone prompts). at least until it gets fully figured out.
     
    I am going to see if I can reproduce this one mine as mine are English / French for myself and have not had this issue, but I am also not publishing them into prod yet its all Dev/Test
  • RizMan Profile Picture
    11 on at
     
    Thanks again for taking the time to answer me.
     
    It really looks like there is still work to do. Maybe it works when the primary language is english. Haven't tried that as it isn't my use case and our customers (local municipailty/town hall) are not english speakers, so...
     
    Anyway, I now added the topic directly at the start of the conversation. Thus the user is directly presented with a choice at the start. He can also actively switch by asking for it as the topic can handle queries like "switch language"....
     
    That works as I am presented with my translations and generative answers are in the correct language.
     
    However, I can't figure out how to detect the browsers language as you suggested. How would that work? Can't find a tool, wich would do that or maybe allow me to execute javascript code to get the navigator.langauge value
     
    Any idea?
     
    Kind regards
     
  • Michael E. Gernaey Profile Picture
    53,335 Super User 2025 Season 2 on at
     
    To the best of my knowledge, today, its still the best to give them options.
     
    The Copilot SHOULD be able to
     
    1) notice that the default is NOT the users
    2) load the secondary as long as it matches their Browser.
     
    I am not sure why it isn't :-(

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 255 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 205 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 101 Moderator

Last 30 days Overall leaderboard