A place to ask questions, connect with others, and stay in the know
Another approach you could try is to use the PARSE STRING tool to split the string up into a list of words using spaces as delimiters. You can then use the FIND List tool to search the list of words. You would also need to account for removing punctuation from the sub-strings. Depending on the length of the resulting list, as well as the number of words you are looking for, it may also be worth removing duplicates..This is where at all starts to get complicated. What are you going to do if someone replaces odd characters with special characters, or simply mis-spells the word(s) in question?A third (possible) solution is if you can find any form of online "text sanitation" service with a REST API. I don't know if such services exist (I'd be surprised if they didn't) you could perhaps run the text of each message through this? Depending on volume, it may cause performance issues, but might be worth investigating.FWIW, I think you are going to find yourself going down a rather deep rabbit hole trying to make this effective without compromising desired functionality (The Scunthorpe Problem, mentioned by Aaron, is the tip of a rather large iceberg here!) You are also setting yourself up for criticism if your solution gets it wrong - which is why I repeat my advice to record and act upon undesirable language accordingly.
If you do decide to go down this route, however, as Ryan says, it's going to involve Handlers.
Every year, Genesys® delivers more than 70 billion remarkable customer experiences for organizations in over 100 countries. Through the power of the cloud and AI, our technology connects every customer moment across marketing, sales and service on any channel, while also improving employee experiences. Genesys pioneered Experience as a ServiceSM so organizations of any size can provide true personalization at scale, interact with empathy, and foster customer trust and loyalty. This is enabled by Genesys Cloud™, an all-in-one solution and the world's leading public cloud contact center platform, designed for rapid innovation, scalability and flexibility. Visit www.genesys.com.