We had a request from the customer, that chat pop up after X seconds of inactivity. i.e. open the chat widget after X seconds. We did explore this further and there is no easiest way to implement the chat pop-up in GC.
Also, we tried using the predictive engagement action maps in GC using messaging action with triggers and it is not reliable for chat offers because After the rejection, closing the browser and reopening doesn’t offer the chat again. It does offer again but the time is unpredictable. The only way I can make the system offer the chat immediately is after clearing the browsing history which may reset the session. Also, noticed during the offer if I have opened and then minimised the chat widget and later if I need to go back, it doesn’t offer again.
I would like to know if is there a way to implement this requirement in GC.
Hi @Prem_Venkatesh
The behavior you observe with Predictive Engagement is by design: the same action map can succeed only once during the same active visit, and this is to ensure we are not overloading the user with the same offer after the user has already rejected once (so likely not interested in the offer). If we were to continuously trigger offer on every page load, that would result in a poor experience. Note that a user visit will expire after 30 minutes of inactivity, then new web visit is started the next time user returns to website, and action map processing is restored.
If you want to implement different logic on the page, you may also consider using the Engage.invite command directly, and build your own JS logic.
Hi @Angelo_Cicchitto,
I am trying to invoke Engage.invite event and continue to see 403 error. I already turned ON predictive engagement option under messenger configuration. is there anything else I need to activate to invoke this event?
If you run that first command manually from browser console, does it work?
You should subscribe to Engage.ready before running the command via JS code.
Hi @Angelo_Cicchitto
one last question on same topic. is there a way i can open a form with 2 text areas to collect first name and last name on Engage.inviteAccepted event and then launch messenger?