I hope you found the community helpful in your last post!
As for the threadid, I found these twos community posts here and here that you may find helpful! However, as for identifying when the chat widget was opened, I wasn’t able to find anything on this.
I’d like to tag in some of our Top Contributors to see if they have any experience with this!
@MLara48 - my community colleague posted a pretty well structured reposnse in the previous posting, so I won’t try and cover the same ground. But it seems to me that the challenge posed in this question is somewhat odd - in the sense that you would never want a chat to be initiated by any agent other than the web site visitor.
But once the chat has been initiated, the conseverations object is set up and can be accessed by any back end agent/code - including access to the threadID of the dialog. You would need to be aware of the JSON structures retured by the API to access all the data, but your trigger would most likely be to start a Conversations workflow based on teh chat startup.