Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  concatenate if contains - message

    Posted 03-21-2021 09:09
    No replies, thread closed.
    good afternoon, I need to concatenate several keywords to be able to distribute it when a whatsapp comes in. The query I use is this, is it correct?

    Contains(toString(Message.Message.body) , "problema", true) OR
    Contains(toString(Message.Message.body) , "consulta", true) 


    Is correct?

    Regards,


    #ArchitectureandDesign

    ------------------------------
    Enrique Del Villar Lopez
    ZELENZA, S.L.
    ------------------------------


  • 2.  RE: concatenate if contains - message

    Posted 03-21-2021 16:27
    No replies, thread closed.
    Message.message.body is already a string so you don't need to use toString
    Also, I would suggest using Lower to match call cases of your keywords

    Contains(Lower(Message.Message.body) , "problema", true) OR
    Contains(Lower(Message.Message.body) , "consulta", true)

    ------------------------------
    Will Bellerby
    Pyrios NZ Ltd
    ------------------------------



  • 3.  RE: concatenate if contains - message

    Posted 03-22-2021 02:53
    No replies, thread closed.
    Ok, another question is there any way to search for words, but within a sentence? for example, I have a problem, and what to look for within the sentence?

    All the best

    ------------------------------
    Enrique Del Villar Lopez
    ZELENZA, S.L.
    ------------------------------