We are looking to implement Embedded Service Chat on our site. One of the business requirement for chat invitation is that it should only be shown twice in a session and not more than that. Since the chat invitation display is taken care by embedded service script, is there any way to know when it's displayed to the user so that I can get a count?
Does salesforce dispatch an event when the chat invitation opens that the clientside can capture?
I tried looking at the events here but none of them seems to give any info about the invitation being displayed to the user. Can someone let me know how do I achieve this one?