Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  DetectLanguage function not working for an In-Queue Email flow

    Posted 02-27-2024 11:57
    No replies, thread closed.

    Hi all - I'm trying to determine if it's possible to use the detectlangauge function for my specific use case.  We often get emails in other languages which agents transfer to a specific language queue.  I'd like to use detectlanguage in an In-Queue Email flow assigned to the transfer queue so that if the customer replies in English, we can route it back to the main queue.  I can't seem to get this to trigger even though I've set the function in the recurring and initial state.   

    DetectLanguage(Email.Message.body, "en") == "en"

    Has anyone accomplished this or something similiar?

    Thanks


    #ArchitectureandDesign

    ------------------------------
    Carlos Alonso
    Dow Jones & Company, Inc.
    ------------------------------


  • 2.  RE: DetectLanguage function not working for an In-Queue Email flow
    Best Answer

    Posted 02-27-2024 12:29
    No replies, thread closed.

    Hi Carlos,

    var = DetectLanguage(Email.Message.body, "en") = if the message is identified as "en" you receive return en, or if the system doesn't identify nobody language too. If identify another language, your return was another, "es" per example.

    You can try to create an "update data" and set participant data for testing and show what the return is for view. This helps you confirm if "decision = DetectLanguage(Email.Message.body, "en") == "en" " will be ok.

    Att,



    ------------------------------
    Breno Canyggia Ferreira Marreco
    https://www.linkedin.com/in/brenocfm-40b62182/
    ------------------------------



  • 3.  RE: DetectLanguage function not working for an In-Queue Email flow

    Posted 02-27-2024 14:48
    No replies, thread closed.

    Thanks Breno. 

    I did some testing and it's not detecting English because for some reason, Email.Message.body does not include the customer's most recent reply.   It only includes the original message and the agent's response.   



    ------------------------------
    Carlos Alonso
    Dow Jones & Company, Inc.
    ------------------------------