Felice_Vittoria | 2022-04-26 01:23:58 UTC | #1
We have a pre-chat form that collects 4 pieces of information from a customer and then will start a web messenger chat. The information is saved as customAttributes via Database.set command so that we can collect the information via participant data. The pre-chat form also checks for existence of the gcmcsessionActive localStorage key and if present will not collect the information and instead just bring up web messenger. When testing the first time it worked well. However, after the 72 hours elapsed (default setting in Threaded Timeline) we tested again and found that the localStorage key existed and due to the script logic did not display the pre-chat form. My question is if the key existed can we query for the customAttributes that were set on the initial chat?
Angelo_Cicchitto | 2022-04-26 08:29:41 UTC | #2
Hi 👋 We don't persist any of the custom attributes in localStorage to ensure maximum level of PII protection. It looks like all you need is to know whether the current session is new or existing: is that right? If that's the case, let us discuss internally, perhaps there's a better way to expose this information via Messenger's JS SDK.
Angelo_Cicchitto | 2022-04-26 08:32:42 UTC | #3
I would also recommend that you consider alternative approach, to capture all necessary details in a conversational manner, via simple qualification Bot: the advantage of this approach is that you can easily determine within Architect flow whether new session vs. returning session, and also much more customizable & personalizable, and easy to deploy (you don't touch the website across future changes in business requirements).
Felice_Vittoria | 2022-04-26 13:12:51 UTC | #4
Thank you Angelo. I will talk to the developer of the form. From my understanding his intention was that if the customer already entered their data that they don't have to do it again. I will also bring up perhaps collecting the information from a bot.
system | 2022-05-26 13:13:15 UTC | #5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 14452