I am trying to create a Smartplug that combine some custom user properties that are not formatted properly to help our agents better understand with whom they are talking with.
So my question is, is it possible to format number to string. We have a series of number that corresponds to a certain website.
I would like it to be : 767676_8 replaced by Google.
Also, we have different numbers, not only one, so I would imagine it like that :
If 767676_8 then Google
else if 767676_9 then Amazon
etc etc
@Paul_Paturle,
Good day! Welcome to the community
We are not able to understand your question,
can you please elaborate a bit more detail so that we will give our best solution,
what is the use case you are trying to do with the app?
what is the problem you are facing when you are implementing the app?
I am trying to format and show some already extracted customers information from our admin to FreshChat, this information is available under the Custom User Properties, so that they are more convenient to read for our agents.
Some of the information we are getting from our admin are formatted in a way of numbers, so imagine instead of getting “Google” as the website the customer is on, we are extracting our brand IDs in the form of 767676_8.
The problem, or more the question is, is it possible in the Smart Plug to format those numbers to string, so instead of 767676_8, I will show “Google”
If I understood correctly you want to show text instead of IDs from backend in Custom Properties Sidebar in agent portal?
I believe OOB this would not be possible however couple of workaround I can think are as following;
Store the custom IDs in concatenated string e.g "767676_8 | Google " so that in the side bar they are displayed as a concatenated string.
Or
Create a Custom App and fetch the user details in App init() and format the properties as per your requirement and display them. You can hide OOB widget to show custom properties and show your custom app for custom user properties.