Genesys Cloud - Main

 View Only

Discussion Thread View
  • 1.  expre

    Posted 07-28-2023 12:20

    Hi Community,

    I am attempting to use the Bot Exit Reason to make routing decisions when there is a system error. However, there are many different Exit Reasons. I am using a Switch to attempt to pick the string that contains Error. What function can I use to get Error out of the string and evaluate as true? I have tried Contains and FindString but not getting anywhere. Thanks. 

    #expression

    #ArchitectEmailFlow

    #Architect


    #ArchitectureandDesign
    #ConversationalAI(Bots,AgentAssist,etc.)

    ------------------------------
    Matthew Raleigh
    Thermo Fischer CRG
    Sr. IT COMM Eng.
    ------------------------------


  • 2.  RE: expre
    Best Answer

    Posted 07-28-2023 19:11

    Hey Matt

    The Exit Reason values for errors start with "Error." so try following expression

    Substring(<insertExitReasonVariable>, 0, 5) == "Error"



    ------------------------------
    Cheers
    Zubair
    ------------------------------



  • 3.  RE: expre

    Posted 07-31-2023 10:31

    Thanks, Zubair. I appreciate your help. 



    ------------------------------
    Matthew Raleigh
    Thermo Fischer CRG
    Sr. IT COMM Eng.
    ------------------------------



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources